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

Disassembly:
sub esp, 0x38
mov ecx, dword [esp + 0x40]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 0x18]
mov ebp, dword [eax + ecx*4]
push edi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov eax, esi
mov dword [esp + 0x5c], ebp
call fcn.10167e50
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
add eax, ecx
cdq
idiv ecx
mov edi, dword [esp + 0x74]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x6c]
add eax, edi
cdq
idiv edi
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x54], edx
mov ebx, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
push eax
push edi
push esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x58], ebx
call fcn.10168770
add esp, 0x1c
test eax, eax
jne 0x10168e11
mov eax, dword [ebp + 0x10]
dec eax
imul eax, dword [ebp + 8]
add eax, dword [ebp]
mov ecx, dword [esi + 0x18]
mov edi, dword [ecx + edi*4]
mov edx, dword [edi + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
dec eax
imul eax, dword [ebp + 0xc]
add eax, dword [ebp + 4]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x70], edi
call fcn.10167100
xor ecx, ecx
add esp, 4
mov dword [esp + 0x68], ecx
test ebx, ebx
jle 0x10168e07
mov eax, dword [edi + 0xc]
imul eax, ecx
add eax, dword [edi + 4]
cmp dword [esp + 0x10], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], 0
jle 0x10168dfa
mov esi, dword [edi + 8]
imul esi, dword [esp + 0x64]
add esi, dword [edi]
mov ebx, dword [ebp]
mov ecx, dword [ebp + 8]
mov edi, esi
sub edi, ebx
mov eax, edi
mov dword [esp + 0x14], ecx
call fcn.10168090
mov ecx, dword [ebp + 0xc]
mov ebp, dword [ebp + 4]
add eax, ebx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
sub eax, ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x1c], eax
call fcn.10168090
mov ecx, dword [esp + 0x14]
mov ebp, eax
add ebp, dword [esp + 0x58]
mov eax, edi
call fcn.10179600
mov edi, eax
mov eax, dword [esp + 0x18]
add edi, ebx
cmp edi, eax
jle 0x10168c8e
mov edi, eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x1c]
call fcn.10179600
mov ecx, dword [esp + 0x4c]
add eax, dword [ecx + 4]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
mov dword [esp + 0x58], eax
jle 0x10168cb5
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x50]
sub eax, esi
mov ecx, ebp
imul eax, eax
sub ecx, dword [esp + 0x5c]
imul ecx, ecx
lea edx, [ecx + eax]
mov dword [esp + 0x1c], edx
mov edx, edi
sub edx, esi
imul edx, edx
add ecx, edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x14]
imul ecx, ecx
add edx, ecx
add ecx, eax
mov eax, dword [esp + 0x1c]
cmp esi, eax
jl 0x10168d16
cmp eax, edx
jg 0x10168d12
cmp eax, ecx
jg 0x10168d12
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
sub eax, ebx
cdq
idiv dword [esi + 8]
mov ecx, eax
mov eax, ebp
jmp 0x10168d52
cmp esi, eax
jg 0x10168d30
cmp esi, edx
jg 0x10168d30
cmp esi, ecx
jg 0x10168d30
mov esi, dword [esp + 0x4c]
mov eax, edi
sub eax, ebx
cdq
idiv dword [esi + 8]
mov ecx, eax
mov eax, ebp
jmp 0x10168d52
cmp edx, eax
jg 0x10168d3e
cmp edx, esi
jg 0x10168d3e
cmp esi, ecx
mov eax, edi
jle 0x10168d42
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
sub eax, ebx
cdq
idiv dword [esi + 8]
mov ecx, eax
mov eax, dword [esp + 0x58]
sub eax, dword [esi + 4]
mov edi, dword [esp + 0x4c]
cdq
idiv dword [esi + 0xc]
mov edx, dword [edi + 0x10]
push 0
imul edx, eax
mov eax, dword [edi + 0x20]
add edx, ecx
imul edx, dword [edi + 0x24]
push edx
push eax
call fcn.10166fc0
add esp, 0xc
test eax, eax
jl 0x10168e11
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
mov esi, dword [edi + 0x20]
lea ecx, [esp + 0x60]
push ecx
push edx
push eax
call fcn.10167f10
add esp, 0xc
test eax, eax
jne 0x10168e11
mov ebx, dword [esp + 0x6c]
mov edx, dword [ebx + 0x18]
mov esi, dword [edi + 0x18]
cmp edx, esi
jne 0x10168db2
mov ecx, dword [ebx + 0x1c]
cmp ecx, dword [edi + 0x1c]
je 0x10168dbf
mov eax, dword [esp + 0x60]
call fcn.10168070
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x20]
push eax
push ecx
mov eax, edx
call fcn.10167fb0
add esp, 8
test eax, eax
jne 0x10168e11
mov eax, dword [esp + 0x64]
mov ebp, dword [esp + 0x4c]
inc eax
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x64], eax
mov edi, ebx
jl 0x10168c31
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x24]
inc ecx
cmp ecx, ebx
mov dword [esp + 0x68], ecx
jl 0x10168c11
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x38
ret