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

Disassembly:
push 0xffffffffffffffff
push 0x70fdbc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x50], esi
mov ecx, dword [esi + 8]
call fcn.00405860
cdq
sub eax, edx
xor ebx, ebx
sar eax, 1
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3e]
push eax
lea ecx, [esp + 0x3f]
push ebx
push ecx
lea ecx, [esp + 0x60]
call fcn.0046d680
lea edx, [esp + 0x3f]
lea eax, [esp + 0x39]
push edx
push ebx
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x188], ebx
call fcn.0046d680
lea ecx, [esp + 0x38]
lea edx, [esp + 0x3a]
push ecx
push ebx
push edx
lea ecx, [esp + 0x80]
mov byte [esp + 0x188], 1
call fcn.0046d680
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x3d]
push eax
push ebx
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x188], 2
call fcn.0046d680
mov ebp, dword [esp + 0x184]
mov eax, dword [esp + 0x188]
mov esi, dword [esi + 0x24]
mov byte [esp + 0x17c], 3
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
shl ebp, 4
add ebp, esi
cmp edi, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], edi
je 0x5d2940
mov edx, dword [esp + 0x50]
mov ebx, dword [edi]
mov esi, dword [edi + 4]
mov ecx, dword [edx + 8]
call fcn.00405860
mov dword [esp + 0x10], eax
lea ecx, [esi + ebx]
cdq
sub eax, edx
sar eax, 1
lea edx, [eax - 1]
cmp ecx, edx
jne 0x5d2504
mov dword [esp + 0x14], 1
jmp 0x5d251c
mov edx, dword [esp + 0x10]
lea eax, [eax + edx - 1]
cmp ecx, eax
jne 0x5d2927
mov dword [esp + 0x14], 2
mov ecx, dword [esp + 0x50]
sub esp, 0xc
mov edi, dword [esp + 0x190]
mov eax, esp
mov ecx, dword [ecx + 8]
mov dword [eax], ebx
mov edx, dword [ecx]
mov dword [eax + 4], esi
mov dword [eax + 8], edi
lea eax, [esp + 0x120]
push eax
call dword [edx + 0x40]
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x114]
xor eax, eax
xor edi, edi
mov ax, word [edx]
mov di, word [ecx]
mov edx, dword [esp + 0x118]
xor ecx, ecx
sub esi, ebx
mov cx, word [edx]
add eax, ecx
mov ecx, dword [esp + 0x11c]
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
mov ebp, eax
xor eax, eax
mov ax, word [ecx]
mov ecx, dword [esp + 0x14]
sar ebp, 1
add esi, edx
cmp ecx, 1
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
lea ebx, [esi - 1]
lea edx, [esi + 1]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], edx
jne 0x5d2752
mov ebx, dword [ecx + ebx*8]
mov dword [esp + 0x14], ebx
mov ebx, dword [ecx + esi*8]
mov ecx, dword [ecx + edx*8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
cmp edi, ecx
je 0x5d25ff
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x124]
push eax
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], edi
call fcn.00407ea0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
cmp ebp, ebx
je 0x5d2632
lea edx, [esp + 0xe4]
lea eax, [esp + 0x12c]
push edx
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0xec], esi
mov dword [esp + 0xf0], ebp
call fcn.00407ea0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
cmp eax, dword [esp + 0x10]
je 0x5d2663
mov dword [esp + 0xf4], edx
lea ecx, [esp + 0xf4]
lea edx, [esp + 0x13c]
push ecx
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x100], eax
call fcn.00407ea0
mov eax, dword [esp + 0x1c]
cmp edi, ebp
jg 0x5d2669
mov edi, ebp
cmp ebp, eax
jg 0x5d266f
mov ebp, eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
jg 0x5d2679
mov eax, ebx
mov esi, dword [esp + 0x10]
cmp ebx, esi
jle 0x5d2683
mov esi, ebx
cmp edi, eax
jge 0x5d26f4
sub edi, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x10c]
mov dword [esp + 0x18], edi
call fcn.005004a0
mov edx, dword [esp + 0x104]
mov eax, dword [esp + 0x108]
mov dword [esp + 0x10c], edx
lea ecx, [esp + 0x10c]
lea edx, [esp + 0xd4]
push ecx
push edx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x118], eax
call fcn.00407ea0
lea eax, [esp + 0xd8]
lea ecx, [esp + 0xd4]
push eax
push ecx
lea ecx, [esp + 0x154]
call fcn.005ca5a0
cmp ebp, esi
jge 0x5d291f
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
sub ebp, esi
push edx
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x18], ebp
call fcn.005004a0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov dword [esp + 0xdc], ecx
lea eax, [esp + 0xdc]
lea ecx, [esp + 0x15c]
push eax
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0xe8], edx
call fcn.00407ea0
jmp 0x5d291f
mov ebx, dword [ecx + ebx*8 + 4]
mov edx, dword [ecx + edx*8 + 4]
mov dword [esp + 0x10], ebx
mov ebx, dword [ecx + esi*8 + 4]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
cmp edi, ecx
je 0x5d27a1
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xac]
lea edx, [esp + 0x16c]
push ecx
push edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], edi
call fcn.00407ea0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
cmp ebp, ebx
je 0x5d27d0
lea eax, [esp + 0xfc]
lea ecx, [esp + 0x134]
push eax
push ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x104], esi
mov dword [esp + 0x108], ebp
call fcn.00407ea0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x14]
je 0x5d2841
lea edx, [esp + 0x1c]
lea eax, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0xc4]
call fcn.005004a0
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xc0]
mov dword [esp + 0xec], ecx
lea eax, [esp + 0xec]
lea ecx, [esp + 0xcc]
push eax
push ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0xf8], edx
call fcn.00407ea0
lea edx, [esp + 0xd0]
lea eax, [esp + 0xcc]
push edx
push eax
lea ecx, [esp + 0x15c]
call fcn.005ca5a0
mov eax, dword [esp + 0x1c]
cmp edi, ebp
jl 0x5d2847
mov edi, ebp
cmp ebp, eax
jl 0x5d284d
mov ebp, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
jl 0x5d2857
mov eax, ebx
mov ecx, dword [esp + 0x14]
cmp ebx, ecx
jl 0x5d2861
mov ebx, ecx
cmp edi, eax
jle 0x5d28ae
mov ecx, dword [esp + 0x28]
sub edi, eax
lea edx, [esp + 0x8c]
lea eax, [esp + 0x94]
mov dword [esp + 0x8c], ecx
push edx
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x98], edi
call fcn.00407ea0
lea ecx, [esp + 0x98]
lea edx, [esp + 0x94]
push ecx
push edx
lea ecx, [esp + 0x14c]
call fcn.005ca5a0
cmp ebp, ebx
jle 0x5d291f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
sub ebp, ebx
push ecx
lea ecx, [esp + 0xac]
mov dword [esp + 0x18], ebp
call fcn.005004a0
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xb4], edx
lea ecx, [esp + 0xb4]
lea edx, [esp + 0xc4]
push ecx
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0xc0], eax
call fcn.00407ea0
lea eax, [esp + 0xc8]
lea ecx, [esp + 0xc4]
push eax
push ecx
lea ecx, [esp + 0x16c]
call fcn.005ca5a0
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x188]
add edi, 8
mov dword [esp + 0x2c], edi
cmp edi, dword [edx + 8]
jne 0x5d24d6
xor ebx, ebx
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x24], eax
je 0x5d296f
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 4]
mov eax, dword [eax + 0x10]
mov dword [edx + ecx*8], eax
lea ecx, [esp + 0x24]
call fcn.00409960
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x58]
cmp eax, ecx
jne 0x5d294e
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x24], eax
je 0x5d299f
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 4]
mov eax, dword [eax + 0x10]
mov dword [edx + ecx*8 + 4], eax
lea ecx, [esp + 0x24]
call fcn.00409960
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x68]
cmp eax, ecx
jne 0x5d297d
mov eax, dword [esp + 0x18c]
lea ecx, [esp + 0x74]
push eax
call fcn.0060d110
mov eax, dword [esp + 0x190]
mov cl, byte [esp + 0x41]
mov byte [esp + 0x17c], 2
mov dl, byte [eax + 1]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x41], dl
mov edx, dword [eax + 4]
mov dword [eax + 4], ecx
mov cl, byte [esp + 0x48]
mov dword [esp + 0x44], edx
mov dl, byte [eax + 8]
mov byte [eax + 8], cl
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x48], dl
mov edx, dword [eax + 0xc]
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x4c], edx
call fcn.00407b70
mov eax, dword [esp + 0x78]
mov byte [esp + 0x17c], 1
push eax
mov ecx, dword [eax]
lea eax, [esp + 0x1c]
push ecx
push eax
lea ecx, [esp + 0x80]
call fcn.005df260
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00652870
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x80], ebx
xor esi, esi
call fcn.006747e8
mov eax, dword [0x81de44]
dec eax
mov dword [0x81de44], eax
jne 0x5d2a5d
mov esi, dword [0x81de48]
mov dword [0x81de48], ebx
lea ecx, [esp + 0x18]
call fcn.00674884
cmp esi, ebx
je 0x5d2a73
push esi
call fcn.00652870
add esp, 4
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x18]
push eax
mov byte [esp + 0x180], 0
mov ecx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x70]
call fcn.005df260
mov eax, dword [esp + 0x68]
push eax
call fcn.00652870
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], ebx
xor esi, esi
call fcn.006747e8
mov eax, dword [0x81de44]
dec eax
mov dword [0x81de44], eax
jne 0x5d2aca
mov esi, dword [0x81de48]
mov dword [0x81de48], ebx
lea ecx, [esp + 0x18]
call fcn.00674884
cmp esi, ebx
je 0x5d2ae0
push esi
call fcn.00652870
add esp, 4
mov eax, dword [esp + 0x58]
mov dword [esp + 0x17c], 0xffffffff
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x60]
call fcn.005df260
mov edx, dword [esp + 0x58]
push edx
call fcn.00652870
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
xor esi, esi
call fcn.006747e8
mov eax, dword [0x81de44]
dec eax
mov dword [0x81de44], eax
jne 0x5d2b3a
mov esi, dword [0x81de48]
mov dword [0x81de48], ebx
lea ecx, [esp + 0x10]
call fcn.00674884
cmp esi, ebx
je 0x5d2b50
push esi
call fcn.00652870
add esp, 4
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x170
ret 0x10