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

Disassembly:
mov edx, dword [esp + 0x20]
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
push edi
mov edi, dword [esp + 0x78]
cmp edx, esi
jne 0x5e2c8b
mov ebx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x7c]
mov eax, ebx
sub eax, ecx
sar eax, 2
jmp 0x5e2cbc
mov ecx, dword [esp + 0x7c]
mov eax, edx
sub eax, esi
mov ebx, edi
sar eax, 2
add eax, 0x3fffff
sub ebx, ecx
shl eax, 0xa
sar ebx, 2
add eax, ebx
mov ebx, dword [esp + 0x8c]
mov ebp, ebx
sub ebp, dword [esp + 0x84]
sar ebp, 2
add eax, ebp
cmp eax, 0x10
jg 0x5e2d10
mov eax, dword [esp + 0x94]
mov ebp, dword [esp + 0x84]
push 0
push eax
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ebp
mov ebp, dword [esp + 0xb0]
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x9c]
mov edx, esp
mov dword [edx], eax
mov dword [edx + 4], edi
mov dword [edx + 8], ecx
mov dword [edx + 0xc], esi
call fcn.005e34d0
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], esi
call fcn.005e2ab0
mov esi, dword [esp + 0x94]
cmp eax, 0x10
jle 0x5e2f3f
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
call fcn.005e2b00
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x50], edx
lea edx, [esp + 0x20]
mov dword [esp + 0x5c], ecx
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], eax
call fcn.005e2ab0
cdq
sub eax, edx
lea ecx, [esp + 0x20]
sar eax, 1
push eax
lea eax, [esp + 0x64]
push eax
call fcn.005e2a30
mov eax, dword [eax + 8]
mov ecx, dword [edi]
push esi
push esi
mov edx, dword [eax]
mov eax, dword [esp + 0x30]
push ecx
push edx
mov ecx, dword [eax]
push ecx
call fcn.005e3690
add esp, 0x10
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x4c]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x50]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x58]
push edx
call fcn.005e36e0
add esp, 0x2c
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
call fcn.005e2ab0
lea ecx, [esp + 0x20]
mov edi, eax
push ecx
lea ecx, [esp + 0x34]
call fcn.005e2ab0
cmp edi, eax
push 0
push esi
jg 0x5e2ec0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x58]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x5c]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x60]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.005e30b0
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x64]
add esp, 0x28
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jmp 0x5e2f28
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x4c]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.005e30b0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x64]
add esp, 0x28
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call fcn.005e2ab0
cmp eax, 0x10
jg 0x5e2d60
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x48], ecx
push 0x10
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], edx
call fcn.005e2b00
mov ecx, dword [esp + 0x40]
push 0
push esi
mov edx, dword [esp + 0x4c]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x9c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0xa0]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xa4]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xa8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.005e34d0
add esp, 0x28
lea ecx, [esp + 0x74]
push 0x10
call fcn.005e2b00
mov eax, dword [esp + 0x7c]
cmp eax, ebx
je 0x5e3084
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x80]
mov ecx, dword [esp + 0x74]
mov edx, dword [eax]
mov dword [esp + 0x94], edx
cmp eax, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edi
mov ebp, eax
mov dword [esp + 0x4c], esi
jne 0x5e3013
mov ecx, dword [esi - 4]
sub esi, 4
lea edi, [ecx + 0x1000]
mov eax, edi
mov ebx, dword [esp + 0x94]
mov edx, dword [eax - 4]
sub eax, 4
mov bl, byte [ebx + 8]
cmp bl, byte [edx + 8]
jae 0x5e302d
mov dword [ebp], edx
jmp 0x5e2ff3
mov eax, dword [esp + 0x94]
mov dword [ebp], eax
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x80]
add eax, 4
cmp eax, edi
mov dword [esp + 0x7c], eax
jne 0x5e3073
add esi, 4
mov dword [esp + 0x80], esi
mov ecx, dword [esi]
mov eax, ecx
mov dword [esp + 0x74], ecx
lea edi, [ecx + 0x1000]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], edi
jmp 0x5e3077
mov ecx, dword [esp + 0x74]
cmp eax, dword [esp + 0x8c]
jne 0x5e2fea
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret