Function at 0x10016ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1002152a
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x1002c018]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x1002c018]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
call fcn.10016320
xor ebx, ebx
lea esi, [ebx + 1]
mov eax, 0x1002738c
lea ecx, [esp + 0x64]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.10001570
mov dword [esp + 0x100], ebx
cmp dword [0x10065c08], 0x10
mov edi, dword [0x10065bf4]
jae 0x10016c23
mov edi, 0x10065bf4
mov ecx, edi
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x10016c38
sub ecx, edx
mov esi, ecx
mov eax, edi
lea ecx, [esp + 0x48]
call fcn.10001570
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0xbc]
push ecx
mov byte [esp + 0x108], 1
call fcn.100010c0
push eax
lea edx, [esp + 0xe0]
push edx
lea ecx, [esp + 0x74]
mov byte [esp + 0x110], 2
call fcn.100159d0
add esp, 0x10
mov edi, 0x10
cmp dword [esp + 0xcc], edi
jb 0x10016ca4
mov eax, dword [esp + 0xb8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 0xf
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0x5c], edi
jb 0x10016cd2
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov byte [esp + 0x100], 6
cmp dword [esp + 0x78], edi
jb 0x10016cfa
mov edx, dword [esp + 0x64]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x14], esi
mov dword [esp + 0x94], esi
mov dword [ecx + 0x10], ebx
mov esi, 1
mov eax, 0x10027390
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
mov dword [esp + 0x30], esp
mov byte [ecx], bl
call fcn.10001570
sub esp, 0x1c
mov edi, esp
mov byte [esp + 0x138], 7
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
lea eax, [esp + 0x10c]
mov dword [esp + 0x50], esp
mov byte [edi], bl
push eax
or ecx, 0xffffffff
xor ebx, ebx
call fcn.10001690
mov byte [esp + 0x138], 6
call fcn.10016720
xor cl, cl
add esp, 0x38
cmp al, cl
je 0x10016fab
lea ecx, [esp + 0xd4]
lea ebx, [esp + 0x1c]
call fcn.100167b0
mov byte [esp + 0x100], 8
mov ecx, dword [esp + 0x1c]
xor eax, eax
push ecx
mov esi, 0xf
or ecx, 0xffffffff
xor ebx, ebx
lea edi, [esp + 0x30]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], eax
mov byte [esp + 0x30], al
call fcn.10001690
mov byte [esp + 0x100], 9
mov eax, dword [esp + 0x1c]
xor ecx, ecx
add eax, 0x1c
mov dword [esp + 0xac], ecx
mov byte [esp + 0x9c], cl
push eax
or ecx, 0xffffffff
lea edi, [esp + 0xa0]
mov dword [esp + 0xb4], esi
call fcn.10001690
mov byte [esp + 0x100], 0xa
mov eax, dword [esp + 0x1c]
add eax, 0x38
push eax
or ecx, 0xffffffff
mov edi, 0x10065adc
call fcn.10001690
mov dword [esp + 0x14], 0x54505a
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x11c], 0xb
mov dword [ecx + 0x14], esi
lea eax, [esp + 0x30]
mov dword [ecx + 0x10], ebx
mov dword [esp + 0x34], esp
mov byte [ecx], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10016e31
sub eax, esi
mov esi, eax
lea eax, [esp + 0x30]
call fcn.10001570
lea edi, [esp + 0x9c]
call fcn.1001de20
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x48]
add esp, 0x1c
cmp esi, 0x10
jae 0x10016e65
lea ecx, [esp + 0x2c]
cmp dword [esp + 0x94], 0x10
mov edi, dword [esp + 0x80]
mov eax, edi
jae 0x10016e80
lea eax, [esp + 0x80]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10016ea0
cmp dl, bl
je 0x10016e9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10016ea0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x10016e80
xor eax, eax
jmp 0x10016ea5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10016f09
mov ecx, dword [esp + 0x2c]
cmp esi, 0x10
jae 0x10016eb6
lea ecx, [esp + 0x2c]
cmp dword [esp + 0x94], 0x10
mov eax, edi
jae 0x10016ed0
lea eax, [esp + 0x80]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10016ef0
cmp dl, bl
je 0x10016eec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10016ef0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x10016ed0
xor eax, eax
jmp 0x10016ef5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete dl
mov byte [0x1015f5eb], dl
mov byte [0x1015fa0f], 1
jmp 0x10016f15
mov byte [0x1015f5eb], bl
mov byte [0x1015fa0f], bl
cmp dword [esp + 0x94], 0x10
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x10016f2b
push edi
call esi
add esp, 4
cmp dword [esp + 0xb0], 0x10
mov edi, 0xf
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
jb 0x10016f5c
mov eax, dword [esp + 0x9c]
push eax
call esi
add esp, 4
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
jb 0x10016f82
mov ecx, dword [esp + 0x2c]
push ecx
call esi
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
cmp eax, ebx
je 0x10016fbd
mov edi, dword [esp + 0x20]
call fcn.1001a3b0
mov edx, dword [esp + 0x1c]
push edx
call esi
add esp, 4
jmp 0x10016fbd
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov byte [0x1015f5eb], cl
mov byte [0x1015fa0f], cl
cmp dword [esp + 0xe8], 0x10
mov bl, byte [0x1015fa0f]
jb 0x10016fda
mov eax, dword [esp + 0xd4]
push eax
call esi
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.1001e745
mov esp, ebp
pop ebp
ret