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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x150]
cmp eax, dword [ecx + 8]
jbe 0x5180ab
sub esp, 0x1d0
lea eax, [0x641a20]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov dword [esp + 0xdc], eax
lea ecx, [0x641a20]
mov dword [esp], ecx
call fcn.0040b470
mov eax, dword [esp + 4]
mov dword [esp + 0xd8], eax
lea ecx, [0x641a20]
mov dword [esp], ecx
call fcn.0040b470
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x1e0]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x516c89
xor edx, edx
jmp 0x516c9c
movzx edx, byte [ecx]
test dl, dl
je 0x516c97
mov edx, 0xffffffff
jmp 0x516c9c
mov edx, 1
mov dword [esp + 0xac], eax
test edx, edx
jne 0x5170e7
nop
mov ecx, dword [esp + 0x1e4]
mov edx, dword [esp + 0xdc]
cmp ecx, edx
je 0x516e08
mov ebx, dword [edx + 0xc]
mov ebp, dword [edx + 4]
mov esi, dword [ecx + 8]
mov dword [esp + 0xa8], esi
mov edi, ecx
mov ecx, dword [ecx + 4]
cmp esi, ebx
jle 0x516d7d
mov dword [esp + 0xfc], ecx
cmp esi, 1
jne 0x516d35
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004483e0
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0xdc]
mov edi, dword [esp + 0x1e4]
mov esi, 1
mov ebx, 1
jmp 0x516d7d
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], esi
lea ecx, [esi + 4]
mov dword [esp + 0x44], ecx
mov dword [esp + 8], ecx
call fcn.004483e0
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0xdc]
mov edi, dword [esp + 0x1e4]
mov esi, dword [esp + 0xa8]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x88], ebx
mov ebx, dword [esp + 0xa8]
cmp esi, ebx
jg 0x516d91
mov ebx, esi
cmp ebp, ecx
je 0x516dd3
mov dword [esp + 0x68], esi
mov dword [esp + 0xd4], ebp
mov dword [esp], ebp
mov dword [esp + 4], ecx
shl ebx, 2
mov dword [esp + 8], ebx
call fcn.0045fd30
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xdc]
mov ebp, dword [esp + 0xd4]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x1e4]
mov dword [edx + 8], esi
mov ecx, dword [esp + 0x88]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x84d450]
test ecx, ecx
jne 0x516def
mov dword [edx + 4], ebp
jmp 0x516e03
lea ecx, [edx + 4]
mov ebx, edi
mov edi, ecx
mov esi, eax
mov eax, ebp
call fcn.0045f3a0
mov eax, esi
mov edi, ebx
movzx ecx, byte [edi]
mov byte [edx], cl
nop
mov ecx, dword [esp + 0x1e8]
mov ebx, dword [esp + 0xd8]
cmp ecx, ebx
je 0x516f6e
mov ebp, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
mov edi, edx
mov edx, dword [ecx + 8]
mov dword [esp + 0xa4], edx
mov ecx, dword [ecx + 4]
cmp ebp, edx
jge 0x516eda
mov dword [esp + 0xf8], ecx
cmp edx, 1
jne 0x516e92
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004483e0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xf8]
mov ebx, dword [esp + 0xd8]
mov edi, dword [esp + 0xdc]
mov edx, 1
mov ebp, 1
jmp 0x516eda
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], edx
lea ecx, [edx + 4]
mov dword [esp + 0x40], ecx
mov dword [esp + 8], ecx
call fcn.004483e0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xf8]
mov ebx, dword [esp + 0xd8]
mov edi, dword [esp + 0xdc]
mov edx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x84], ebp
mov ebp, dword [esp + 0xa4]
cmp edx, ebp
jg 0x516eee
mov ebp, edx
cmp esi, ecx
je 0x516f30
mov dword [esp + 0x64], edx
mov dword [esp + 0xd0], esi
mov dword [esp], esi
mov dword [esp + 4], ecx
shl ebp, 2
mov dword [esp + 8], ebp
call fcn.0045fd30
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0xd8]
mov esi, dword [esp + 0xd0]
mov edi, dword [esp + 0xdc]
mov dword [ebx + 8], edx
mov ecx, dword [esp + 0x84]
mov dword [ebx + 0xc], ecx
mov ecx, dword [0x84d450]
test ecx, ecx
jne 0x516f4c
mov dword [ebx + 4], esi
jmp 0x516f60
lea ecx, [ebx + 4]
mov edx, edi
mov edi, ecx
mov ebp, eax
mov eax, esi
call fcn.0045f3a0
mov eax, ebp
mov edi, edx
mov ecx, dword [esp + 0x1e8]
movzx ecx, byte [ecx]
mov byte [ebx], cl
jmp 0x516f70
mov edi, edx
nop
mov ecx, dword [esp + 0x1ec]
cmp ecx, eax
je 0x5170cb
mov edx, dword [eax + 0xc]
mov ebp, dword [eax + 4]
mov esi, dword [ecx + 8]
mov dword [esp + 0xa0], esi
mov ebx, dword [ecx + 4]
cmp edx, esi
jge 0x517039
mov dword [esp + 0xf4], ebx
cmp esi, 1
jne 0x516ff1
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004483e0
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x1ec]
mov ebx, dword [esp + 0xf4]
mov edi, dword [esp + 0xdc]
mov esi, 1
mov edx, 1
jmp 0x517039
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], esi
lea eax, [esi + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 8], eax
call fcn.004483e0
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x1ec]
mov ebx, dword [esp + 0xf4]
mov edi, dword [esp + 0xdc]
mov esi, dword [esp + 0xa0]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0xa0]
cmp esi, ecx
jg 0x517046
mov ecx, esi
cmp ebp, ebx
je 0x51708f
mov dword [esp + 0x80], edx
mov dword [esp + 0x60], esi
mov dword [esp + 0xcc], ebp
mov dword [esp], ebp
mov dword [esp + 4], ebx
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.0045fd30
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x80]
mov ebp, dword [esp + 0xcc]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0xdc]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov ecx, dword [0x84d450]
test ecx, ecx
jne 0x5170a4
mov dword [eax + 4], ebp
jmp 0x5170b8
lea ecx, [eax + 4]
mov edx, edi
mov edi, ecx
mov ebx, eax
mov eax, ebp
call fcn.0045f3a0
mov eax, ebx
mov edi, edx
mov ecx, dword [esp + 0x1ec]
movzx ecx, byte [ecx]
mov byte [eax], cl
mov ebx, dword [esp + 0xd8]
mov dword [esp + 0x1f0], edi
mov dword [esp + 0x1f4], ebx
mov dword [esp + 0x1f8], eax
add esp, 0x1d0
ret
mov edx, dword [esp + 0x1ec]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x5170f9
xor ebx, ebx
jmp 0x51710c
movzx ebx, byte [edx]
test bl, bl
je 0x517107
mov ebx, 0xffffffff
jmp 0x51710c
mov ebx, 1
test ebx, ebx
jne 0x517543
nop
mov edx, dword [esp + 0x1d8]
mov ebx, dword [esp + 0xdc]
cmp edx, ebx
je 0x517274
mov ebp, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
mov edi, ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x9c], ecx
mov edx, dword [edx + 4]
cmp ebp, ecx
jge 0x5171e6
mov dword [esp + 0xf0], edx
cmp ecx, 1
jne 0x51719e
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004483e0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xf0]
mov ebx, dword [esp + 0xdc]
mov edi, dword [esp + 0x1e0]
mov ecx, 1
mov ebp, 1
jmp 0x5171e6
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [ecx + 4]
mov dword [esp + 0x38], edx
mov dword [esp + 8], edx
call fcn.004483e0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xf0]
mov ebx, dword [esp + 0xdc]
mov edi, dword [esp + 0x1e0]
mov ecx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x7c], ebp
mov ebp, dword [esp + 0x9c]
cmp ecx, ebp
jg 0x5171f7
mov ebp, ecx
cmp esi, edx
je 0x517239
mov dword [esp + 0x5c], ecx
mov dword [esp + 0xc8], esi
mov dword [esp], esi
mov dword [esp + 4], edx
shl ebp, 2
mov dword [esp + 8], ebp
call fcn.0045fd30
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0xdc]
mov esi, dword [esp + 0xc8]
mov edi, dword [esp + 0x1e0]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x7c]
mov dword [ebx + 0xc], ecx
mov ecx, dword [0x84d450]
test ecx, ecx
jne 0x517252
mov dword [ebx + 4], esi
jmp 0x517266
lea ecx, [ebx + 4]
mov edx, edi
mov edi, ecx
mov ebp, eax
mov eax, esi
call fcn.0045f3a0
mov eax, ebp
mov edi, edx
mov ecx, dword [esp + 0x1d8]
movzx ecx, byte [ecx]
mov byte [ebx], cl
jmp 0x517276
mov edi, ecx
nop
mov ecx, dword [esp + 0x1dc]
mov edx, dword [esp + 0xd8]
cmp ecx, edx
je 0x5173d9
mov ebp, dword [edx + 0xc]
mov esi, dword [edx + 4]
mov ebx, dword [ecx + 8]
mov dword [esp + 0x98], ebx
mov ecx, dword [ecx + 4]
cmp ebp, ebx
jge 0x517346
mov dword [esp + 0xec], ecx
cmp ebx, 1
jne 0x5172fe
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004483e0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xd8]
mov edi, dword [esp + 0x1e0]
mov ebx, 1
mov ebp, 1
jmp 0x517346
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea ecx, [ebx + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 8], ecx
call fcn.004483e0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xd8]
mov edi, dword [esp + 0x1e0]
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x98]
cmp ebx, ebp
jg 0x517357
mov ebp, ebx
cmp esi, ecx
je 0x517399
mov dword [esp + 0x58], ebx
mov dword [esp + 0xc4], esi
mov dword [esp], esi
mov dword [esp + 4], ecx
shl ebp, 2
mov dword [esp + 8], ebp
call fcn.0045fd30
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xd8]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0xc4]
mov edi, dword [esp + 0x1e0]
mov dword [edx + 8], ebx
mov ecx, dword [esp + 0x78]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x84d450]
test ecx, ecx
jne 0x5173b2
mov dword [edx + 4], esi
jmp 0x5173c6
lea ecx, [edx + 4]
mov ebx, edi
mov edi, ecx
mov ebp, eax
mov eax, esi
call fcn.0045f3a0
mov eax, ebp
mov edi, ebx
mov ecx, dword [esp + 0x1dc]
movzx ecx, byte [ecx]
mov byte [edx], cl
mov ebx, dword [esp + 0xdc]
nop
cmp edi, eax
je 0x517527
mov ecx, dword [eax + 0xc]
mov ebp, dword [eax + 4]
mov esi, dword [edi + 8]
mov dword [esp + 0x94], esi
mov edx, dword [edi + 4]
cmp ecx, esi
jge 0x51749b
mov dword [esp + 0xe8], edx
cmp esi, 1
jne 0x517453
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004483e0
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xe8]
mov ebx, dword [esp + 0xdc]
mov edi, dword [esp + 0x1e0]
mov esi, 1
mov ecx, 1
jmp 0x51749b
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], esi
lea eax, [esi + 4]
mov dword [esp + 0x30], eax
mov dword [esp + 8], eax
call fcn.004483e0
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xe8]
mov ebx, dword [esp + 0xdc]
mov edi, dword [esp + 0x1e0]
mov esi, dword [esp + 0x94]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x94]
cmp esi, ebx
jg 0x5174a8
mov ebx, esi
cmp ebp, edx
je 0x5174eb
mov dword [esp + 0x74], ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0xc0], ebp
mov dword [esp], ebp
mov dword [esp + 4], edx
shl ebx, 2
mov dword [esp + 8], ebx
call fcn.0045fd30
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0xc0]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x1e0]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov ecx, dword [0x84d450]
test ecx, ecx
jne 0x517500
mov dword [eax + 4], ebp
jmp 0x517514
lea ecx, [eax + 4]
mov edx, edi
mov edi, ecx
mov ebx, eax
mov eax, ebp
call fcn.0045f3a0
mov eax, ebx
mov edi, edx
movzx ecx, byte [edi]
mov byte [eax], cl
mov edx, dword [esp + 0xd8]
mov ebx, dword [esp + 0xdc]
mov dword [esp + 0x1f0], ebx
mov dword [esp + 0x1f4], edx
mov dword [esp + 0x1f8], eax
add esp, 0x1d0
ret
mov byte [esp + 0x1c0], 0
mov dword [esp + 0x1c4], 0
mov dword [esp + 0x1c8], 0
mov dword [esp + 0x1cc], 0
lea eax, [esp + 0x1c0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.004c1a60
mov eax, dword [esp + 0xc]
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0x1d4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1de0
mov byte [esp + 0x1b0], 0
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x1bc], 0
lea eax, [esp + 0x1b0]
mov dword [esp], eax
mov eax, dword [esp + 0x1ec]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004c1a60
mov eax, dword [esp + 0xc]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0x1d4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1de0
mov byte [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
lea eax, [esp + 0x1a0]
mov dword [esp], eax
mov eax, dword [esp + 0x1d8]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 8], ecx
call fcn.004c1a60
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x1d4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1de0
mov byte [esp + 0x190], 0
mov dword [esp + 0x194], 0
mov dword [esp + 0x198], 0
mov dword [esp + 0x19c], 0
lea eax, [esp + 0x190]
mov dword [esp], eax
mov eax, dword [esp + 0x1e4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 8], eax
call fcn.004c1a60
mov eax, dword [esp + 0xc]
mov dword [esp + 0x108], eax
mov ecx, dword [esp + 0x1d4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1de0
mov byte [esp + 0x180], 0
mov dword [esp + 0x184], 0
mov dword [esp + 0x188], 0
mov dword [esp + 0x18c], 0
lea eax, [esp + 0x180]
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.004c1820
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x517756
mov ecx, 0
jmp 0x51776d
movzx edx, byte [eax]
test dl, dl
je 0x517766
test ecx, ecx
mov ecx, 0xffffffff
jmp 0x51776d
test ecx, ecx
mov ecx, 1
jne 0x517773
xor edx, edx
jmp 0x517786
movzx edx, byte [eax]
test dl, dl
je 0x517781
mov edx, 0xffffffff
jmp 0x517786
mov edx, 1
mov dword [esp + 0x100], eax
mov dword [esp + 0x48], ecx
cmp edx, 0xffffffff
jne 0x5177b6
mov ecx, dword [esp + 0x1d4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c15e0
mov eax, dword [esp + 0x100]
mov byte [esp + 0x170], 0
mov dword [esp + 0x174], 0
mov dword [esp + 0x178], 0
mov dword [esp + 0x17c], 0
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 1
call fcn.004c82e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x174], eax
mov dword [esp + 0x178], ecx
mov dword [esp + 0x17c], edx
mov eax, dword [esp + 0x100]
movzx ecx, byte [eax]
mov byte [esp + 0x170], cl
lea ecx, [esp + 0x170]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.004c1a60
mov byte [esp + 0x160], 0
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], 0
mov dword [esp + 0x16c], 0
lea eax, [esp + 0x160]
mov dword [esp], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 4], eax
lea ecx, [esp + 0x170]
mov dword [esp + 8], ecx
call fcn.004c1a60
mov eax, dword [esp + 0xc]
mov dword [esp + 0x11c], eax
mov byte [esp + 0x150], 0
mov dword [esp + 0x154], 0
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], 0
lea ecx, [esp + 0x150]
mov dword [esp], ecx
mov ecx, dword [esp + 0x1dc]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x1ec]
mov dword [esp + 8], edx
call fcn.004c1a60
mov eax, dword [esp + 0xc]
mov dword [esp + 0x114], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 8], ecx
call fcn.004c1a60
mov eax, dword [esp + 0x1d4]
mov ecx, dword [eax]
mov edx, dword [esp + 0x114]
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004c1de0
mov byte [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x148], 0
mov dword [esp + 0x14c], 0
lea eax, [esp + 0x140]
mov dword [esp], eax
mov eax, dword [esp + 0x1e8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1e0]
mov dword [esp + 8], eax
call fcn.004c1a60
mov eax, dword [esp + 0xc]
mov dword [esp + 0x110], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xb4]
mov dword [esp + 8], ecx
call fcn.004c1a60
mov eax, dword [esp + 0x1d4]
mov ecx, dword [eax]
mov edx, dword [esp + 0x110]
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004c1de0
mov byte [esp + 0x130], 0
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0
lea eax, [esp + 0x130]
mov dword [esp], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 8], eax
call fcn.004c1820
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x517a37
xor ecx, ecx
jmp 0x517a4a
movzx ecx, byte [eax]
test cl, cl
je 0x517a45
mov ecx, 0xffffffff
jmp 0x517a4a
mov ecx, 1
mov dword [esp + 0x118], eax
cmp ecx, 0xffffffff
jne 0x517a76
mov ecx, dword [esp + 0x1d4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c15e0
mov eax, dword [esp + 0x118]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
test ecx, ecx
jne 0x517a87
xor ebp, ebp
jmp 0x517a9c
movzx ebp, byte [eax]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x517a97
mov ebp, 0xffffffff
jmp 0x517a9c
mov ebp, 1
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x517b00
test ebp, ebp
jne 0x517b00
mov eax, dword [esp + 0x1d4]
mov dword [esp], eax
mov eax, dword [esp + 0x1d8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1dc]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1e0]
mov dword [esp + 0xc], eax
call fcn.005180c0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1f0], eax
mov dword [esp + 0x1f4], ecx
mov dword [esp + 0x1f8], edx
add esp, 0x1d0
ret
nop
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 1
call fcn.004c82e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x118]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov ecx, dword [0x84d450]
test ecx, ecx
jne 0x517b4d
mov dword [ebx + 4], eax
jmp 0x517b55
lea edi, [ebx + 4]
call fcn.0045f3a0
mov byte [esp + 0x120], 0
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0
lea eax, [esp + 0x120]
mov dword [esp], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 4], eax
lea eax, [esp + 0x170]
mov dword [esp + 8], eax
call fcn.004c1a60
mov eax, dword [esp + 0xc]
mov dword [esp + 0x104], eax
nop
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0xdc]
cmp ecx, edx
je 0x517d05
mov ebx, dword [edx + 0xc]
mov ebp, dword [edx + 4]
mov esi, dword [ecx + 8]
mov dword [esp + 0x90], esi
mov edi, ecx
mov ecx, dword [ecx + 4]
cmp ebx, esi
jge 0x517c80
mov dword [esp + 0xe4], ecx
cmp esi, 1
jne 0x517c38
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004483e0
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0xdc]
mov edi, dword [esp + 0x118]
mov esi, 1
mov ebx, 1
jmp 0x517c80
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], esi
lea ecx, [esi + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 8], ecx
call fcn.004483e0
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0xdc]
mov edi, dword [esp + 0x118]
mov esi, dword [esp + 0x90]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x90]
cmp esi, ebx
jg 0x517c91
mov ebx, esi
cmp ebp, ecx
je 0x517cd3
mov dword [esp + 0x50], esi
mov dword [esp + 0xbc], ebp
mov dword [esp], ebp
mov dword [esp + 4], ecx
shl ebx, 2
mov dword [esp + 8], ebx
call fcn.0045fd30
mov eax, dword [esp + 0x104]
mov edx, dword [esp + 0xdc]
mov ebp, dword [esp + 0xbc]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x118]
mov dword [edx + 8], esi
mov ecx, dword [esp + 0x70]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x84d450]
test ecx, ecx
jne 0x517cec
mov dword [edx + 4], ebp
jmp 0x517d00
lea ecx, [edx + 4]
mov ebx, edi
mov edi, ecx
mov esi, eax
mov eax, ebp
call fcn.0045f3a0
mov eax, esi
mov edi, ebx
movzx ecx, byte [edi]
mov byte [edx], cl
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.004c1a60
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x11c]
mov dword [esp + 8], ecx
call fcn.004c1820
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x104]
mov dword [esp + 8], ecx
call fcn.004c1820
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x104]
mov dword [esp + 8], ecx
call fcn.004c1820
mov eax, dword [esp + 0x1d4]
mov ecx, dword [eax]
mov edx, dword [esp + 0xdc]
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004c1de0
nop
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0xd8]
cmp eax, ecx
je 0x517ece
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 4]
mov ebp, dword [eax + 8]
mov esi, dword [eax + 4]
cmp edx, ebp
jl 0x517dbd
mov edi, ebp
jmp 0x517e5d
mov dword [esp + 0x8c], ebp
mov dword [esp + 0xe0], esi
cmp ebp, 1
jne 0x517e1a
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004483e0
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0xd8]
mov esi, dword [esp + 0xe0]
mov edi, dword [esp + 0x8c]
mov ebp, 1
mov edx, 1
jmp 0x517e5d
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [ebp + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
call fcn.004483e0
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0xd8]
mov esi, dword [esp + 0xe0]
mov edi, dword [esp + 0x8c]
mov ebp, edi
mov edx, dword [esp + 0x28]
cmp ebp, edi
jg 0x517e63
mov edi, ebp
cmp ebx, esi
je 0x517ea6
mov dword [esp + 0x6c], edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0xb8], ebx
mov dword [esp], ebx
mov dword [esp + 4], esi
shl edi, 2
mov dword [esp + 8], edi
call fcn.0045fd30
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0x4c]
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], edx
mov edx, dword [0x84d450]
test edx, edx
jne 0x517ebb
mov dword [ecx + 4], ebx
jmp 0x517ec9
lea edi, [ecx + 4]
mov edx, eax
mov eax, ebx
call fcn.0045f3a0
mov eax, edx
movzx eax, byte [eax]
mov byte [ecx], al
mov eax, dword [esp + 0x104]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xdc]
mov dword [esp + 8], ecx
call fcn.004c1820
mov eax, dword [esp + 0xd8]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x104]
mov dword [esp + 8], ecx
call fcn.004c1a60
mov eax, dword [esp + 0x114]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x11c]
mov dword [esp + 8], ecx
call fcn.004c1a60
nop
mov eax, dword [esp + 0x114]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 1
call fcn.004c82e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x114]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov ecx, dword [0x84d450]
test ecx, ecx
jne 0x517f85
mov dword [ebx + 4], eax
jmp 0x517f8d
lea edi, [ebx + 4]
call fcn.0045f3a0
mov eax, dword [esp + 0xd8]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.004c1820
mov eax, dword [esp + 0x1d4]
mov ecx, dword [eax]
mov edx, dword [esp + 0xd8]
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004c1de0
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov ecx, dword [esp + 0x1e0]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1ec]
mov dword [esp + 8], ecx
call fcn.004c15e0
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004c1a60
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xb4]
mov dword [esp + 8], ecx
call fcn.004c1820
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 8], ecx
call fcn.004c1820
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x100]
mov dword [esp + 8], ecx
call fcn.004c1a60
mov eax, dword [esp + 0x1d4]
mov eax, dword [eax]
mov ecx, dword [esp + 0xac]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004c1de0
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x1f0], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x1f4], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x1f8], eax
add esp, 0x1d0
ret
call fcn.0045df90
jmp fcn.00516c10