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

Disassembly:
push 0xffffffffffffffff
push 0x5a879a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, dword [esp + 0x78]
cmp dword [esi], 0
mov dword [esp + 0x14], ecx
jle 0x56473d
mov eax, dword [esi + 4]
test eax, eax
jle 0x56473d
push ebx
push ebp
push edi
push 0x38
call fcn.00591ce0
add esp, 4
mov dword [esp + 0x84], eax
test eax, eax
mov dword [esp + 0x7c], 0
je 0x564140
mov ecx, eax
call fcn.0057b740
mov edi, eax
jmp 0x564142
xor edi, edi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 1
push 0
push eax
push ecx
push 8
mov ecx, edi
mov dword [esp + 0x90], 0xffffffff
call fcn.0057c160
push 0
mov ecx, edi
call fcn.0057bf60
inc word [edi + 0x1c]
mov ebx, dword [esp + 0x88]
mov eax, dword [ebx + 0x10]
movsx ebp, word [edi + 0x20]
movsx esi, word [edi + 0x1e]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.0057b230
add esp, 8
push edi
mov ecx, eax
mov dword [esp + 0x88], eax
call fcn.005797f0
mov eax, dword [esp + 0x84]
test eax, eax
je 0x564274
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
xor ebx, ebx
sub eax, edx
test ebp, ebp
mov dword [esp + 0x10], ebx
jle 0x56426d
mov dword [esp + 0x1c], esi
jmp 0x5641e0
mov eax, dword [esp + 0x18]
lea esp, [esp]
push eax
mov eax, dword [esp + 0x14]
mov ecx, ebp
sub ecx, eax
push ecx
call dword [sym.imp.SanCalc.dll_int___cdecl_min_int__int_]
add esp, 8
cmp ebx, esi
mov dword [esp + 0x18], eax
jge 0x56424f
mov dword [esp + 0x1c], esi
nop
mov edx, dword [esp + 0x14]
mov eax, esi
push edx
sub eax, ebx
push eax
call dword [sym.imp.SanCalc.dll_int___cdecl_min_int__int_]
mov ecx, dword [esp + 0x8c]
add esp, 8
mov dword [ecx + 0x1c], 0
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
push eax
push ebx
push edi
call fcn.0057aac0
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
add ebx, ecx
cmp ebx, esi
jl 0x564200
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
sub edx, eax
mov eax, dword [esp + 0x10]
add eax, edx
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x10], eax
jl 0x5641d8
mov ebx, dword [esp + 0x88]
mov ecx, dword [ebx]
lea eax, [esp + 0x64]
push eax
push ecx
call fcn.0057b0d0
mov eax, dword [ebx + 8]
lea edx, [esp + 0x5c]
push edx
push eax
call fcn.0057b0d0
mov edx, dword [ebx + 0x18]
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.0057b0d0
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.0057b0d0
mov eax, dword [ebx + 4]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.0057b230
add esp, 0x28
test eax, eax
mov dword [esp + 0x84], eax
je 0x564362
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub ebx, ecx
mov ecx, dword [esp + 0x2c]
sub ecx, eax
mov eax, dword [esp + 0x30]
sub eax, edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
sub eax, edx
lea edx, [eax + esi]
cmp ebx, edx
jge 0x56435b
jmp 0x564304
mov ecx, dword [esp + 0x1c]
sub eax, ebx
push ecx
add eax, esi
push eax
call dword [sym.imp.SanCalc.dll_int___cdecl_min_int__int_]
mov ecx, dword [esp + 0x8c]
add esp, 8
mov dword [ecx + 0x1c], 0
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
push 0
push ebx
push edi
mov dword [esp + 0x38], eax
call fcn.0057aac0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov ecx, dword [esp + 0x5c]
add ebx, eax
mov eax, dword [esp + 0x54]
sub eax, ecx
lea ecx, [eax + esi]
cmp ebx, ecx
jl 0x564300
mov ebx, dword [esp + 0x88]
mov eax, dword [ebx + 0x1c]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.0057b230
add esp, 8
test eax, eax
mov dword [esp + 0x84], eax
je 0x564422
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
sub ebx, eax
mov eax, dword [esp + 0x30]
mov ecx, ebp
sub ecx, eax
sub eax, edx
add ecx, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
sub eax, edx
lea edx, [eax + esi]
cmp ebx, edx
jge 0x56441b
jmp 0x5643c3
mov ecx, dword [esp + 0x1c]
sub eax, ebx
push ecx
add eax, esi
push eax
call dword [sym.imp.SanCalc.dll_int___cdecl_min_int__int_]
mov ecx, dword [esp + 0x8c]
add esp, 8
mov dword [ecx + 0x1c], 0
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
push eax
push ebx
push edi
call fcn.0057aac0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
sub ecx, edx
sub eax, dword [esp + 0x3c]
add ebx, ecx
lea edx, [eax + esi]
cmp ebx, edx
jl 0x5643bf
mov ebx, dword [esp + 0x88]
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.0057b230
add esp, 8
test eax, eax
mov dword [esp + 0x84], eax
je 0x5644dc
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
sub eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
sub ebx, edx
mov edx, dword [esp + 0x50]
sub ecx, eax
mov eax, dword [esp + 0x48]
sub eax, edx
lea edx, [eax + ebp]
cmp ebx, edx
jge 0x5644d5
jmp 0x564480
mov ecx, dword [esp + 0x1c]
jmp 0x564480
sub eax, ebx
push ecx
add eax, ebp
push eax
call dword [sym.imp.SanCalc.dll_int___cdecl_min_int__int_]
mov ecx, dword [esp + 0x8c]
add esp, 8
mov dword [ecx + 0x1c], 0
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push edx
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push eax
push ebx
push 0
push edi
call fcn.0057aac0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
sub ecx, edx
sub eax, dword [esp + 0x50]
add ebx, ecx
lea edx, [eax + ebp]
cmp ebx, edx
jl 0x564477
mov ebx, dword [esp + 0x88]
mov ecx, dword [ebx + 0x14]
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.0057b230
add esp, 8
test eax, eax
mov dword [esp + 0x84], eax
je 0x5645a1
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x60]
mov ecx, esi
sub ecx, eax
add ecx, edx
sub eax, edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
sub ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
sub ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
sub eax, edx
lea edx, [eax + ebp]
cmp ebx, edx
jge 0x56459a
jmp 0x564540
mov ecx, dword [esp + 0x1c]
jmp 0x564540
sub eax, ebx
push ecx
add eax, ebp
push eax
call dword [sym.imp.SanCalc.dll_int___cdecl_min_int__int_]
mov ecx, dword [esp + 0x8c]
add esp, 8
mov dword [ecx + 0x1c], 0
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push eax
push ebx
push edx
push edi
call fcn.0057aac0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x40]
add ebx, eax
mov eax, dword [esp + 0x38]
sub eax, ecx
lea ecx, [eax + ebp]
cmp ebx, ecx
jl 0x564537
mov ebx, dword [esp + 0x88]
mov eax, dword [ebx]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.0057b230
add esp, 8
test eax, eax
mov dword [esp + 0x84], eax
je 0x5645f2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
sub edx, ecx
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
mov dword [eax + 0x1c], 0
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x90]
push edx
push 0
push 0
push edi
call fcn.0057aac0
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.0057b230
add esp, 8
test eax, eax
mov dword [esp + 0x84], eax
je 0x564660
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, esi
sub edx, ecx
sub ecx, eax
add edx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0x84]
mov dword [eax + 0x1c], 0
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x94]
push 0
push edx
push edi
call fcn.0057aac0
mov eax, dword [ebx + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.0057b230
add esp, 8
test eax, eax
mov dword [esp + 0x84], eax
je 0x5646ce
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, ebp
sub edx, ecx
sub ecx, dword [esp + 0x28]
add edx, eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x84]
mov dword [ecx + 0x1c], 0
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x90]
push eax
push edx
push 0
push edi
call fcn.0057aac0
mov eax, dword [ebx + 0x20]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.0057b230
add esp, 8
test eax, eax
je 0x56471e
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
sub esi, edx
add esi, ecx
sub edx, ecx
mov ecx, dword [esp + 0x28]
sub ebp, ebx
add ebp, dword [esp + 0x28]
sub ebx, ecx
mov dword [eax + 0x1c], 0
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
push ebx
push edx
push ebp
push esi
push edi
mov ecx, eax
call fcn.0057aac0
mov ecx, dword [esp + 0x20]
push edi
call fcn.00577180
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 8
mov ecx, dword [esp + 0x68]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 8