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

Disassembly:
mov ebx, dword [esp + 0x70]
push ebx
push esi
call fcn.0056f290
mov ecx, dword [esp + 0x74]
mov ebp, eax
mov ax, word [esi + 0x1c]
add esp, 0x20
mov dword [esp + 0x38], eax
cmp ax, 1
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], ebp
jne 0x56f050
add eax, ecx
jmp 0x56f052
sub eax, ecx
neg eax
xor edi, edi
mov dword [esp + 0x30], eax
test ebx, ebx
mov dword [esp + 0x24], edi
jbe 0x56f252
jmp 0x56f06c
mov ebx, dword [esp + 0x58]
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x1c]
add eax, edi
xor edx, edx
div ecx
mov eax, ecx
sub eax, edx
lea edx, [eax + edi]
cmp edx, ebx
jbe 0x56f08e
mov eax, ebx
sub eax, edi
mov dword [esp + 0x10], eax
jmp 0x56f092
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x54]
xor ebx, ebx
test ecx, ecx
jbe 0x56f22e
mov eax, dword [esi + 0x44]
mov edx, dword [esp + 0x14]
push 0
add eax, edi
push 0
push eax
mov eax, dword [esi + 0x48]
mov ecx, ebx
add ecx, eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call 0x5765b0
add esp, 0x18
les ebx, [eax]
test eax, eax
jge 0x56f0d3
mov eax, dword [esi + 4]
test eax, eax
jne 0x56f222
mov ecx, dword [esp + 0x2c]
push ecx
call 0x575e00
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esi + 0x44]
xor edx, edx
add eax, ecx
add esp, 4
div dword [esp + 0x1c]
imul edx, edi
cmp word [esp + 0x38], 4
mov dword [esp + 0x44], edx
jne 0x56f198
push edi
call fcn.0056c080
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
je 0x56f26b
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
test ecx, 0xfffffffe
jbe 0x56f187
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov esi, ecx
mov eax, dword [esp + 0x14]
sub esi, ebp
mov ecx, dword [esp + 0x28]
dec esi
push edi
imul esi, edi
add esi, eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call fcn.0056c0f0
mov edx, dword [esp + 0x24]
push edi
push esi
push edx
call fcn.0056c0f0
mov eax, dword [esp + 0x40]
push edi
push eax
push esi
call fcn.0056c0f0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov edx, ecx
add esp, 0x24
inc ebp
add eax, edi
shr edx, 1
cmp ebp, edx
mov dword [esp + 0x18], eax
jb 0x56f12f
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
push eax
call fcn.0056c090
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x40]
add esp, 4
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x54]
lea eax, [ebx + ecx]
cmp eax, edi
jbe 0x56f1e3
mov eax, edi
mov edi, dword [esp + 0x14]
add edx, edi
sub eax, ebx
push edx
mov edx, dword [esp + 0x34]
sub ecx, eax
add edx, ecx
push edx
mov edx, ebp
imul edx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x64]
add edx, ebx
push ebp
push ebx
lea ecx, [eax + edx*4]
push ecx
push esi
call dword [esp + 0x58]
mov edi, dword [esp + 0x78]
add esp, 0x24
jmp 0x56f210
mov eax, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x34]
push edx
push 0
push eax
push ecx
mov ecx, ebp
mov edx, dword [esp + 0x64]
imul ecx, edi
add ecx, ebx
push ebp
push ebx
lea eax, [edx + ecx*4]
push eax
push esi
call dword [esp + 0x58]
add esp, 0x24
add ebx, dword [esp + 0x20]
cmp ebx, edi
mov edi, dword [esp + 0x24]
jb 0x56f0a0
jmp 0x56f22a
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x10]
cmp word [esp + 0x38], 1
mov ecx, eax
jne 0x56f23a
neg ecx
add edi, eax
mov eax, dword [esp + 0x58]
add ebp, ecx
cmp edi, eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24], edi
jb 0x56f068
mov edx, dword [esp + 0x14]
push edx
call fcn.0056c090
mov eax, dword [esp + 0x44]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov ecx, dword [esp + 0x2c]
push 0xd73808
push ecx
call 0x5759d0
add esp, 4
push eax
call 0x5759f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret