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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov edx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x10051158]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor esi, esi
lea ecx, [ebp - 0x2c]
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov dword [ebp - 0x4c], edx
push dword [edx + 8]
call fcn.10001b0e
lea eax, [ebp - 0x34]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax - 4], eax
cmp dword [edi], 0x3038
je 0x10001764
lea edi, [ebp - 0x38]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebx + 4]
mov dword [ebp - 0x20], ebx
mov ecx, edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x10040040
push ebx
lea eax, [ebp - 0x18]
push eax
call fcn.10001e7e
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x14], esi
cmp dword [ebx + 8], 0x3038
lea ebx, [ebx + 8]
jne 0x10001733
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax]
add eax, 4
mov dword [ebp - 0x4c], eax
cmp esi, eax
je 0x10001a2c
mov edi, dword [esi + 0x44]
cmp edi, 0x3038
sete al
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
cmp edx, ecx
je 0x1000191e
mov dword [ebp - 0x48], edi
mov byte [ebp - 0x44], 1
mov edi, dword [edx + 0x10]
mov ebx, dword [edx + 0x14]
cmp ebx, 0xffffffff
je 0x100017c9
cmp edi, 0x3141
jg 0x100017d4
lea ecx, [edi - 0x3020]
cmp ecx, 0x22
ja case.0x100017ba.12336
jmp dword [ecx*4 + 0x10040088]
cmp dword [esi + 0x1c], ebx
jmp 0x100018a6
mov ch, byte [ebp - 0x44]
and ch, 1
jmp 0x100018d9
cmp edi, 0x3142
je 0x100018bf
cmp edi, 0x3147
je 0x100018c7
cmp edi, 0x348d
jne case.0x100017ba.12336
cmp dword [esi + 0xa8], ebx
jmp 0x100018cd
cmp dword [esi + 0x30], ebx
jmp 0x100018a6
cmp dword [esi + 0x28], ebx
jmp 0x100018a6
cmp dword [esi + 0x24], ebx
jmp 0x100018a6
cmp dword [esi + 0x20], ebx
jmp 0x100018a6
cmp dword [esi + 0x50], ebx
jmp 0x100018a6
cmp dword [esi + 0x88], ebx
jmp 0x100018a6
cmp dword [ebp - 0x48], ebx
jmp 0x100018cd
cmp dword [esi + 0x48], ebx
jmp 0x100018cd
cmp dword [esi + 0x54], ebx
jmp 0x100018a6
cmp dword [esi + 0x70], ebx
jmp 0x100018cd
cmp dword [esi + 0x78], ebx
jmp 0x100018cd
cmp dword [esi + 0x84], ebx
jmp 0x100018a6
cmp dword [esi + 0x80], ebx
jmp 0x100018a6
mov ecx, dword [esi + 0x8c]
jmp 0x100018b9
cmp dword [esi + 0x90], ebx
jmp 0x100018cd
cmp dword [esi + 0x9c], ebx
jmp 0x100018cd
cmp dword [esi + 0x98], ebx
jmp 0x100018cd
cmp dword [esi + 0x94], ebx
jmp 0x100018cd
cmp dword [esi + 0x38], ebx
jmp 0x100018cd
cmp dword [esi + 0x3c], ebx
jmp 0x100018cd
cmp dword [esi + 0x6c], ebx
jmp 0x100018cd
cmp dword [esi + 0x68], ebx
jmp 0x100018cd
cmp dword [esi + 0x2c], ebx
jmp 0x100018a6
cmp dword [esi + 0x34], ebx
setge byte [ebp - 0x44]
jmp case.0x100017ba.12330
cmp dword [esi + 0x40], ebx
jmp 0x100018cd
mov ecx, dword [esi + 0x7c]
jmp 0x100018b9
mov ecx, dword [esi + 0x4c]
and ecx, ebx
cmp ecx, ebx
jmp 0x100018cd
cmp dword [esi + 0xa0], ebx
jmp 0x100018cd
cmp dword [esi + 0xa4], ebx
sete byte [ebp - 0x44]
mov ch, 1
test byte [ebp - 0x44], 1
je 0x10001922
cmp edi, 0x3027
movzx ecx, ch
movzx eax, al
cmove eax, ecx
mov ebx, dword [edx + 4]
test ebx, ebx
je 0x100018f9
mov edi, ebx
mov ebx, dword [ebx]
test ebx, ebx
jne 0x100018ef
jmp 0x1000190f
mov edi, dword [edx + 8]
cmp dword [edi], edx
je 0x1000190f
add edx, 8
mov ecx, dword [edx]
lea edx, [ecx + 8]
mov edi, dword [ecx + 8]
cmp dword [edi], ecx
jne 0x10001903
mov edx, edi
lea ecx, [ebp - 0x34]
cmp edi, ecx
jne 0x10001798
jmp 0x10001922
mov byte [ebp - 0x44], 1
and al, byte [ebp - 0x44]
test al, 1
je case.0x100017ba.12353
lea eax, [esi + 0x10]
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
cmp edi, ebx
jae 0x10001947
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x28], edi
jmp case.0x100017ba.12353
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
sub edi, eax
mov eax, edi
sar eax, 2
mov ecx, eax
mov dword [ebp - 0x50], eax
inc eax
cmp eax, 0x40000000
jae 0x10001b00
sub ebx, dword [ebp - 0x44]
mov ecx, ebx
sar ecx, 2
sar ebx, 1
cmp ebx, eax
cmovb ebx, eax
cmp ecx, 0x1fffffff
mov eax, 0x3fffffff
cmovae ebx, eax
test ebx, ebx
je 0x100019aa
cmp ebx, 0x40000000
jae 0x10001b08
lea eax, [ebx*4]
push eax
call fcn.1001e43b
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x100019b1
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
mov dword [edx + eax*4], ecx
test edi, edi
jle 0x100019d1
push edi
mov eax, dword [ebp - 0x44]
push eax
push dword [ebp - 0x48]
call fcn.10021430
add esp, 0xc
mov edx, dword [ebp - 0x48]
lea eax, [edx + ebx*4]
mov ecx, dword [ebp - 0x50]
lea ecx, [edx + ecx*4]
add ecx, 4
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x44], 0
je case.0x100017ba.12353
push dword [ebp - 0x44]
call fcn.1001e46b
add esp, 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10001a0b
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x10001a01
jmp 0x10001a21
mov eax, dword [esi + 8]
cmp dword [eax], esi
je 0x10001a21
add esi, 8
mov ecx, dword [esi]
lea esi, [ecx + 8]
mov eax, dword [ecx + 8]
cmp dword [eax], ecx
jne 0x10001a15
mov esi, eax
cmp eax, dword [ebp - 0x4c]
jne 0x10001777
mov edi, dword [ebp + 8]
test edi, edi
je 0x10001ab2
mov ebx, dword [ebp + 0x10]
lea esi, [ebp - 0x40]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.1000150e
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x28]
mov dl, byte [esi + 4]
lea eax, [ebp - 0x18]
mov byte [eax + 4], dl
mov edx, dword [esi]
mov dword [eax], edx
push eax
push ecx
push dword [ebp - 0x44]
call fcn.10001f08
add esp, 0xc
test ebx, ebx
jle 0x10001abd
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x44], esi
sub esi, ecx
xor eax, eax
dec eax
test esi, esi
cmovns eax, esi
xor edx, edx
inc edx
test eax, eax
cmovle edx, eax
mov eax, ecx
sub eax, dword [ebp - 0x44]
cmp eax, esi
cmovle eax, esi
shr eax, 2
imul eax, edx
xor edx, edx
test eax, eax
cmovs eax, edx
cmp eax, edx
je 0x10001abf
mov esi, dword [ecx + edx*4]
mov esi, dword [esi + 0x38]
mov dword [edi + edx*4], esi
inc edx
cmp ebx, edx
jne 0x10001a9c
mov eax, ebx
jmp 0x10001abf
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
sar eax, 2
jmp 0x10001abf
xor eax, eax
mov bl, 1
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
lea ecx, [ebp - 0x38]
push dword [ecx + 4]
call fcn.10001e50
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10001ae4
mov dword [ebp - 0x28], eax
push eax
call fcn.1001e46b
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001e498
mov eax, ebx
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
xor ebx, ebx
xor eax, eax
jmp 0x10001ac1
lea ecx, [ebp - 0x2c]
call fcn.1001dd6c
call fcn.1002cc0e
int3