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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x8c]
cmp eax, dword [ecx + 8]
jbe 0x509d98
sub esp, 0x10c
nop
mov ebx, dword [esp + 0x120]
mov ebp, dword [esp + 0x11c]
mov eax, ebx
jmp 0x508c08
mov ebx, esi
test ebx, ebx
jle 0x508c23
lea esi, [ebx - 1]
cmp eax, esi
jbe 0x509d8e
mov ecx, ebx
mov ebx, dword [ebp + ebx*4 - 4]
test ebx, ebx
je 0x508c06
jmp 0x508c25
mov ecx, ebx
mov edx, dword [esp + 0x124]
cmp edx, ecx
jb 0x509d89
nop
mov ebx, dword [esp + 0x12c]
mov esi, dword [esp + 0x128]
mov eax, ebx
jmp 0x508c4b
mov ebx, ebp
mov ebp, edi
mov dword [esp + 0xa8], ebx
test ebx, ebx
jle 0x508c74
mov edi, ebp
lea ebp, [ebx - 1]
cmp eax, ebp
jbe 0x509d80
mov ebx, dword [esi + ebx*4 - 4]
test ebx, ebx
je 0x508c47
mov ebx, dword [esp + 0xa8]
mov ebp, edi
mov eax, esi
mov esi, dword [esp + 0x130]
cmp esi, ebx
jb 0x509d77
test ecx, ecx
je 0x508eed
cmp ebx, 0x64
jl 0x508ea9
mov edi, ecx
sub ecx, ebx
test ecx, ecx
jl 0x508ea2
mov esi, dword [esp + 0x140]
mov ebp, dword [esp + 0x134]
cmp esi, ebp
jbe 0x509d6e
mov dword [esp + 0xcc], edi
mov dword [esp + 0x84], ecx
shr ebx, 1
mov dword [esp + 0xb0], ebx
mov esi, dword [esp + 0x13c]
mov ebx, dword [esi + ebp*4]
lea ebp, [esi + ebp*4]
test ebx, ebx
je 0x508e25
mov ebp, dword [ebx + 8]
mov ebx, dword [ebx]
mov dword [esp + 0xe8], ebx
mov esi, dword [esp + 0xb0]
lea ebx, [esi + 1]
cmp ebp, ebx
jl 0x508d25
jb 0x509d65
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xd0]
jmp 0x508dde
test esi, esi
jne 0x508d81
lea eax, [0x62ec80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447580
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x124]
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xcc]
mov dword [esp + 0xd8], ebx
mov ebp, 1
mov ebx, 1
jmp 0x508dde
mov dword [esp + 0x80], ebx
lea eax, [0x62ec80]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea ecx, [esi + 5]
mov dword [esp + 0x40], ecx
mov dword [esp + 8], ecx
call fcn.00447580
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x124]
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xcc]
mov dword [esp + 0xd8], ebx
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x80]
mov edx, dword [esp + 0x134]
mov esi, dword [esp + 0x13c]
mov edx, dword [esi + edx*4]
mov dword [edx + 4], ebx
mov dword [edx + 8], ebp
mov ebx, dword [0x84c7c0]
test ebx, ebx
jne 0x508e0d
mov ebx, dword [esp + 0xd8]
mov dword [edx], ebx
jmp 0x508e8f
mov ebx, edi
mov edi, edx
mov ebp, eax
mov eax, dword [esp + 0xd8]
call fcn.0045e710
mov eax, ebp
mov edi, ebx
jmp 0x508e8f
mov dword [esp + 0x108], ebp
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
call fcn.00502fe0
mov eax, dword [0x84c7c0]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x508e5c
mov edx, dword [esp + 0x134]
mov ebx, dword [esp + 0x13c]
mov dword [ebx + edx*4], ecx
jmp 0x508e78
mov edi, dword [esp + 0x108]
mov eax, ecx
call fcn.0045e710
mov edx, dword [esp + 0x134]
mov ebx, dword [esp + 0x13c]
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x84]
mov esi, ebx
mov edi, dword [esp + 0xcc]
mov edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0x134]
jmp 0x508fa3
add esp, 0x10c
ret
mov edi, dword [esp + 0x110]
mov dword [esp], edi
mov edi, dword [esp + 0x114]
mov dword [esp + 4], edi
mov edi, dword [esp + 0x118]
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
call fcn.005084d0
add esp, 0x10c
ret
mov eax, dword [esp + 0x110]
mov dword [esp], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x118]
mov dword [esp + 8], eax
call fcn.004fff20
add esp, 0x10c
ret
mov eax, dword [esp + 0x110]
mov dword [esp], eax
mov ecx, dword [esp + 0x114]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x118]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0xf8]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0x18], ebx
call fcn.00501650
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xcc]
mov ebx, dword [esp + 0x134]
mov ebp, dword [esp + 0xc8]
mov eax, dword [esp + 0x128]
mov edx, ecx
mov esi, dword [esp + 0x13c]
mov edi, dword [esp + 0xcc]
mov ecx, ebp
cmp ecx, edx
jle 0x50937c
sub ecx, edx
cmp edi, ecx
jb 0x509d5c
mov dword [esp + 0xc8], ecx
mov eax, dword [esi + ebx*4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x70], ecx
mov edx, dword [eax]
mov dword [esp + 0xf8], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x68], eax
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004fff20
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0xc8]
sub edx, eax
mov ebx, dword [esp + 0xcc]
sub ebx, eax
mov esi, edx
neg edx
shl eax, 2
sar edx, 0x1f
and eax, edx
mov edx, dword [esp + 0x11c]
add eax, edx
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0xb0]
lea ebp, [ecx + edx]
cmp esi, ebp
jb 0x509d53
lea edi, [ecx - 1]
cmp edi, ebp
ja 0x509d4a
mov dword [esp + 0x54], edi
mov dword [esp + 0xc4], esi
sub esi, ecx
inc esi
mov dword [esp + 0xc0], esi
shl edi, 2
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, edi
add esi, eax
mov ebp, dword [esp + 0x54]
cmp edx, ebp
jb 0x509d41
mov dword [esp + 0x4c], ebx
mov dword [esp + 0xec], eax
mov dword [esp + 0xbc], edi
mov dword [esp + 0x104], esi
mov eax, dword [esp + 0xf8]
mov dword [esp], eax
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x70]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
lea esi, [edx + 1]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0xc0]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x130]
sub esi, ecx
inc esi
mov dword [esp + 0xb8], esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, edi
mov edi, dword [esp + 0x128]
add esi, edi
mov dword [esp + 0x100], esi
mov dword [esp + 0x18], esi
sub edx, ecx
inc edx
mov dword [esp + 0xb4], edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x134]
inc edx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x138]
mov dword [esp + 0x28], edx
mov esi, dword [esp + 0x13c]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x140]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x144]
mov dword [esp + 0x34], esi
call fcn.00508bd0
nop
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0xf8]
mov edx, eax
jmp 0x509a70
mov edx, dword [esp + 0x70]
cmp eax, edx
ja 0x509d31
mov dword [esp + 0x90], eax
mov ebx, dword [esp + 0x138]
mov ebp, dword [ebx + 8]
mov esi, dword [ebx]
mov edi, dword [esp + 0xa8]
lea ebx, [edi + edi*2]
cmp ebp, ebx
jl 0x50917f
jae 0x5091e0
jmp 0x509d28
cmp ebx, 1
jne 0x5091b2
lea eax, [0x62ec80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447580
mov esi, dword [esp + 0xc]
mov ebp, 1
mov ebx, 1
jmp 0x5091e0
mov dword [esp + 0x78], ebx
lea eax, [0x62ec80]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea ecx, [edi + edi*2 + 4]
mov dword [esp + 0x44], ecx
mov dword [esp + 8], ecx
call fcn.00447580
mov esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xdc], esi
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.004fff20
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x128]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x130]
mov dword [esp + 0x20], esi
call fcn.00501760
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xf4], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x5c], edx
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0x4c]
xor esi, esi
jmp 0x509b10
mov esi, ebp
jmp 0x509c64
mov ebp, dword [esp + 0xa4]
mov edi, dword [esp + 0xc4]
cmp ebp, edi
ja 0x509cab
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
call fcn.00500660
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x509c93
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0xc4]
cmp ecx, edx
ja 0x509c8e
mov eax, dword [esp + 0xec]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0xf4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x20], ebx
call fcn.00509ed0
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x508f19
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
cmp edx, ecx
ja 0x509c87
mov ebx, dword [esp + 0xc4]
sub ebx, edx
mov ebp, ebx
neg ebx
mov esi, edx
shl edx, 2
sar ebx, 0x1f
and ebx, edx
mov edx, dword [esp + 0xec]
add edx, ebx
mov dword [esp], edx
sub ecx, esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
call fcn.00509f40
jmp 0x508f19
mov eax, dword [esi + ebx*4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x74], ecx
mov edx, dword [eax]
mov dword [esp + 0xfc], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x6c], eax
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004fff20
mov eax, dword [esp + 0xb0]
lea ecx, [eax - 1]
mov edx, dword [esp + 0xcc]
cmp edx, ecx
jb 0x509a65
mov dword [esp + 0x50], ecx
mov ebx, dword [esp + 0x124]
sub ebx, eax
inc ebx
mov esi, ecx
shl ecx, 2
mov edi, ebx
neg ebx
sar ebx, 0x1f
and ebx, ecx
mov ebp, dword [esp + 0x11c]
add ebx, ebp
sub edx, eax
lea ebp, [edx + 1]
mov edx, ebp
jmp 0x5093f3
mov ebp, esi
mov esi, dword [esp + 0x50]
test ebp, ebp
jle 0x50941c
lea esi, [ebp - 1]
cmp esi, edx
jae 0x509a5c
mov dword [esp + 0xac], ebp
mov ebp, dword [ebx + ebp*4 - 4]
test ebp, ebp
je 0x5093ed
mov ebp, dword [esp + 0xac]
mov esi, dword [esp + 0x50]
cmp ebp, edi
ja 0x509a53
mov dword [esp + 0xc8], edx
mov edx, dword [esp + 0xa8]
cmp edx, esi
jb 0x509a4a
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xe4], ebx
mov esi, dword [esp + 0xfc]
mov dword [esp], esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 4], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
mov ebp, dword [esp + 0x130]
sub ebp, eax
inc ebp
mov dword [esp + 0xbc], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, ecx
mov ecx, dword [esp + 0x128]
add ebp, ecx
mov dword [esp + 0x104], ebp
mov dword [esp + 0x18], ebp
sub edx, eax
inc edx
mov dword [esp + 0xb8], edx
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x134]
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x138]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x13c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x140]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x144]
mov dword [esp + 0x34], edx
call fcn.00508bd0
nop
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0xfc]
mov edx, eax
jmp 0x50950d
mov eax, ebx
test eax, eax
jle 0x509524
lea ebx, [eax - 1]
cmp edx, ebx
jbe 0x509a41
mov ebp, dword [ecx + eax*4 - 4]
test ebp, ebp
je 0x50950b
mov edx, dword [esp + 0x74]
cmp eax, edx
ja 0x509a3a
mov dword [esp + 0x98], eax
mov ebx, dword [esp + 0x138]
mov ebp, dword [ebx + 8]
mov ebx, dword [ebx]
mov esi, dword [esp + 0xa8]
lea edi, [esi + esi*2]
cmp ebp, edi
jl 0x509558
jae 0x5095b9
jmp 0x509a31
cmp edi, 1
jne 0x50958b
lea eax, [0x62ec80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447580
mov ebx, dword [esp + 0xc]
mov ebp, 1
mov edi, 1
jmp 0x5095b9
mov dword [esp + 0x7c], edi
lea eax, [0x62ec80]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esi + esi*2 + 4]
mov dword [esp + 0x48], eax
mov dword [esp + 8], eax
call fcn.00447580
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0xe0], ebx
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
call fcn.004fff20
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x128]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x130]
mov dword [esp + 0x20], esi
call fcn.00501760
mov eax, dword [esp + 0x28]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xf0], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x60], edx
mov ebx, dword [esp + 0xcc]
mov ebp, dword [esp + 0x11c]
xor esi, esi
jmp 0x509687
mov edi, dword [esp + 0x8c]
lea esi, [edi + 1]
mov ebx, dword [esp + 0xcc]
mov ebp, dword [esp + 0x11c]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0xf0]
mov edx, dword [esp + 0x60]
cmp esi, 2
jge 0x50980f
mov dword [esp + 0x8c], esi
mov edi, ebx
jmp 0x5099f7
mov ebx, dword [esp + 0x94]
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x124]
cmp edi, ebx
jb 0x509a1f
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
call fcn.00500660
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x509660
mov eax, dword [esp + 0xfc]
mov dword [esp], eax
mov ecx, dword [esp + 0x98]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 1
call fcn.00509f40
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x50]
cmp edx, ecx
jb 0x509a1a
mov eax, dword [esp + 0xf0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x128]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov ebp, dword [esp + 0x130]
mov dword [esp + 0x20], ebp
call fcn.00509ed0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
cmp ecx, edx
jle 0x5097bc
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0xb0]
sub edx, ebx
inc edx
mov esi, edx
neg edx
sar edx, 0x1f
mov edi, dword [esp + 0xc0]
and edx, edi
mov edi, dword [esp + 0xf0]
add edx, edi
mov dword [esp], edx
sub ecx, ebx
inc ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
call fcn.00509f40
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
mov ecx, dword [esp + 0xc8]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xc4]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x104]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0xb8]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0xbc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
call fcn.00501650
jmp 0x509660
mov esi, ebx
jmp 0x509815
mov ebx, edi
test ebx, ebx
jle 0x50983a
lea edi, [ebx - 1]
cmp esi, edi
jbe 0x5099e5
mov dword [esp + 0x88], ebx
mov ebx, dword [ebp + ebx*4 - 4]
test ebx, ebx
je 0x509813
mov ebx, dword [esp + 0x88]
mov edi, dword [esp + 0x124]
cmp edi, ebx
jb 0x5099dc
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
call fcn.00500660
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x5099c4
mov edx, dword [esp + 0x124]
mov ecx, dword [esp + 0x58]
cmp edx, ecx
jb 0x5099bf
mov eax, dword [esp + 0x11c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0xf0]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x20], ebx
call fcn.00509ed0
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x50991f
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0x58]
cmp ecx, edx
jb 0x5099b8
mov ebx, dword [esp + 0x124]
sub ebx, edx
mov ebp, ebx
neg ebx
mov esi, edx
shl edx, 2
sar ebx, 0x1f
and ebx, edx
mov edx, dword [esp + 0x11c]
add edx, ebx
mov dword [esp], edx
sub ecx, esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
call fcn.00509f40
mov eax, dword [esp + 0x1c]
test eax, eax
ja 0x5099a0
mov eax, dword [esp + 0x98]
mov ebx, dword [esp + 0xfc]
mov ecx, eax
jmp 0x509937
mov eax, ebp
test eax, eax
jle 0x50994a
lea ebp, [eax - 1]
cmp ecx, ebp
jbe 0x509999
mov esi, dword [ebx + eax*4 - 4]
test esi, esi
je 0x509935
mov edx, dword [esp + 0x74]
cmp eax, edx
ja 0x509992
mov ecx, dword [esp + 0x110]
mov dword [esp], ecx
mov ecx, dword [esp + 0x114]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x118]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0
call fcn.00501650
add esp, 0x10c
ret
mov ecx, eax
call fcn.0045e7d0
mov eax, ebp
call fcn.0045e790
lea eax, [0x62f240]
mov dword [esp], eax
lea eax, [0x6c12f0]
mov dword [esp + 4], eax
call fcn.00433500
mov eax, edx
call fcn.0045e7f0
call fcn.0045e7d0
lea eax, [0x62f240]
mov dword [esp], eax
lea eax, [0x6c12f0]
mov dword [esp + 4], eax
call fcn.00433500
mov ecx, ebx
mov edx, edi
call fcn.0045e7d0
mov eax, edi
mov ecx, esi
call fcn.0045e790
mov ebx, esi
mov esi, dword [esp + 0x8c]
test ebx, ebx
jle 0x5096ac
lea esi, [ebx - 1]
cmp edi, esi
jbe 0x509a28
mov dword [esp + 0x94], ebx
mov ebx, dword [ebp + ebx*4 - 4]
test ebx, ebx
je 0x5099ee
jmp 0x50969e
call fcn.0045e7d0
mov ecx, ebx
mov edx, edi
call fcn.0045e7d0
mov eax, esi
mov ecx, edi
call fcn.0045e790
mov ecx, edi
mov edx, ebp
call fcn.0045e7d0
mov ecx, eax
call fcn.0045e7d0
mov eax, ebx
mov ecx, edx
call fcn.0045e790
mov eax, esi
mov ecx, edx
call fcn.0045e7f0
mov ecx, ebp
mov edx, edi
call fcn.0045e7d0
mov eax, esi
mov ecx, edx
call fcn.0045e790
mov eax, ecx
mov ecx, edx
call fcn.0045e7f0
mov eax, ebx
test eax, eax
jle 0x50914b
lea ebx, [eax - 1]
cmp edx, ebx
jbe 0x509d38
mov ebp, dword [ecx + eax*4 - 4]
test ebp, ebp
je 0x509a6e
jmp 0x50914b
mov eax, dword [esp + 0x104]
mov dword [esp], eax
mov ecx, dword [esp + 0xb0]
sub ebx, ecx
inc ebx
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xc0]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x100]
mov dword [esp + 0xc], ebp
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
call fcn.00501650
mov eax, dword [esp + 0xa0]
lea esi, [eax + 1]
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0x4c]
cmp esi, 2
jge 0x509287
mov dword [esp + 0xa0], esi
mov edi, ebp
jmp 0x509cc6
mov ebp, dword [esp + 0x9c]
mov esi, dword [esp + 0xa0]
mov esi, dword [esp + 0xc4]
cmp ebp, esi
ja 0x509d16
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.00500660
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x509ce9
mov eax, dword [esp + 0xf8]
mov dword [esp], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 1
call fcn.00509f40
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x54]
cmp edx, ecx
jb 0x509d11
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x128]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov ebp, dword [esp + 0x130]
mov dword [esp + 0x20], ebp
call fcn.00509ed0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
cmp ecx, edx
jle 0x509c51
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0xb0]
sub edx, ebx
inc edx
mov esi, edx
neg edx
sar edx, 0x1f
mov edi, dword [esp + 0xbc]
and edx, edi
mov edi, dword [esp + 0xf4]
add edx, edi
mov dword [esp], edx
sub ecx, ebx
inc ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
call fcn.00509f40
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x4c]
cmp ebx, edx
jae 0x509a90
jmp 0x509d08
mov ebp, edi
test ebp, ebp
jle 0x509295
lea edi, [ebp - 1]
cmp esi, edi
jbe 0x509cb4
mov dword [esp + 0xa4], ebp
mov ebp, dword [ebx + ebp*4 - 4]
test ebp, ebp
je 0x509c62
jmp 0x50928e
mov eax, edx
call fcn.0045e7f0
call fcn.0045e7d0
lea eax, [0x62f240]
mov dword [esp], eax
lea eax, [0x6c12f0]
mov dword [esp + 4], eax
call fcn.00433500
mov ecx, ebp
mov edx, edi
call fcn.0045e7d0
mov eax, edi
mov ecx, esi
call fcn.0045e790
mov ebp, esi
mov esi, dword [esp + 0xa0]
test ebp, ebp
jle 0x509b35
lea esi, [ebp - 1]
cmp edi, esi
jbe 0x509d1f
mov dword [esp + 0x9c], ebp
mov ebp, dword [ebx + ebp*4 - 4]
test ebp, ebp
je 0x509cbd
jmp 0x509b27
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0x4c]
jmp 0x509287
mov eax, edx
mov ecx, ebx
call fcn.0045e7f0
call fcn.0045e7d0
mov ecx, ebp
mov edx, esi
call fcn.0045e7d0
mov eax, esi
mov ecx, edi
call fcn.0045e790
mov ecx, ebx
mov edx, ebp
call fcn.0045e7d0
mov ecx, eax
call fcn.0045e7d0
mov eax, ebx
mov ecx, edx
call fcn.0045e790
mov eax, ebp
mov ecx, edx
call fcn.0045e7f0
mov eax, edi
mov ecx, ebp
call fcn.0045e7f0
mov ecx, ebp
mov edx, esi
call fcn.0045e7d0
mov eax, ecx
mov ecx, edi
call fcn.0045e7f0
mov ecx, ebx
mov edx, ebp
call fcn.0045e7d0
mov eax, ebp
mov ecx, esi
call fcn.0045e790
mov ecx, ebx
mov edx, esi
call fcn.0045e7d0
mov ecx, eax
mov eax, ebp
call fcn.0045e790
call fcn.0045e7d0
mov ecx, eax
mov eax, esi
call fcn.0045e790
nop
call fcn.0045d2d0
jmp fcn.00508bd0