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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x94]
xor edx, edx
div dword [esi + 0x98]
or byte [esi + 0x14], 4
mov edx, dword [edi + 0x18]
lea ecx, [edx - 1]
lea ebx, [eax - 1]
not ebx
and ebx, ecx
mov ecx, dword [esi + 0x18]
inc ebx
cmp edx, ecx
jbe 0x1016da6e
mov edi, edx
sub edi, ebx
inc edi
mov dword [esp + 0xc], edi
jmp 0x1016da87
lea edx, [ebx + eax - 1]
cmp edx, ecx
jbe 0x1016da81
sub ecx, ebx
inc ecx
mov dword [esp + 0xc], ecx
mov edi, ecx
jmp 0x1016da87
mov dword [esp + 0xc], eax
mov edi, eax
mov dword [esp + 0x1c], 0
test edi, edi
jle 0x1016dc51
mov edi, ebx
lea esp, [esp]
cmp dword [esp + 0x10], 0
jne 0x1016dc51
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 0x18]
je 0x1016db12
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1016db12
mov eax, edi
call fcn.1011f400
test eax, eax
je 0x1016db12
mov eax, dword [esi + 0xe4]
mov ecx, dword [eax + 0x2c]
push 0
push edi
push ecx
call dword [0x102924a8]
add esp, 0xc
test eax, eax
je 0x1016db08
mov ecx, dword [eax + 4]
cmp dword [ecx], 0
mov edx, dword [esi + 0xe4]
jne 0x1016dafa
push eax
push edi
push edx
call fcn.1011f0e0
add esp, 0xc
jmp 0x1016db08
mov eax, 1
add dword [edx + 0xc], eax
add word [ecx + 0x1e], ax
mov eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
je 0x1016db63
jmp 0x1016db50
mov eax, dword [0x10292424]
cdq
idiv dword [esi + 0x98]
inc eax
cmp edi, eax
je 0x1016db63
mov eax, dword [esi + 0xcc]
push 0
lea edx, [esp + 0x18]
push edx
push edi
push esi
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1016db63
mov eax, dword [esp + 0x14]
call fcn.10167400
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
test byte [eax + 0x1c], 8
je 0x1016db5e
mov dword [esp + 0x18], 1
call fcn.10135150
mov eax, dword [esp + 0x1c]
inc eax
inc edi
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0xc]
jl 0x1016daa0
cmp dword [esp + 0x10], 0
jne 0x1016dc51
cmp dword [esp + 0x18], 0
je 0x1016dc51
mov ecx, dword [esp + 0xc]
mov edi, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0xe4]
mov edx, dword [eax + 0x2c]
push 0
push edi
push edx
call dword [0x102924a8]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x1016dc42
mov eax, dword [ecx + 4]
cmp dword [eax], 0
mov edx, dword [esi + 0xe4]
jne 0x1016dbd6
push ecx
push edi
push edx
call fcn.1011f0e0
add esp, 0xc
jmp 0x1016dbe2
mov ecx, 1
add dword [edx + 0xc], ecx
add word [eax + 0x1e], cx
test eax, eax
je 0x1016dc42
or word [eax + 0x1c], 8
test byte [eax + 0x1c], 0x20
je 0x1016dc3d
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov edi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [edi]
dec eax
push edx
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x20]
push 0
push eax
call fcn.10100050
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov edi, dword [esp + 0x2c]
add esp, 0x10
jmp 0x1016dc42
call fcn.1012c920
inc edi
dec dword [esp + 0x18]
mov dword [esp + 0x1c], edi
jne 0x1016db9b
and byte [esi + 0x14], 0xfb
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret