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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x408]
cmp eax, dword [ecx + 8]
jbe 0x521b2d
sub esp, 0x488
lea edi, [esp + 0x3ec]
xor eax, eax
call fcn.0045f70e
mov ecx, dword [esp + 0x48c]
mov dword [esp + 0x424], ecx
mov edx, dword [esp + 0x490]
mov dword [esp + 0x428], edx
lea edi, [esp + 0x114]
call fcn.0045f719
lea edi, [esp + 0x434]
call fcn.0045f70b
lea ecx, [esp + 0x434]
mov dword [esp + 0x120], ecx
call fcn.0044a0b0
mov ecx, dword [esp]
mov dword [esp + 0x11c], ecx
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
lea edi, [esp + 0x100]
xor eax, eax
call fcn.0045f71b
mov ecx, 1
lea edx, [esp + 0x3ec]
mov ebx, 1
xor ebp, ebp
lea esi, [esp + 0x3c]
xor edi, edi
jmp 0x5209d7
mov esi, eax
mov eax, dword [esp + 0xd8]
add eax, 0x48
mov ebp, ecx
mov ecx, eax
mov edi, edx
mov edx, ebx
mov ebx, esi
mov esi, edi
mov dword [esp + 0x98], edx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x94], ebp
mov dword [esp + 0xb0], esi
lea edi, [esp + 0x2cc]
mov esi, ecx
call fcn.0045fb7c
lea ecx, [0x71be80]
mov dword [esp], ecx
lea ecx, [esp + 0x114]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x304]
mov dword [esp + 8], ecx
call fcn.0040cb30
mov eax, dword [esp + 0xc]
movzx eax, byte [eax]
test al, al
je 0x520a2d
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0x98]
inc ebx
mov ebp, dword [esp + 0x50]
cmp ebp, ebx
jg 0x52091f
mov ebx, eax
mov ebp, dword [esp + 0x9c]
mov esi, dword [esp + 0xe0]
mov edi, dword [esp + 0xdc]
xor eax, eax
test ecx, ecx
jle 0x521493
mov dword [esp + 0x54], ebp
mov dword [esp + 0xb0], esi
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0xe0], edx
mov dword [esp + 0xac], edi
call fcn.0040c730
mov eax, dword [esp]
mov dword [esp + 0xdc], eax
mov ecx, dword [esp + 0xe0]
xor edx, edx
mov ebx, dword [esp + 0x54]
xor ebp, ebp
mov esi, dword [esp + 0xb0]
jmp 0x520937
lea eax, [0x71be80]
mov dword [esp], eax
lea ecx, [esp + 0x114]
mov dword [esp + 4], ecx
lea edx, [esp + 0x304]
mov dword [esp + 8], edx
call fcn.0040d0e0
mov eax, dword [esp + 0xc]
mov byte [eax], 1
xor eax, eax
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0xb0]
jmp 0x520a79
mov ebp, dword [esp + 0x74]
inc ebp
mov ebx, edx
mov edx, eax
mov eax, ebp
mov dword [esp + 0x74], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x94], ecx
mov dword [esp + 0xb0], ebx
mov ebp, dword [esp + 0x304]
mov esi, dword [esp + 0x308]
mov ebp, dword [ebp + 0x64]
mov dword [esp], esi
call ebp
mov eax, dword [esp + 0x74]
cmp dword [esp + 4], eax
jle 0x52147c
mov ecx, dword [esp + 0x304]
mov edx, dword [esp + 0x308]
mov ecx, dword [ecx + 0x2c]
mov dword [esp], edx
mov dword [esp + 4], eax
call ecx
lea edi, [esp + 0x130]
lea esi, [esp + 8]
call fcn.0045fbae
mov eax, dword [esp + 0x13c]
movzx ecx, byte [esp + 0x160]
test eax, eax
test cl, cl
jne 0x5213de
test eax, eax
je 0x520b11
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xb0]
jmp 0x520a6e
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x14c]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x767a3d]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
call fcn.004eb6e0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp ecx, 1
jne 0x520b66
cmp byte [eax], 0x2d
jne 0x520b66
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xb0]
jmp 0x520a6e
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00526450
mov eax, dword [esp + 8]
mov dword [esp + 0xb8], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xa8], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x5c], edx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x4c], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0051f940
movzx eax, byte [esp + 8]
test al, al
je 0x5213d5
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x58], eax
mov dword [esp + 0xbc], ecx
mov edx, dword [esp + 0x2fc]
lea ebx, [0x7181a0]
mov dword [esp], ebx
inc edx
mov dword [esp + 0x64], edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00445e20
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2f8]
mov edx, dword [esp + 0x2fc]
mov ebx, dword [esp + 0x64]
cmp ebx, edx
jle 0x5213ce
mov dword [esp + 0xd4], eax
cmp eax, ecx
je 0x520c25
mov dword [esp], eax
mov dword [esp + 4], ecx
shl edx, 2
mov dword [esp + 8], edx
call fcn.0045fe20
mov eax, dword [esp + 0x2fc]
mov ecx, dword [esp + 0x64]
cmp ecx, eax
jbe 0x521b27
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0xd4]
mov dword [edx + eax*4], ecx
mov eax, dword [esp + 0x140]
mov dword [esp + 0x78], eax
mov ebx, dword [esp + 0x144]
mov dword [esp + 0xc4], ebx
mov ebp, dword [eax + 0x60]
mov dword [esp], ebx
call ebp
mov eax, dword [esp + 8]
test eax, eax
je 0x521390
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x78], eax
mov dword [esp + 0xc4], ecx
mov edx, dword [esp + 0xa8]
mov dword [esp], edx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 4], ebx
lea ebp, [0x768174]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 6
call fcn.00526510
movzx eax, byte [esp + 0x10]
test al, al
jne 0x52135b
xor eax, eax
mov byte [esp + 0x3d], al
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x52131c
mov edx, 1
test dl, dl
je 0x52112a
test ecx, ecx
jne 0x52111c
mov edx, dword [esp + 0x130]
mov ebx, dword [esp + 0x134]
mov dword [esp + 0x90], ebx
mov dword [esp + 0xbc], edx
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
lea eax, [0x768fd7]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 9
call fcn.00526510
movzx eax, byte [esp + 0x10]
mov byte [esp + 0x3f], al
lea edi, [esp + 0x23c]
xor eax, eax
call fcn.0045f70e
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x23c], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x240], ecx
mov ecx, dword [esp + 0x58]
test ecx, ecx
setne cl
mov byte [esp + 0x264], cl
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x268], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x26c], ecx
mov dword [esp + 0x270], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x274], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x278], ecx
movzx ecx, byte [esp + 0x3f]
mov byte [esp + 0x27c], cl
movzx ecx, byte [esp + 0x3d]
mov byte [esp + 0x27d], cl
mov ecx, dword [esp + 0x23c]
mov edx, dword [esp + 0x240]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00449500
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x244], eax
mov dword [esp + 0x248], ecx
mov dword [esp + 0x24c], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00521d20
mov eax, dword [esp + 0xc]
mov dword [esp + 0x250], eax
nop
mov dword [esp + 0x104], 0
mov dword [esp + 0x10c], 0
mov byte [esp + 0x110], 0
lea eax, [esp + 0x100]
mov dword [esp], eax
lea ecx, [0x7674ae]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
call fcn.004cfa50
mov eax, dword [esp + 0x244]
mov ecx, dword [esp + 0x248]
mov edx, dword [esp + 0x24c]
lea ebx, [esp + 0x100]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.0051b2c0
lea eax, [esp + 0x100]
mov dword [esp], eax
lea ecx, [0x767561]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
call fcn.004cfa50
mov ecx, dword [esp + 0x104]
mov eax, dword [esp + 0x100]
mov edx, dword [esp + 0x108]
mov ebx, dword [esp + 0x10c]
cmp ecx, ebx
jb 0x521b20
mov dword [esp], 0
sub edx, ebx
neg edx
sar edx, 0x1f
and edx, ebx
add eax, edx
mov dword [esp + 4], eax
sub ecx, ebx
mov dword [esp + 8], ecx
call fcn.004493b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x25c], eax
mov dword [esp + 0x260], ecx
mov eax, dword [esp + 0x23c]
mov ecx, dword [esp + 0x240]
mov dword [esp], 0
lea edx, [0x7674ae]
mov dword [esp + 4], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea eax, [0x767561]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 2
call fcn.00449290
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x254], eax
mov dword [esp + 0x258], ecx
mov eax, dword [esp + 0xf8]
lea ecx, [eax + 1]
mov edx, dword [esp + 0xf4]
mov ebx, dword [esp + 0xfc]
cmp ebx, ecx
jb 0x5210df
lea ecx, [eax + 1]
mov dword [esp + 0xf8], ecx
mov ecx, dword [0x9f0ee0]
lea eax, [eax + eax*8]
lea edi, [edx + eax*8]
test ecx, ecx
jne 0x5210bd
lea esi, [esp + 0x23c]
call fcn.0045fb7c
lea eax, [0x71bec0]
mov dword [esp], eax
mov ecx, dword [esp + 0xac]
mov dword [esp + 4], ecx
lea edx, [esp + 0x304]
mov dword [esp + 8], edx
call fcn.0040cb30
mov eax, dword [esp + 0xc]
cmp dword [eax], 1
jle 0x52104a
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xf4]
lea eax, [ecx - 1]
cmp ecx, eax
jbe 0x521b1b
lea eax, [ecx + ecx*8]
lea esi, [edx + eax*8 - 0x48]
lea edi, [esp + 0x3a4]
call fcn.0045fb7c
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0xfc]
lea ebx, [eax + 1]
cmp ebx, edx
ja 0x521080
lea edx, [eax + 1]
mov dword [esp + 0xf8], edx
mov edx, dword [0x9f0ee0]
lea eax, [eax + eax*8]
lea edi, [ecx + eax*8]
test edx, edx
jne 0x521061
lea esi, [esp + 0x3a4]
call fcn.0045fb7c
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xb0]
jmp 0x520a6e
lea eax, [0x751b40]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x3a4]
mov dword [esp + 8], eax
call fcn.00411160
jmp 0x52104a
lea ebp, [0x751b40]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.00445ed0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xfc], edx
mov dword [esp + 0xf4], ecx
jmp 0x521024
lea eax, [0x751b40]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x23c]
mov dword [esp + 8], eax
call fcn.00411160
jmp 0x520faf
lea ebp, [0x751b40]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
call fcn.00445ed0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0xf4], edx
jmp 0x520f85
mov ebx, ecx
mov edx, dword [esp + 0xbc]
jmp 0x520cf4
mov eax, dword [esp + 0x78]
mov dword [esp + 0xec], eax
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0xf0], ecx
lea edx, [0x71bec0]
mov dword [esp], edx
mov ebx, dword [esp + 0xdc]
mov dword [esp + 4], ebx
lea ebp, [esp + 0xec]
mov dword [esp + 8], ebp
call fcn.0040d0e0
mov eax, dword [esp + 0xc]
inc dword [eax]
mov eax, dword [esp + 0x78]
mov dword [esp + 0xec], eax
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0xf0], ecx
lea edx, [0x71bec0]
mov dword [esp], edx
mov ebx, dword [esp + 0xdc]
mov dword [esp + 4], ebx
lea ebp, [esp + 0xec]
mov dword [esp + 8], ebp
call fcn.0040cb30
mov eax, dword [esp + 0xc]
cmp dword [eax], 1
je 0x5211d0
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xb0]
mov ebx, eax
mov eax, ecx
mov ecx, ebx
jmp 0x520a6e
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x60]
mov edx, dword [esp + 0xc4]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x90], ecx
lea edi, [esp + 0x35c]
mov edx, eax
xor eax, eax
call fcn.0045f70e
mov dword [esp + 0x35c], edx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x360], ecx
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x388], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x38c], ecx
mov dword [esp + 0x390], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x394], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x398], ecx
mov ecx, dword [esp + 0x94]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x54]
cmp ebx, edx
jb 0x5212da
mov ebp, dword [esp + 0xb0]
mov eax, dword [0x9f0ee0]
lea ecx, [ecx + ecx*8]
lea edi, [ebp + ecx*8]
test eax, eax
jne 0x521291
lea esi, [esp + 0x35c]
call fcn.0045fb7c
mov eax, edx
mov ecx, ebx
mov edx, ebp
jmp 0x5211c5
mov dword [esp + 0xd0], ebp
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], ebx
lea eax, [0x751b40]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x35c]
mov dword [esp + 8], eax
call fcn.00411160
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0xd0]
jmp 0x521286
lea eax, [0x751b40]
mov dword [esp], eax
mov ebp, dword [esp + 0xb0]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.00445ed0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [eax + 1]
xor eax, eax
mov ecx, dword [esp + 0x94]
jmp 0x521269
movzx edx, byte [esp + 0x160]
test dl, dl
jne 0x521332
mov edx, 1
jmp 0x520cd6
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x50]
mov edx, dword [esp + 0xc4]
mov dword [esp], edx
call ecx
cmp dword [esp + 4], 0x19
setne dl
movzx eax, byte [esp + 0x3d]
mov ecx, dword [esp + 0x58]
jmp 0x520cd6
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x50]
mov edx, dword [esp + 0xc4]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
lea ecx, [eax - 1]
cmp ecx, 0xd
ja 0x521384
mov eax, 1
jmp 0x520cc1
cmp eax, 0x18
je 0x52137a
xor eax, eax
jmp 0x520cc1
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x50]
mov edx, dword [esp + 0xc4]
mov dword [esp], edx
call ecx
cmp dword [esp + 4], 0x16
jne 0x520c73
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x28]
mov ecx, dword [esp + 0xc4]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
jmp 0x520c7e
mov edx, ebx
jmp 0x520c07
xor eax, eax
xor ecx, ecx
jmp 0x520bbc
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x140]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x144]
mov dword [esp + 0xa0], ecx
mov edx, dword [eax + 0x50]
mov dword [esp], ecx
call edx
cmp dword [esp + 4], 0x16
je 0x521456
mov edx, dword [esp + 0x90]
test edx, edx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xa0]
jne 0x521444
xor eax, eax
test al, al
je 0x520b11
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xb0]
jmp 0x520a6e
mov eax, dword [eax + 0x50]
mov dword [esp], ecx
call eax
cmp dword [esp + 4], 0x19
setne al
jmp 0x521425
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x28]
mov ecx, dword [esp + 0xa0]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x90]
test edx, edx
jmp 0x521421
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xb0]
jmp 0x5209aa
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xfc]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00409530
mov eax, dword [esp + 0xc]
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
lea ecx, [0x5267d0]
mov dword [esp + 0xe4], ecx
lea ecx, [esp + 0xf4]
mov dword [esp + 0xe8], ecx
lea ecx, [0x707fc0]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0xe4]
mov dword [esp + 8], eax
call fcn.004910e0
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xfc]
xor edx, edx
xor ebx, ebx
jmp 0x521635
mov eax, dword [esp + 0x7c]
lea esi, [eax + 1]
mov ecx, dword [esp + 0xc0]
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0xa4]
mov ebp, dword [esp + 0x98]
mov dword [esp + 0x7c], esi
lea ebp, [esi + edx]
mov dword [esp + 0x94], ebp
mov ebx, dword [esp + 0xf8]
mov dword [esp + 0x90], ebx
mov ebx, dword [esp + 0xf4]
mov dword [esp + 0xe0], ebx
mov ebx, dword [esp + 0x90]
cmp ebx, ebp
jle 0x5215d7
jbe 0x521b09
lea ebx, [ebp + ebp*8]
mov ebp, dword [esp + 0xe0]
lea ebx, [ebp + ebx*8]
lea edi, [esp + 0x1ac]
mov esi, ebx
call fcn.0045fb7c
mov ecx, dword [esp + 0x1b0]
mov ebx, dword [esp + 0x1ac]
mov ebp, dword [esp + 0x60]
cmp ebp, ecx
jne 0x5215d7
mov dword [esp], ebx
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00402b30
movzx eax, byte [esp + 0xc]
test al, al
jne 0x521521
mov ebx, dword [esp + 0x7c]
cmp ebx, 1
jne 0x521733
mov ecx, dword [esp + 0x9c]
lea ebx, [ecx + 1]
mov ebp, dword [esp + 0x48]
cmp ebx, ebp
ja 0x5216f3
mov eax, dword [esp + 0xa4]
mov edx, ebx
mov ebx, dword [0x9f0ee0]
lea ecx, [ecx + ecx*8]
lea edi, [eax + ecx*8]
test ebx, ebx
jne 0x5216a7
lea esi, [esp + 0x284]
call fcn.0045fb7c
mov ecx, dword [esp + 0x94]
mov ebx, edx
mov ecx, ebp
mov edx, dword [esp + 0x94]
mov ebp, dword [esp + 0xf8]
mov esi, ebx
mov ebx, dword [esp + 0xf4]
cmp edx, ebp
jge 0x5218d2
jae 0x521b12
mov dword [esp + 0x70], edx
mov dword [esp + 0xa4], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x9c], esi
lea ebp, [edx + edx*8]
mov dword [esp + 0x98], ebp
lea ebx, [ebx + ebp*8]
lea edi, [esp + 0x284]
mov esi, ebx
call fcn.0045fb7c
mov ecx, dword [esp + 0x284]
mov dword [esp + 0xc0], ecx
mov ebx, dword [esp + 0x288]
mov dword [esp + 0x60], ebx
mov esi, 1
jmp 0x521545
mov dword [esp + 0xcc], eax
mov dword [esp + 0x9c], edx
mov dword [esp + 0x84], ebp
lea eax, [0x751b40]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x284]
mov dword [esp + 8], eax
call fcn.00411160
mov eax, dword [esp + 0xcc]
mov edx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x84]
jmp 0x521623
lea eax, [0x751b40]
mov dword [esp], eax
mov edx, dword [esp + 0xa4]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.00445ed0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea ebx, [ecx + 1]
mov ecx, dword [esp + 0x9c]
jmp 0x521601
mov edx, dword [esp + 0xfc]
mov ebp, dword [esp + 0xf4]
mov ecx, dword [esp + 0x94]
cmp ecx, edx
ja 0x521b04
mov eax, dword [esp + 0x70]
cmp eax, ecx
ja 0x521aff
lea edi, [esp + 0x164]
mov esi, eax
xor eax, eax
call fcn.0045f70e
mov ecx, dword [esp + 0x98]
shl ecx, 3
sub edx, esi
neg edx
sar edx, 0x1f
and ecx, edx
lea esi, [ebp + ecx]
cmp ebx, 1
jle 0x5218ce
mov edx, ebx
mov ebx, dword [ebp + ecx + 0x78]
cmp dword [esi + 0x30], ebx
jne 0x5218b0
lea ebx, [ebp + ecx + 0x28]
movzx ebp, byte [ebp + ecx + 0x70]
xchg ebp, eax
cmp byte [ebx], al
xchg ebp, eax
jne 0x5218b0
xor ecx, ecx
mov byte [esp + 0x3e], cl
lea edi, [esp + 0x314]
lea esi, [esp + 0x164]
call fcn.0045fb7c
movzx ecx, byte [esp + 0x3e]
test cl, cl
je 0x521899
mov ecx, dword [esp + 0x9c]
lea ebx, [ecx + 1]
mov ebp, dword [esp + 0x48]
cmp ebx, ebp
ja 0x521857
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x44], ebx
mov ebx, dword [0x9f0ee0]
lea ecx, [ecx + ecx*8]
lea edi, [edx + ecx*8]
test ebx, ebx
jne 0x52181a
lea esi, [esp + 0x314]
call fcn.0045fb7c
mov ecx, dword [esp + 0x44]
mov eax, edx
mov edx, ecx
jmp 0x521623
mov dword [esp + 0xc8], edx
mov dword [esp + 0x80], ebp
lea eax, [0x751b40]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x314]
mov dword [esp + 8], eax
call fcn.00411160
xor eax, eax
mov edx, dword [esp + 0xc8]
mov ebp, dword [esp + 0x80]
jmp 0x52180d
lea eax, [0x751b40]
mov dword [esp], eax
mov edx, dword [esp + 0xa4]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.00445ed0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea ebx, [eax + 1]
xor eax, eax
mov ecx, dword [esp + 0x9c]
jmp 0x5217ed
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa4]
jmp 0x521811
test edx, edx
jbe 0x521af6
lea edi, [esp + 0x164]
call fcn.0045fb7c
mov ecx, 1
jmp 0x5217b0
mov edx, ebx
jmp 0x5218b0
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], esi
mov dword [esp + 0xfc], ecx
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
call fcn.00409530
mov eax, dword [esp + 0xc]
lea ecx, [0x7ef038]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00491c90
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x48c]
mov edx, dword [esp + 0x490]
xor ebx, ebx
jmp 0x521949
mov ebp, dword [esp + 0x6c]
lea ebx, [ebp + 1]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x48c]
mov edx, dword [esp + 0x490]
cmp ebx, eax
jge 0x5219f9
mov ebp, dword [esp + 0xf4]
mov esi, dword [esp + 0xf8]
cmp esi, ebx
jbe 0x521aed
mov dword [esp + 0xe0], ebp
mov dword [esp + 0x6c], ebx
lea eax, [ebx + ebx*8]
mov dword [esp + 0x98], eax
lea esi, [ebp + eax*8]
lea edi, [ebp + eax*8 + 0x2c]
mov edi, dword [edi]
mov ebx, dword [esi + 0x30]
mov esi, dword [esi + 0x34]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
call fcn.0051fa80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0051bd80
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0xe0]
lea edi, [ecx + eax*8 + 0x44]
mov eax, dword [0x9f0ee0]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x5219ed
mov dword [edi], ecx
jmp 0x52192d
mov eax, ecx
call fcn.0045f470
jmp 0x52192d
mov eax, dword [esp + 0xf8]
lea ecx, [0x71c380]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0
call fcn.0040c7b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xf4]
test ecx, ecx
jle 0x521aae
mov dword [esp + 0x9c], ecx
xor ebx, ebx
jmp 0x521a55
mov ebp, dword [esp + 0xe0]
lea edx, [ebp + 0x48]
mov ebx, eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x68], ebx
mov dword [esp + 0xe0], edx
lea edi, [esp + 0x1f4]
mov esi, edx
call fcn.0045fb7c
mov ecx, dword [esp + 0x1f4]
mov ebp, dword [esp + 0x1f8]
lea edx, [0x71c380]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
call fcn.00410670
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x68]
mov dword [eax], ecx
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x9c]
cmp eax, ecx
jl 0x521a42
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xfc]
mov dword [esp + 0x494], eax
mov dword [esp + 0x498], ecx
mov dword [esp + 0x49c], edx
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x4a0], eax
add esp, 0x488
ret
mov eax, ebx
mov ecx, esi
call fcn.0045f4f0
xor eax, eax
mov ecx, edx
call fcn.0045f4f0
call fcn.0045f550
call fcn.0045f530
mov eax, ebp
mov ecx, ebx
call fcn.0045f4f0
mov eax, edx
mov ecx, ebp
call fcn.0045f4f0
call fcn.0045f4f0
mov eax, ebx
call fcn.0045f550
call fcn.0045f4f0
nop
call fcn.0045df10
jmp fcn.00520850