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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x80]
cmp eax, dword [ecx + 8]
jbe 0x521005
sub esp, 0x100
nop
mov ebx, dword [esp + 0x114]
mov ebp, dword [esp + 0x110]
mov eax, ebx
jmp 0x51fe55
mov ebx, esi
test ebx, ebx
jle 0x520e88
lea esi, [ebx - 1]
cmp eax, esi
jbe 0x520ffb
mov ecx, ebx
mov ebx, dword [ebp + ebx*4 - 4]
test ebx, ebx
je 0x51fe53
mov edx, dword [esp + 0x118]
cmp ecx, edx
ja 0x520ff6
nop
mov ebx, dword [esp + 0x120]
mov esi, dword [esp + 0x11c]
mov eax, ebx
jmp 0x51fe98
mov ebx, ebp
mov ebp, edi
mov dword [esp + 0x120], ebx
test ebx, ebx
jle 0x520e81
mov edi, ebp
lea ebp, [ebx - 1]
cmp ebp, eax
jae 0x520fed
mov ebx, dword [esi + ebx*4 - 4]
test ebx, ebx
je 0x51fe94
mov ebx, dword [esp + 0x120]
mov ebp, dword [esp + 0x124]
cmp ebx, ebp
ja 0x520fe4
test ecx, ecx
je 0x520e55
cmp ebx, 0x64
jl 0x520e11
mov eax, ecx
sub ecx, ebx
test ecx, ecx
jl 0x520e0a
mov esi, dword [esp + 0x128]
mov ebp, dword [esp + 0x134]
cmp esi, ebp
jae 0x520fdb
mov dword [esp + 0xcc], eax
mov dword [esp + 0xa4], ecx
shr ebx, 1
mov dword [esp + 0xb0], ebx
mov ebp, dword [esp + 0x130]
mov ebx, dword [ebp + esi*4]
lea ebp, [ebp + esi*4]
test ebx, ebx
je 0x520d9b
mov ebp, dword [ebx + 8]
mov ebx, dword [ebx]
mov dword [esp + 0xd4], ebx
mov esi, dword [esp + 0xb0]
lea ebx, [esi + 1]
cmp ebx, ebp
jg 0x520ce0
ja 0x520fd2
mov edx, dword [esp + 0x128]
mov esi, dword [esp + 0x130]
mov edx, dword [esi + edx*4]
mov dword [edx + 4], ebx
mov dword [edx + 8], ebp
mov ebx, dword [0x770e60]
test ebx, ebx
jne 0x520cc5
mov ebx, dword [esp + 0xd4]
mov dword [edx], ebx
mov edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0x128]
jmp 0x520448
mov eax, ebx
test eax, eax
jle 0x51ffb1
lea ebx, [eax - 1]
cmp ebx, edx
jae 0x520fa3
mov ebp, dword [ecx + eax*4 - 4]
test ebp, ebp
je 0x51ff98
mov edx, dword [esp + 0x5c]
cmp eax, edx
ja 0x520f9c
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0x12c]
mov ebp, dword [ebx + 8]
mov esi, dword [ebx]
mov edi, dword [esp + 0x120]
lea ebx, [edi + edi*2]
cmp ebx, ebp
jg 0x5205f6
ja 0x520f93
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x8c], ebx
mov dword [esp + 0xf0], esi
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.0051bbc0
mov eax, dword [esp + 0xf0]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x11c]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x124]
mov dword [esp + 0x20], esi
call fcn.0051d130
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xe4], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x84], edx
mov ebx, dword [esp + 0xe0]
mov ebp, dword [esp + 0x78]
xor esi, esi
jmp 0x52022f
mov ebp, esi
mov esi, dword [esp + 0xac]
mov dword [esp + 0x38], ebp
test ebp, ebp
jle 0x5200c2
lea esi, [ebp - 1]
cmp edi, esi
jbe 0x520f8a
mov ebp, dword [ebx + ebp*4 - 4]
test ebp, ebp
je 0x52009e
mov ebp, dword [esp + 0xc4]
mov esi, dword [esp + 0x38]
cmp ebp, esi
jb 0x520f81
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebp
call fcn.0051c020
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x5202a2
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x5c]
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.005255e0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x94]
cmp ecx, edx
ja 0x520f7c
mov eax, dword [esp + 0xe4]
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 + 0x11c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov ebp, dword [esp + 0x124]
mov dword [esp + 0x20], ebp
call fcn.00525570
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
cmp ecx, edx
jl 0x520242
mov ebx, dword [esp + 0x78]
cmp ecx, ebx
ja 0x520f73
mov eax, dword [esp + 0xfc]
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 + 0xf8]
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.0051d020
mov eax, dword [esp + 0xac]
lea esi, [eax + 1]
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0xe0]
mov ebp, dword [esp + 0x78]
cmp esi, 2
jge 0x5202a2
mov dword [esp + 0xac], esi
mov edi, ebp
jmp 0x5200a7
mov ecx, dword [esp + 0x94]
mov ebx, dword [esp + 0xb0]
sub ecx, ebx
inc ecx
mov esi, ecx
neg ecx
sar ecx, 0x1f
mov edi, dword [esp + 0xbc]
and ecx, edi
mov edi, dword [esp + 0xe4]
add ecx, edi
mov dword [esp], ecx
sub edx, ebx
inc edx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
call fcn.005255e0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
jmp 0x52019d
mov ebp, dword [esp + 0xe0]
mov ebx, dword [esp + 0x78]
mov eax, ebx
jmp 0x5202b3
mov ebx, esi
test ebx, ebx
jle 0x5202ca
lea esi, [ebx - 1]
cmp eax, esi
jbe 0x520f6a
mov edi, dword [ebp + ebx*4 - 4]
test edi, edi
je 0x5202b1
mov edx, dword [esp + 0xc4]
cmp edx, ebx
jb 0x520f63
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 4], ecx
mov esi, dword [esp + 0x94]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
call fcn.0051c020
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x520f4b
mov edx, dword [esp + 0xc4]
mov ecx, dword [esp + 0x84]
cmp edx, ecx
jb 0x520f46
mov eax, dword [esp + 0xe0]
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 + 0xe4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x20], ebx
call fcn.00525570
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x5203c6
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
cmp ecx, edx
jb 0x520f3f
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 + 0xe0]
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.005255e0
mov eax, dword [esp + 0x104]
mov dword [esp], eax
mov ecx, dword [esp + 0x108]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x10c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0xdc]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0x18], ebx
call fcn.0051d020
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xcc]
mov ebx, dword [esp + 0x128]
mov ebp, dword [esp + 0xc8]
mov eax, edx
mov edx, ecx
mov esi, dword [esp + 0x130]
mov edi, dword [esp + 0x110]
mov ecx, ebp
cmp edx, ecx
jge 0x52065f
sub ecx, edx
cmp eax, ecx
jb 0x520fc7
mov dword [esp + 0xc8], ecx
mov eax, dword [esi + ebx*4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax]
mov dword [esp + 0xdc], 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.0051bbc0
mov edx, dword [esp + 0x118]
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 + 0x110]
add eax, edx
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0xb0]
lea ebp, [ecx + edx]
cmp esi, ebp
jb 0x520fbe
lea edi, [ecx - 1]
cmp edi, ebp
ja 0x520fb5
mov dword [esp + 0x80], 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 + 0x80]
cmp edx, ebp
jb 0x520fac
mov dword [esp + 0x78], ebx
mov dword [esp + 0xe0], eax
mov dword [esp + 0xbc], edi
mov dword [esp + 0xfc], esi
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x5c]
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 + 0x124]
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 + 0x11c]
add esi, edi
mov dword [esp + 0xf8], 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 + 0x128]
inc edx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x12c]
mov dword [esp + 0x28], edx
mov esi, dword [esp + 0x130]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x134]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x138]
mov dword [esp + 0x34], esi
call fcn.0051fe20
nop
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0xdc]
mov edx, eax
jmp 0x51ff9a
cmp ebx, 1
jne 0x52062c
lea eax, [0x5be500]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00444f30
mov esi, dword [esp + 0xc]
mov ebp, 1
mov ebx, 1
jmp 0x51ffe5
mov dword [esp + 0x40], ebx
lea eax, [0x5be500]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea ecx, [edi + edi*2 + 4]
mov dword [esp + 0x68], ecx
mov dword [esp + 8], ecx
call fcn.00444f30
mov esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x68]
mov ebx, dword [esp + 0x40]
jmp 0x51ffe5
mov eax, dword [esi + ebx*4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x64], ecx
mov edx, dword [eax]
mov dword [esp + 0xd0], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x74], eax
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0051bbc0
mov eax, dword [esp + 0xb0]
lea ecx, [eax - 1]
mov edx, dword [esp + 0xcc]
cmp edx, ecx
jb 0x520f36
mov dword [esp + 0x7c], ecx
mov ebx, dword [esp + 0x118]
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 + 0x110]
add ebx, ebp
sub edx, eax
lea ebp, [edx + 1]
mov edx, ebp
jmp 0x5206d6
mov ebp, esi
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x44], ebp
test ebp, ebp
jle 0x5206f1
lea esi, [ebp - 1]
cmp edx, esi
jbe 0x520f2d
mov ebp, dword [ebx + ebp*4 - 4]
test ebp, ebp
je 0x5206d0
mov ebp, dword [esp + 0x44]
cmp edi, ebp
jb 0x520f24
mov dword [esp + 0xc8], edx
mov esi, dword [esp + 0x120]
mov edx, dword [esp + 0x7c]
cmp esi, edx
jb 0x520f1b
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xd8], ebx
mov edx, dword [esp + 0xd0]
mov dword [esp], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
mov ebp, dword [esp + 0x124]
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 + 0x11c]
add ebp, ecx
mov dword [esp + 0xfc], ebp
mov dword [esp + 0x18], ebp
sub esi, eax
inc esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x128]
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x130]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x134]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x138]
mov dword [esp + 0x34], esi
call fcn.0051fe20
nop
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0xd0]
mov edx, eax
jmp 0x5207ea
mov eax, ebx
test eax, eax
jle 0x520801
lea ebx, [eax - 1]
cmp edx, ebx
jbe 0x520f12
mov ebp, dword [ecx + eax*4 - 4]
test ebp, ebp
je 0x5207e8
mov edx, dword [esp + 0x64]
cmp edx, eax
jb 0x520f0b
mov dword [esp + 0x70], eax
mov ebx, dword [esp + 0x12c]
mov ebp, dword [ebx + 8]
mov ebx, dword [ebx]
mov esi, dword [esp + 0x120]
lea edi, [esi + esi*2]
cmp ebp, edi
jl 0x520c5c
jb 0x520f02
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x90], edi
mov dword [esp + 0xe8], ebx
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
call fcn.0051bbc0
mov eax, dword [esp + 0xe8]
mov dword [esp], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x11c]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x124]
mov dword [esp + 0x20], esi
call fcn.0051d130
mov eax, dword [esp + 0x28]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x98], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0xec], edx
mov ebx, dword [esp + 0xcc]
mov ebp, dword [esp + 0x110]
xor esi, esi
jmp 0x520976
mov ebx, esi
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x4c], ebx
test ebx, ebx
jle 0x520912
lea esi, [ebx - 1]
cmp edi, esi
jbe 0x520ef9
mov ebx, dword [ebp + ebx*4 - 4]
test ebx, ebx
je 0x5208ee
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x118]
cmp ebx, esi
ja 0x520ef0
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
call fcn.0051c020
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x52098d
mov edi, dword [esp + 0xa8]
lea esi, [edi + 1]
mov ebx, dword [esp + 0xcc]
mov ebp, dword [esp + 0x110]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0xec]
cmp esi, 2
jge 0x520ac8
mov dword [esp + 0xa8], esi
mov edi, ebx
jmp 0x5208f7
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x64]
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.005255e0
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x98]
cmp ecx, edx
ja 0x520eeb
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 + 0x11c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov ebp, dword [esp + 0x124]
mov dword [esp + 0x20], ebp
call fcn.00525570
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x88]
cmp ecx, edx
jl 0x520a76
mov eax, dword [esp + 0xd8]
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 + 0xfc]
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.0051d020
jmp 0x520949
mov ecx, dword [esp + 0x98]
mov ebx, dword [esp + 0xb0]
sub ecx, ebx
inc ecx
mov esi, ecx
neg ecx
sar ecx, 0x1f
mov edi, dword [esp + 0xc0]
and ecx, edi
mov edi, dword [esp + 0xec]
add ecx, edi
mov dword [esp], ecx
sub edx, ebx
inc edx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
call fcn.005255e0
jmp 0x520a23
mov esi, ebx
jmp 0x520ace
mov ebx, edi
mov dword [esp + 0x54], ebx
test ebx, ebx
jle 0x520ae9
lea edi, [ebx - 1]
cmp esi, edi
jbe 0x520ee2
mov ebx, dword [ebp + ebx*4 - 4]
test ebx, ebx
je 0x520acc
mov ebx, dword [esp + 0x118]
mov edi, dword [esp + 0x54]
cmp ebx, edi
jb 0x520ed9
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
call fcn.0051c020
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x520ec1
mov edx, dword [esp + 0x118]
mov ecx, dword [esp + 0x88]
cmp edx, ecx
jb 0x520ebc
mov eax, dword [esp + 0x110]
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 + 0xec]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x20], ebx
call fcn.00525570
mov eax, dword [esp + 0x24]
test eax, eax
ja 0x520bfb
test eax, eax
ja 0x520e9d
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0xd0]
mov ecx, eax
jmp 0x520b98
mov eax, ebp
test eax, eax
jle 0x520baf
lea ebp, [eax - 1]
cmp ecx, ebp
jbe 0x520e96
mov esi, dword [ebx + eax*4 - 4]
test esi, esi
je 0x520b96
mov edx, dword [esp + 0x64]
cmp edx, eax
jb 0x520e8f
mov ecx, dword [esp + 0x104]
mov dword [esp], ecx
mov ecx, dword [esp + 0x108]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x10c]
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.0051d020
add esp, 0x100
ret
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0x88]
cmp ecx, edx
jb 0x520eb5
mov ebx, dword [esp + 0x118]
sub ebx, edx
mov ebp, ebx
neg ebx
mov esi, edx
shl edx, 2
sar ebx, 0x1f
and ebx, edx
mov edx, dword [esp + 0x110]
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.005255e0
mov eax, dword [esp + 0x1c]
jmp 0x520b7f
cmp edi, 1
jne 0x520c92
lea eax, [0x5be500]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00444f30
mov ebx, dword [esp + 0xc]
mov ebp, 1
mov edi, 1
jmp 0x520835
mov dword [esp + 0x50], edi
lea eax, [0x5be500]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esi + esi*2 + 4]
mov dword [esp + 0x58], eax
mov dword [esp + 8], eax
call fcn.00444f30
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x50]
jmp 0x520835
mov ebx, edi
mov edi, edx
mov ebp, eax
mov eax, dword [esp + 0xd4]
call fcn.0045df70
mov eax, ebp
mov edi, ebx
jmp 0x51ff85
test esi, esi
jne 0x520d3f
lea eax, [0x5be500]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00444f30
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x118]
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0x110]
mov dword [esp + 0xd4], ebx
mov ebp, 1
mov ebx, 1
jmp 0x51ff57
mov dword [esp + 0x3c], ebx
lea eax, [0x5be500]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea ecx, [esi + 5]
mov dword [esp + 0x60], ecx
mov dword [esp + 8], ecx
call fcn.00444f30
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x118]
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0x110]
mov dword [esp + 0xd4], ebx
mov ebp, dword [esp + 0x60]
mov ebx, dword [esp + 0x3c]
jmp 0x51ff57
mov dword [esp + 0xf4], ebp
mov eax, dword [esp + 0x120]
mov dword [esp], eax
call fcn.0051f110
mov eax, dword [0x770e60]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x520dec
mov edx, dword [esp + 0x128]
mov ebx, dword [esp + 0x130]
mov dword [ebx + edx*4], ecx
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xa4]
mov esi, ebx
mov edi, dword [esp + 0x110]
jmp 0x51ff85
mov edi, dword [esp + 0xf4]
mov eax, ecx
call fcn.0045df70
mov edx, dword [esp + 0x128]
mov ebx, dword [esp + 0x130]
jmp 0x520dd0
add esp, 0x100
ret
mov eax, dword [esp + 0x104]
mov dword [esp], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
call fcn.0051f6f0
add esp, 0x100
ret
mov eax, dword [esp + 0x104]
mov dword [esp], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 8], eax
call fcn.0051bbc0
add esp, 0x100
ret
mov edi, ebp
jmp 0x51febc
mov ecx, ebx
jmp 0x51fe72
mov ecx, eax
call fcn.0045e030
mov eax, ebp
call fcn.0045dff0
lea eax, [0x5beac0]
mov dword [esp], eax
lea eax, [0x637c60]
mov dword [esp + 4], eax
call fcn.00431a00
mov eax, edx
call fcn.0045e050
call fcn.0045e030
lea eax, [0x5beac0]
mov dword [esp], eax
lea eax, [0x637c60]
mov dword [esp + 4], eax
call fcn.00431a00
mov ecx, edi
mov edx, ebx
call fcn.0045e030
mov eax, edi
mov ecx, esi
call fcn.0045dff0
call fcn.0045e030
mov ecx, ebx
mov edx, esi
call fcn.0045e030
mov eax, esi
mov ecx, edi
call fcn.0045dff0
mov ecx, edi
mov edx, ebp
call fcn.0045e030
mov ecx, eax
call fcn.0045e030
mov eax, ebx
mov ecx, edx
call fcn.0045dff0
mov eax, edx
mov ecx, esi
call fcn.0045e050
mov ecx, ebp
mov edx, edi
call fcn.0045e030
mov eax, esi
mov ecx, edx
call fcn.0045dff0
mov eax, ecx
mov ecx, edx
call fcn.0045e050
mov eax, edx
call fcn.0045e050
call fcn.0045e030
lea eax, [0x5beac0]
mov dword [esp], eax
lea eax, [0x637c60]
mov dword [esp + 4], eax
call fcn.00431a00
mov ecx, ebx
call fcn.0045e030
mov ecx, eax
mov eax, esi
call fcn.0045dff0
mov eax, ecx
mov ecx, ebx
call fcn.0045e050
call fcn.0045e030
mov ecx, esi
mov edx, ebp
call fcn.0045e030
mov eax, esi
mov ecx, edi
call fcn.0045dff0
mov ecx, ebx
mov edx, ebp
call fcn.0045e030
mov ecx, eax
call fcn.0045e030
mov eax, ebx
mov ecx, edx
call fcn.0045dff0
mov eax, ebp
mov ecx, edx
call fcn.0045e050
mov eax, edi
mov ecx, ebp
call fcn.0045e050
mov ecx, ebp
mov edx, esi
call fcn.0045e030
mov edx, eax
mov eax, ecx
mov ecx, edx
call fcn.0045e050
mov ecx, ebx
mov edx, ebp
call fcn.0045e030
mov eax, esi
mov ecx, ebp
call fcn.0045dff0
mov ecx, ebx
mov edx, ebp
call fcn.0045e030
mov ecx, eax
mov eax, ebp
call fcn.0045dff0
call fcn.0045e030
mov ecx, eax
mov eax, esi
call fcn.0045dff0
nop
call fcn.0045ca10
jmp fcn.0051fe20