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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x104]
cmp eax, dword [ecx + 8]
jbe 0x521e74
sub esp, 0x184
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov ecx, dword [esp + 0x18c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x190]
mov dword [esp + 8], edx
call fcn.0047ed00
mov eax, dword [esp + 0xc]
mov dword [esp + 0x88], eax
mov ecx, dword [0x7ef73c]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x84], edx
cmp dword [0x7ef738], eax
jne 0x520af7
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00403610
movzx eax, byte [esp + 0xc]
test al, al
jne 0x521473
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov ecx, dword [0x7ef75c]
cmp dword [0x7ef758], eax
jne 0x520b30
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00403610
movzx eax, byte [esp + 0xc]
test al, al
jne 0x521343
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov ecx, dword [0x7ef72c]
cmp dword [0x7ef728], eax
jne 0x520b69
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00403610
movzx eax, byte [esp + 0xc]
test al, al
jne 0x521290
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov ecx, dword [0x7ef744]
cmp dword [0x7ef740], eax
jne 0x520ba2
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00403610
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5211b2
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov ecx, dword [0x7ef724]
cmp dword [0x7ef720], eax
jne 0x520bcd
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00403610
movzx eax, byte [esp + 0xc]
test al, al
jne 0x521137
nop
mov eax, dword [esp + 0x190]
mov ecx, eax
and eax, 0x1f
cmp eax, 6
jbe 0x520f83
cmp eax, 0x17
je 0x520d77
cmp eax, 0x18
jne 0x520d39
mov eax, dword [esp + 0x1a0]
cmp eax, 0x12
je 0x520d0c
cmp eax, 0x13
je 0x520ca7
cmp eax, 0x16
jne 0x520c40
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0047ec10
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
xor edx, edx
jmp 0x521ddc
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0047ec10
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00408eb0
mov eax, dword [esp + 8]
lea ecx, [0x6a3084]
mov dword [esp + 0x1ac], ecx
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x184
ret
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0047ec10
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0051fb90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b0], edx
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], ebx
add esp, 0x184
ret
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0047ec10
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
xor edx, edx
jmp 0x521d39
cmp eax, 0x19
jne 0x52103e
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov edx, dword [esp + 0x18c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0047ed00
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
xor edx, edx
jmp 0x5216cb
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov edx, dword [esp + 0x18c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0047ed00
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x28]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, dword [eax + 0x50]
mov dword [esp], ecx
call eax
cmp dword [esp + 4], 8
je 0x520f0d
lea edi, [esp + 0xec]
xor eax, eax
call fcn.0045e87a
mov ecx, dword [esp + 0x188]
mov dword [esp], ecx
mov edx, dword [esp + 0x18c]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x190]
mov dword [esp + 8], ebx
call fcn.0047d880
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x520ebc
cmp ecx, 1
je 0x520e30
mov dword [esp + 0x4c], ecx
lea eax, [0x616140]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00447550
mov eax, dword [esp + 0xc]
mov dword [esp + 0x84], eax
xor ecx, ecx
jmp 0x521521
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x190]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call fcn.0047d540
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
lea edi, [esp + 0xc]
lea esi, [esp + 0xec]
call fcn.0045ed54
call fcn.00521e80
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b0], edx
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], ebx
add esp, 0x184
ret
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a300c]
mov dword [esp + 0x1ac], ecx
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x184
ret
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x190]
mov dword [esp + 8], eax
call fcn.0047c5f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a300c]
mov dword [esp + 0x1ac], ecx
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x184
ret
cmp eax, 1
je 0x5210a2
cmp eax, 2
jb 0x52103e
cmp eax, 3
ja 0x520fc0
cmp eax, 2
jne 0x520faf
mov eax, dword [esp + 0x18c]
mov eax, dword [eax]
mov ecx, eax
sar eax, 0x1f
jmp 0x520ffd
mov ecx, dword [esp + 0x18c]
movsx eax, byte [ecx]
mov ecx, eax
sar eax, 0x1f
jmp 0x520ffd
cmp eax, 4
jne 0x520fd6
mov ecx, dword [esp + 0x18c]
movsx eax, word [ecx]
mov ecx, eax
sar eax, 0x1f
jmp 0x520ffd
cmp eax, 5
jne 0x520feb
mov ecx, dword [esp + 0x18c]
mov eax, dword [ecx]
mov ecx, eax
sar eax, 0x1f
jmp 0x520ffd
mov ecx, dword [esp + 0x18c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, eax
mov eax, ecx
mov ecx, edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00408e00
mov eax, dword [esp + 8]
lea ecx, [0x6a3024]
mov dword [esp + 0x1ac], ecx
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x184
ret
lea eax, [0x63fa9f]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], 0xf
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call fcn.00408eb0
mov eax, dword [esp + 8]
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1b0], 0
lea ecx, [0x69f94c]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
add esp, 0x184
ret
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0047c540
movzx eax, byte [esp + 0xc]
test al, al
je 0x521100
mov eax, dword [0x7e9cd8]
mov ecx, dword [0x7e9cdc]
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b0], ecx
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x184
ret
mov eax, dword [0x7e9cd0]
mov ecx, dword [0x7e9cd4]
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b0], ecx
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x184
ret
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x190]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 1
call fcn.0047d6f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [0x63b4a0]
cmp ecx, edx
jne 0x521506
mov dword [esp], eax
call fcn.0051ebd0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b0], edx
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], ebx
add esp, 0x184
ret
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x190]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 1
call fcn.0047d6f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [0x619300]
cmp ecx, edx
jne 0x5214f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
cmp edx, 2
jl 0x52120e
mov ebx, dword [ecx]
cmp ebx, 2
jg 0x52120e
jge 0x52124d
cmp dword [ecx + 4], 0x28
jl 0x52124d
lea eax, [0x64434a]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], 0x19
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], 0x19
call fcn.00408eb0
mov eax, dword [esp + 8]
lea ecx, [0x69f94c]
xor edx, edx
xor ebx, ebx
jmp 0x52126d
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00408f30
mov eax, dword [esp + 0xc]
xor ecx, ecx
lea edx, [0x6a3054]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x1ac], edx
mov dword [esp + 0x1b0], ebx
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
add esp, 0x184
ret
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x190]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 1
call fcn.0047d6f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [0x6262a0]
cmp ecx, edx
jne 0x5214da
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], eax
lea eax, [0x6a2fdc]
mov dword [esp], eax
lea eax, [esp + 0xb4]
mov dword [esp + 4], eax
call fcn.00409020
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b0], ecx
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x184
ret
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x190]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 1
call fcn.0047d6f0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x80], eax
mov esi, dword [esp + 0x14]
lea edi, [esp + 0xd8]
xor eax, eax
call fcn.0045e87b
mov eax, dword [esp + 0x80]
lea ecx, [0x639de0]
cmp eax, ecx
jne 0x5214c4
lea edi, [esp + 0xd8]
call fcn.0045ed5e
lea edi, [esp + 0xc4]
lea esi, [esp + 0xd8]
call fcn.0045ed5e
cmp dword [esp + 0x1a4], 0x18
je 0x5213e5
lea edi, [esp]
lea esi, [esp + 0xc4]
call fcn.0045ed5e
call fcn.0051fda0
movzx eax, byte [esp + 0x14]
test al, al
je 0x52142c
lea edi, [esp]
lea esi, [esp + 0xc4]
call fcn.0045ed5e
call fcn.0051fee0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b0], edx
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], ebx
add esp, 0x184
ret
lea edi, [esp]
lea esi, [esp + 0xc4]
call fcn.0045ed5e
call fcn.0051fe00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b0], edx
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], ebx
add esp, 0x184
ret
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a300c]
mov dword [esp + 0x1ac], ecx
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x184
ret
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x60d140]
mov dword [esp + 8], eax
call fcn.00408b60
mov dword [esp], ecx
mov dword [esp + 4], edx
lea eax, [0x60d140]
mov dword [esp + 8], eax
call fcn.00408b60
mov dword [esp], ecx
mov dword [esp + 4], edx
lea eax, [0x60d140]
mov dword [esp + 8], eax
call fcn.00408b60
mov dword [esp], ecx
mov dword [esp + 4], edx
lea eax, [0x60d140]
mov dword [esp + 8], eax
call fcn.00408b60
lea ecx, [esi + 1]
mov eax, ebp
mov edx, dword [esp + 0x4c]
cmp ecx, edx
jge 0x52161d
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov edx, dword [esp + 0x18c]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x190]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
call fcn.0047d540
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
lea edi, [esp + 0xc]
lea esi, [esp + 0xec]
call fcn.0045ed54
call fcn.00521e80
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x4c]
cmp esi, edi
jae 0x5216b3
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebp
mov ebp, dword [esp + 0x84]
lea ebx, [ebp + esi*8]
mov dword [ebx], ecx
mov ecx, dword [0x816df0]
lea ebx, [ebp + esi*8 + 4]
test ecx, ecx
jne 0x5215d4
mov dword [ebx], eax
jmp 0x5215df
mov ecx, edi
mov edi, ebx
call fcn.0045e5d0
mov edi, ecx
test edx, edx
je 0x52151c
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1b0], 0
mov eax, dword [esp + 0x80]
mov dword [esp + 0x1b4], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x1b8], eax
add esp, 0x184
ret
movzx ecx, byte [esp + 0x1a8]
test cl, cl
je 0x52166e
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a306c]
mov dword [esp + 0x1ac], ecx
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x184
ret
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a303c]
mov dword [esp + 0x1ac], ecx
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x184
ret
mov eax, esi
mov ecx, edi
call fcn.0045e650
mov ebx, dword [esp + 0x50]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x50], edx
mov ebx, dword [eax + 0x64]
mov dword [esp], ecx
call ebx
mov eax, dword [esp + 0x50]
cmp dword [esp + 4], eax
jle 0x52178b
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x2c]
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call edx
lea edi, [esp + 0x150]
lea esi, [esp + 8]
call fcn.0045ed0e
lea edi, [esp + 0x11c]
lea esi, [esp + 0x150]
call fcn.0045ed0e
mov eax, dword [esp + 0x128]
test eax, eax
je 0x5216bc
lea eax, [0x647ffc]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], 0x21
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.00408eb0
mov eax, dword [esp + 8]
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1b0], 0
lea ecx, [0x69f94c]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
add esp, 0x184
ret
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x64]
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
test eax, eax
je 0x521af8
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x2c]
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
mov dword [esp + 4], 0
call ecx
lea edi, [esp + 0x150]
lea esi, [esp + 8]
call fcn.0045ed0e
mov eax, dword [esp + 0x160]
mov ecx, dword [esp + 0x164]
mov edx, dword [0x7ef74c]
cmp dword [0x7ef748], eax
jne 0x521808
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00403610
movzx eax, byte [esp + 0xc]
test al, al
jne 0x52180c
xor eax, eax
jmp 0x521875
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov ecx, dword [esp + 0x18c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x190]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
call fcn.0047d450
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x84], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x68], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0047d880
mov eax, dword [esp + 0xc]
test eax, eax
jg 0x521a27
mov eax, 1
mov ecx, dword [esp + 0x48]
sub ecx, eax
test ecx, ecx
je 0x5219d6
mov dword [esp + 0x40], eax
cmp ecx, 1
je 0x5218b8
mov dword [esp + 0x44], ecx
lea eax, [0x616140]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00447550
mov eax, dword [esp + 0xc]
mov dword [esp + 0x84], eax
xor ecx, ecx
jmp 0x521b53
mov ecx, dword [esp + 0x188]
mov dword [esp], ecx
mov ecx, dword [esp + 0x18c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x190]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0047d450
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x84], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x68], edx
mov ebx, dword [esp + 0x3c]
mov ebx, dword [ebx + 0x2c]
mov ebp, dword [esp + 0x6c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 4], ebp
call ebx
lea edi, [esp + 0x150]
lea esi, [esp + 8]
call fcn.0045ed0e
mov eax, dword [esp + 0x168]
mov ecx, dword [esp + 0x16c]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x63c707]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
call fcn.00479bd0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0051da20
lea edi, [esp + 0x104]
lea esi, [esp + 8]
call fcn.0045ed54
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
lea edi, [esp + 0xc]
lea esi, [esp + 0x104]
call fcn.0045ed54
call fcn.00521e80
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b0], edx
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], ebx
add esp, 0x184
ret
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a300c]
mov dword [esp + 0x1ac], ecx
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x184
ret
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
call fcn.0047c5f0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x60], edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
call fcn.0051a210
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x521a90
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x70]
jmp 0x521ab3
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
ja 0x521b49
mov edx, dword [esp + 0x60]
sub edx, eax
sub ecx, eax
mov ebx, edx
neg edx
sar edx, 0x1f
and eax, edx
mov ebp, dword [esp + 0x70]
add ebp, eax
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a300c]
mov dword [esp + 0x1ac], ecx
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x184
ret
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a300c]
mov dword [esp + 0x1ac], ecx
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x184
ret
call fcn.0045e6b0
lea ecx, [esi + 1]
mov eax, ebp
mov edx, dword [esp + 0x44]
cmp ecx, edx
jge 0x521cea
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x188]
mov dword [esp], eax
mov edx, dword [esp + 0x18c]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x190]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x40]
lea esi, [ecx + ebp]
mov dword [esp + 0x64], esi
mov dword [esp + 0xc], esi
call fcn.0047d450
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x68], edx
mov ebx, dword [esp + 0x3c]
mov ebp, dword [ebx + 0x2c]
mov esi, dword [esp + 0x6c]
mov dword [esp], esi
mov edi, dword [esp + 0x64]
mov dword [esp + 4], edi
call ebp
lea edi, [esp + 0x150]
lea esi, [esp + 8]
call fcn.0045ed0e
mov eax, dword [esp + 0x168]
mov ecx, dword [esp + 0x16c]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x63c707]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
call fcn.00479bd0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0051da20
lea edi, [esp + 0x104]
lea esi, [esp + 8]
call fcn.0045ed54
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
lea edi, [esp + 0xc]
lea esi, [esp + 0x104]
call fcn.0045ed54
call fcn.00521e80
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x44]
cmp esi, edi
jae 0x521d2f
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebp
mov ebp, dword [esp + 0x84]
lea ebx, [ebp + esi*8]
mov dword [ebx], ecx
mov ecx, dword [0x816df0]
lea ebx, [ebp + esi*8 + 4]
test ecx, ecx
jne 0x521ca1
mov dword [ebx], eax
jmp 0x521cac
mov ecx, edi
mov edi, ebx
call fcn.0045e5d0
mov edi, ecx
test edx, edx
je 0x521b4e
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1b0], 0
mov eax, dword [esp + 0x80]
mov dword [esp + 0x1b4], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x1b8], eax
add esp, 0x184
ret
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a303c]
mov dword [esp + 0x1ac], ecx
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x184
ret
mov eax, esi
mov ecx, edi
call fcn.0045e650
inc edx
cmp edx, ecx
jge 0x521d95
jae 0x521dd4
movzx ebx, byte [eax + edx]
lea ebp, [ebx - 0x30]
xchg ebp, eax
cmp al, 9
xchg ebp, eax
jbe 0x521d38
cmp bl, 0x20
je 0x521d38
lea eax, [0x64a626]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], 0x28
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov dword [esp + 4], 0x28
call fcn.00408eb0
mov eax, dword [esp + 8]
lea ecx, [0x69f94c]
xor edx, edx
xor ebx, ebx
jmp 0x521db1
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00408eb0
mov eax, dword [esp + 8]
xor ecx, ecx
lea edx, [0x6a3084]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x1ac], edx
mov dword [esp + 0x1b0], ebx
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
add esp, 0x184
ret
mov eax, edx
call fcn.0045e650
inc edx
cmp edx, ecx
jge 0x521e2d
jae 0x521e6c
lea ebx, [edx + eax]
cmp byte [ebx], 0x7f
jbe 0x521ddb
lea eax, [0x648f6e]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], 0x24
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 4], 0x24
call fcn.00408eb0
mov eax, dword [esp + 8]
lea ecx, [0x69f94c]
xor edx, edx
xor ebx, ebx
jmp 0x521e49
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00408eb0
mov eax, dword [esp + 8]
xor ecx, ecx
lea edx, [0x6a3084]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x1ac], edx
mov dword [esp + 0x1b0], ebx
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
add esp, 0x184
ret
mov eax, edx
call fcn.0045e650
nop
call fcn.0045d190
jmp fcn.00520a60