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

Disassembly:
sub esp, 0x40
or eax, 0xffffffff
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea ecx, [eax + 6]
push edi
lea edx, [esp + 0x28]
mov eax, esi
call fcn.10016d50
mov dword [esp + 0x14], eax
xor ebp, ebp
lea ecx, [ebp + 0x10]
mov ebx, 1
shl ebx, cl
mov ecx, ebp
mov edi, 1
shl edi, cl
mov ecx, dword [esp + 0x14]
mov eax, edi
or eax, ebx
test ecx, eax
je 0x1001707e
mov ecx, dword [esp + ebp*4 + 0x28]
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
cmp ecx, 0xffffffff
je 0x10016fbd
mov eax, dword [esp + 0x54]
push 4
lea edx, [esp + 0x20]
push edx
add eax, 0x60
push eax
call fcn.1003e540
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, edi
je 0x10016fcd
mov dword [esp + 0x10], 1
test eax, ebx
je 0x10016fd6
or dword [esp + 0x10], 2
mov edx, dword [esp + 0x10]
mov dword [esp + ebp*4 + 0x3c], edx
test esi, esi
je 0x10017186
mov ebx, dword [esp + 0x58]
xor ebp, ebp
cmp dword [ebx + 0x78], ebp
jle 0x10017005
lea eax, [ebx + 0x50]
cmp ecx, dword [eax]
je 0x10017143
inc ebp
add eax, 4
cmp ebp, dword [ebx + 0x78]
jl 0x10016ff4
mov al, byte [esp + 0x10]
mov ecx, 1
add dword [esi + 0x18], ecx
test cl, al
je 0x10017018
add dword [esi + 0x1c], ecx
test al, 2
je 0x1001701f
add dword [esi + 0x20], ecx
mov edx, dword [esi + 4]
lea ecx, [ebx + 0x24]
push ecx
push ebx
push edx
push esi
call fcn.10032080
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov edi, dword [esi + 0x20]
neg edi
sbb edi, edi
xor eax, eax
and edi, 2
cmp dword [esi + 0x1c], eax
setne al
or edi, eax
cmp dword [esi + 0x10], edi
je 0x10017070
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x1001706d
mov edx, dword [esi + 0x14]
push edx
mov edx, dword [esp + 0x58]
mov edx, dword [edx + 0x38]
push edx
push edi
push ecx
push ebx
call eax
add esp, 0x14
mov dword [esi + 0x10], edi
mov esi, dword [esp + 0x58]
inc ebp
cmp ebp, 5
jl 0x10016f66
cmp dword [esi + 0x78], 0
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 0
jle 0x10017230
lea eax, [esi + 0x64]
mov dword [esp + 0x10], eax
jmp 0x100170a0
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx - 0x14]
xor eax, eax
test ebp, ebp
jle 0x100170bf
lea ecx, [ecx]
cmp edi, dword [esp + eax*4 + 0x28]
je 0x10017219
inc eax
cmp eax, ebp
jl 0x100170b0
or ebx, 0xffffffff
mov dword [esp + 0x24], edi
cmp edi, ebx
je 0x10017219
mov ebp, dword [esp + 0x54]
push 4
lea edx, [esp + 0x28]
push edx
add ebp, 0x60
push ebp
call fcn.1003e540
add esp, 0xc
test eax, eax
je 0x10017215
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
add dword [eax + 0x18], ebx
mov edx, dword [eax + 0x18]
test cl, 2
je 0x10017101
add dword [eax + 0x20], ebx
test cl, 1
je 0x10017109
add dword [eax + 0x1c], ebx
test edx, edx
jne 0x10017206
mov edx, dword [esp + 0x54]
mov ecx, dword [edx + 0x34]
test ecx, ecx
je 0x1001712d
mov eax, dword [eax + 0x14]
mov edx, dword [edx + 0x38]
push eax
push edx
push 4
push edi
push esi
call ecx
add esp, 0x14
push 4
lea eax, [esp + 0x28]
push eax
push ebp
mov dword [esp + 0x30], edi
call fcn.1003e4c0
jmp 0x10017212
mov eax, dword [ebx + ebp*4 + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
je 0x10017035
mov al, byte [esp + 0x18]
test al, 1
je 0x10017164
dec dword [esi + 0x1c]
test al, 2
je 0x1001716b
dec dword [esi + 0x20]
mov al, byte [esp + 0x10]
test al, 1
je 0x10017176
inc dword [esi + 0x1c]
test al, 2
je 0x10017035
inc dword [esi + 0x20]
jmp 0x10017035
mov edi, dword [esp + 0x54]
add edi, 0x60
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
cmp ecx, 0xffffffff
je 0x100171b2
push 4
lea ecx, [esp + 0x24]
push ecx
push edi
call fcn.1003e540
add esp, 0xc
test eax, eax
je 0x100171b2
mov esi, eax
jmp 0x100171e2
push 0x24
push 1
call dword [0x1007b010]
mov esi, eax
add esp, 8
test esi, esi
je 0x100171f9
push 0
push esi
call fcn.10032060
push esi
push 4
lea edx, [esp + 0x34]
push edx
push edi
call fcn.1003e410
add esp, 0x18
test eax, eax
je 0x100171ef
test esi, esi
je 0x100171f9
mov ebx, dword [esp + 0x58]
jmp 0x10017005
push esi
call dword [0x1007b004]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x40
ret
push 0
lea ecx, [esi + 0x24]
push ecx
push eax
call fcn.100320f0
add esp, 0xc
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add dword [esp + 0x10], 4
inc eax
cmp eax, dword [esi + 0x78]
mov dword [esp + 0x18], eax
jl 0x100170a0
lea edi, [ebp*4]
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esi + 0x50]
push eax
call fcn.1004b910
push edi
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esi + 0x64]
push edx
call fcn.1004b910
add esp, 0x18
pop edi
mov dword [esi + 0x78], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret