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

Disassembly:
mov ecx, dword [0x817cc4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x150]
cmp eax, dword [ecx + 8]
jbe 0x5215d6
sub esp, 0x1d0
lea eax, [0x5bbc40]
mov dword [esp], eax
call fcn.0040bd60
mov eax, dword [esp + 4]
mov dword [esp + 0xdc], eax
lea ecx, [0x5bbc40]
mov dword [esp], ecx
call fcn.0040bd60
mov eax, dword [esp + 4]
mov dword [esp + 0xd8], eax
lea ecx, [0x5bbc40]
mov dword [esp], ecx
call fcn.0040bd60
mov eax, dword [esp + 0x1e0]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x520203
xor ecx, ecx
jmp 0x520216
movzx ecx, byte [eax]
test cl, cl
je 0x520211
mov ecx, 0xffffffff
jmp 0x520216
mov ecx, 1
mov edx, dword [esp + 4]
mov dword [esp + 0xac], edx
test ecx, ecx
jne 0x520649
nop
mov eax, dword [esp + 0x1e4]
mov ecx, dword [esp + 0xdc]
cmp eax, ecx
je 0x520380
mov ebx, dword [ecx + 0xc]
mov ebp, dword [eax + 8]
mov dword [esp + 0xa8], ebp
mov esi, dword [eax + 4]
cmp ebx, ebp
jl 0x52025c
mov edi, dword [ecx + 4]
jmp 0x5202fa
mov dword [esp + 0xfc], esi
cmp ebp, 1
jne 0x5202b2
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044d2d0
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x1e4]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0xfc]
mov ebp, 1
mov ebx, 1
jmp 0x5202fa
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea ecx, [ebp + 4]
mov dword [esp + 0x44], ecx
mov dword [esp + 8], ecx
call fcn.0044d2d0
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x1e4]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0xfc]
mov ebp, dword [esp + 0xa8]
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0xa8]
cmp ebp, edx
jg 0x520307
mov edx, ebp
cmp edi, esi
je 0x520350
mov dword [esp + 0x68], ebp
mov dword [esp + 0xd4], edi
mov dword [esp + 0x88], ebx
mov dword [esp], edi
mov dword [esp + 4], esi
shl edx, 2
mov dword [esp + 8], edx
call fcn.00467650
mov eax, dword [esp + 0x1e4]
mov ecx, dword [esp + 0xdc]
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x68]
mov edi, dword [esp + 0xd4]
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov edx, dword [0x817f20]
test edx, edx
je 0x520371
mov edx, edi
call fcn.00466d20
mov dword [edi], edx
mov ebx, dword [ecx + 4]
mov dword [edi + 4], ebx
mov edi, edx
mov dword [ecx + 4], edi
movzx eax, byte [eax]
mov byte [ecx], al
mov edx, dword [esp + 0xac]
nop
mov eax, dword [esp + 0x1e8]
mov ebx, dword [esp + 0xd8]
cmp eax, ebx
je 0x5204da
mov ebp, dword [ebx + 0xc]
mov esi, dword [eax + 8]
mov dword [esp + 0xa4], esi
mov edi, dword [eax + 4]
cmp ebp, esi
jl 0x5203b3
mov ecx, dword [ebx + 4]
jmp 0x520451
mov dword [esp + 0xf8], edi
cmp esi, 1
jne 0x520409
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044d2d0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1e8]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xd8]
mov edi, dword [esp + 0xf8]
mov esi, 1
mov ebp, 1
jmp 0x520451
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], esi
lea ecx, [esi + 4]
mov dword [esp + 0x40], ecx
mov dword [esp + 8], ecx
call fcn.0044d2d0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1e8]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xd8]
mov edi, dword [esp + 0xf8]
mov esi, dword [esp + 0xa4]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0xa4]
cmp esi, edx
jg 0x52045e
mov edx, esi
cmp ecx, edi
je 0x5204a7
mov dword [esp + 0x84], ebp
mov dword [esp + 0x64], esi
mov dword [esp + 0xd0], ecx
mov dword [esp], ecx
mov dword [esp + 4], edi
shl edx, 2
mov dword [esp + 8], edx
call fcn.00467650
mov eax, dword [esp + 0x1e8]
mov ecx, dword [esp + 0xd0]
mov ebx, dword [esp + 0xd8]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x64]
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ebp
mov edx, dword [0x817f20]
test edx, edx
je 0x5204c4
call fcn.00466d20
mov dword [edi], ecx
mov edx, dword [ebx + 4]
mov dword [edi + 4], edx
mov dword [ebx + 4], ecx
movzx eax, byte [eax]
mov byte [ebx], al
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xac]
nop
mov eax, dword [esp + 0x1ec]
cmp eax, edx
je 0x52062d
mov ebp, dword [edx + 0xc]
mov esi, dword [eax + 8]
mov dword [esp + 0xa0], esi
mov edi, dword [eax + 4]
cmp ebp, esi
jl 0x520506
mov ebx, dword [edx + 4]
jmp 0x5205a4
mov dword [esp + 0xf4], edi
cmp esi, 1
jne 0x52055c
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044d2d0
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x1ec]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xac]
mov edi, dword [esp + 0xf4]
mov esi, 1
mov ebp, 1
jmp 0x5205a4
lea eax, [0x5b16c0]
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.0044d2d0
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x1ec]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xac]
mov edi, dword [esp + 0xf4]
mov esi, dword [esp + 0xa0]
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0xa0]
cmp esi, ecx
jg 0x5205b1
mov ecx, esi
cmp ebx, edi
je 0x5205fa
mov dword [esp + 0x80], ebp
mov dword [esp + 0x60], esi
mov dword [esp + 0xcc], ebx
mov dword [esp], ebx
mov dword [esp + 4], edi
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.00467650
mov eax, dword [esp + 0x1ec]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xcc]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x60]
mov dword [edx + 8], esi
mov dword [edx + 0xc], ebp
mov ecx, dword [0x817f20]
test ecx, ecx
je 0x520617
call fcn.00466d20
mov dword [edi], ebx
mov ecx, dword [edx + 4]
mov dword [edi + 4], ecx
mov dword [edx + 4], ebx
movzx eax, byte [eax]
mov byte [edx], al
mov ecx, dword [esp + 0xdc]
mov ebx, dword [esp + 0xd8]
mov dword [esp + 0x1f0], ecx
mov dword [esp + 0x1f4], ebx
mov dword [esp + 0x1f8], edx
add esp, 0x1d0
ret
mov ecx, dword [esp + 0x1ec]
mov ebx, dword [ecx + 8]
test ebx, ebx
jne 0x52065b
xor ebx, ebx
jmp 0x52066e
movzx ebx, byte [ecx]
test bl, bl
je 0x520669
mov ebx, 0xffffffff
jmp 0x52066e
mov ebx, 1
test ebx, ebx
jne 0x520a88
nop
mov ecx, dword [esp + 0x1d8]
mov ebx, dword [esp + 0xdc]
cmp ecx, ebx
je 0x5207ca
mov ebp, dword [ebx + 0xc]
mov esi, dword [ecx + 8]
mov dword [esp + 0x9c], esi
mov edi, dword [ecx + 4]
cmp esi, ebp
jg 0x5206a9
mov eax, dword [ebx + 4]
jmp 0x520747
mov dword [esp + 0xf0], edi
cmp esi, 1
jne 0x5206ff
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044d2d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1d8]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xdc]
mov edi, dword [esp + 0xf0]
mov esi, 1
mov ebp, 1
jmp 0x520747
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], esi
lea ecx, [esi + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 8], ecx
call fcn.0044d2d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1d8]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xdc]
mov edi, dword [esp + 0xf0]
mov esi, dword [esp + 0x9c]
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x9c]
cmp esi, edx
jg 0x520754
mov edx, esi
cmp eax, edi
je 0x520797
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x5c], esi
mov dword [esp + 0xc8], eax
mov dword [esp], eax
mov dword [esp + 4], edi
shl edx, 2
mov dword [esp + 8], edx
call fcn.00467650
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x1d8]
mov ebx, dword [esp + 0xdc]
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x5c]
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ebp
mov edx, dword [0x817f20]
test edx, edx
je 0x5207b4
call fcn.00466d20
mov dword [edi], eax
mov edx, dword [ebx + 4]
mov dword [edi + 4], edx
mov dword [ebx + 4], eax
movzx eax, byte [ecx]
mov byte [ebx], al
mov eax, dword [esp + 0x1e0]
mov edx, dword [esp + 0xac]
nop
mov ecx, dword [esp + 0x1dc]
mov ebp, dword [esp + 0xd8]
cmp ecx, ebp
je 0x520926
mov esi, dword [ebp + 0xc]
mov edi, dword [ecx + 8]
mov dword [esp + 0x98], edi
mov ebx, dword [ecx + 4]
cmp esi, edi
jl 0x5207fd
mov eax, dword [ebp + 4]
jmp 0x52089b
mov dword [esp + 0xec], ebx
cmp edi, 1
jne 0x520853
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044d2d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1dc]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0xd8]
mov edi, 1
mov esi, 1
jmp 0x52089b
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea ecx, [edi + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 8], ecx
call fcn.0044d2d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1dc]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0xd8]
mov edi, dword [esp + 0x98]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x98]
cmp edi, edx
jg 0x5208a8
mov edx, edi
cmp eax, ebx
je 0x5208eb
mov dword [esp + 0x78], esi
mov dword [esp + 0x58], edi
mov dword [esp + 0xc4], eax
mov dword [esp], eax
mov dword [esp + 4], ebx
shl edx, 2
mov dword [esp + 8], edx
call fcn.00467650
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x1dc]
mov ebp, dword [esp + 0xd8]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x58]
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], esi
mov edx, dword [0x817f20]
test edx, edx
je 0x520908
call fcn.00466d20
mov dword [edi], eax
mov edx, dword [ebp + 4]
mov dword [edi + 4], edx
mov dword [ebp + 4], eax
movzx eax, byte [ecx]
mov byte [ebp], al
mov eax, dword [esp + 0x1e0]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xdc]
nop
cmp eax, edx
je 0x520a6c
mov ecx, dword [edx + 0xc]
mov esi, dword [eax + 8]
mov dword [esp + 0x94], esi
mov edi, dword [eax + 4]
cmp ecx, esi
jl 0x52094b
mov ebp, dword [edx + 4]
jmp 0x5209e9
mov dword [esp + 0xe8], edi
cmp esi, 1
jne 0x5209a1
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044d2d0
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x1e0]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xdc]
mov edi, dword [esp + 0xe8]
mov esi, 1
mov ecx, 1
jmp 0x5209e9
lea eax, [0x5b16c0]
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.0044d2d0
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x1e0]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xdc]
mov edi, dword [esp + 0xe8]
mov esi, dword [esp + 0x94]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x94]
cmp esi, ebx
jg 0x5209f6
mov ebx, esi
cmp ebp, edi
je 0x520a39
mov dword [esp + 0x74], ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0xc0], ebp
mov dword [esp], ebp
mov dword [esp + 4], edi
shl ebx, 2
mov dword [esp + 8], ebx
call fcn.00467650
mov eax, dword [esp + 0x1e0]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0xac]
mov ebp, dword [esp + 0xc0]
mov esi, dword [esp + 0x54]
mov dword [edx + 8], esi
mov dword [edx + 0xc], ecx
mov ecx, dword [0x817f20]
test ecx, ecx
je 0x520a56
call fcn.00466d20
mov dword [edi], ebp
mov ecx, dword [edx + 4]
mov dword [edi + 4], ecx
mov dword [edx + 4], ebp
movzx eax, byte [eax]
mov byte [edx], al
mov ebx, dword [esp + 0xdc]
mov ebp, dword [esp + 0xd8]
mov dword [esp + 0x1f0], ebx
mov dword [esp + 0x1f4], ebp
mov dword [esp + 0x1f8], edx
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 ecx, [esp + 0x1c0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004b39a0
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.004b3d10
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.004b39a0
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.004b3d10
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.004b39a0
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.004b3d10
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.004b39a0
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.004b3d10
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.004b3750
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x520c9b
mov ecx, 0
jmp 0x520cb2
movzx edx, byte [eax]
test dl, dl
je 0x520cab
test ecx, ecx
mov ecx, 0xffffffff
jmp 0x520cb2
test ecx, ecx
mov ecx, 1
jne 0x520cb8
xor edx, edx
jmp 0x520ccb
movzx edx, byte [eax]
test dl, dl
je 0x520cc6
mov edx, 0xffffffff
jmp 0x520ccb
mov edx, 1
mov dword [esp + 0x100], eax
mov dword [esp + 0x48], ecx
cmp edx, 0xffffffff
jne 0x520cfb
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.004b3500
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.004ba1c0
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.004b39a0
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.004b39a0
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.004b39a0
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.004b39a0
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.004b3d10
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.004b39a0
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.004b39a0
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.004b3d10
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.004b3750
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x520f7c
xor ecx, ecx
jmp 0x520f8f
movzx ecx, byte [eax]
test cl, cl
je 0x520f8a
mov ecx, 0xffffffff
jmp 0x520f8f
mov ecx, 1
mov dword [esp + 0x118], eax
cmp ecx, 0xffffffff
jne 0x520fbb
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.004b3500
mov eax, dword [esp + 0x118]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x520fc6
xor edx, edx
jmp 0x520fd9
movzx edx, byte [eax]
test dl, dl
je 0x520fd4
mov edx, 0xffffffff
jmp 0x520fd9
mov edx, 1
mov ebx, dword [esp + 0x48]
test ebx, ebx
jne 0x52103d
test edx, edx
jne 0x52103d
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.005215e0
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
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
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.004ba1c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x118]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
mov eax, dword [0x817f20]
test eax, eax
je 0x521098
call fcn.00466d20
mov dword [edi], edx
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov dword [ebx + 4], edx
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.004b39a0
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 0x521230
mov ebx, dword [edx + 0xc]
mov ebp, dword [ecx + 8]
mov dword [esp + 0x90], ebp
mov esi, dword [ecx + 4]
cmp ebx, ebp
jl 0x521127
mov edi, dword [edx + 4]
jmp 0x5211b7
mov dword [esp + 0xe4], esi
cmp ebp, 1
jne 0x521176
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044d2d0
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0xdc]
mov esi, dword [esp + 0xe4]
mov ebp, 1
mov ebx, 1
jmp 0x5211b7
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea ecx, [ebp + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 8], ecx
call fcn.0044d2d0
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0xdc]
mov esi, dword [esp + 0xe4]
mov ebp, dword [esp + 0x90]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x90]
cmp ebp, eax
jg 0x5211c4
mov eax, ebp
cmp edi, esi
je 0x521207
mov dword [esp + 0x70], ebx
mov dword [esp + 0x50], ebp
mov dword [esp + 0xbc], edi
mov dword [esp], edi
mov dword [esp + 4], esi
shl eax, 2
mov dword [esp + 8], eax
call fcn.00467650
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0xdc]
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0xbc]
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ebx
mov eax, dword [0x817f20]
test eax, eax
je 0x521228
mov eax, edi
call fcn.00466d20
mov dword [edi], eax
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov edi, eax
mov dword [edx + 4], edi
movzx eax, byte [ecx]
mov byte [edx], al
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.004b39a0
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.004b3750
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.004b3750
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.004b3750
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.004b3d10
nop
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0xd8]
cmp eax, ecx
je 0x5213f6
mov edx, dword [ecx + 0xc]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 4]
cmp edx, ebx
jl 0x5212e8
mov esi, dword [ecx + 4]
mov edi, ebx
jmp 0x521388
mov dword [esp + 0x8c], ebx
mov dword [esp + 0xe0], ebp
cmp ebx, 1
jne 0x521345
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044d2d0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0xd8]
mov ebp, dword [esp + 0xe0]
mov edi, dword [esp + 0x8c]
mov ebx, 1
mov edx, 1
jmp 0x521388
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
call fcn.0044d2d0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0xd8]
mov ebp, dword [esp + 0xe0]
mov edi, dword [esp + 0x8c]
mov ebx, edi
mov edx, dword [esp + 0x28]
cmp ebx, edi
jg 0x52138e
mov edi, ebx
cmp esi, ebp
je 0x5213d1
mov dword [esp + 0x6c], edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0xb8], esi
mov dword [esp], esi
mov dword [esp + 4], ebp
shl edi, 2
mov dword [esp + 8], edi
call fcn.00467650
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0xb8]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edx
mov edx, dword [0x817f20]
test edx, edx
je 0x5213ee
call fcn.00466d20
mov dword [edi], esi
mov edx, dword [ecx + 4]
mov dword [edi + 4], edx
mov dword [ecx + 4], esi
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.004b3750
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.004b39a0
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.004b39a0
mov eax, dword [esp + 0x114]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
nop
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.004ba1c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x114]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
mov eax, dword [0x817f20]
test eax, eax
je 0x5214b5
call fcn.00466d20
mov dword [edi], edx
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov dword [ebx + 4], edx
mov eax, dword [esp + 0xd8]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.004b3750
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.004b3d10
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.004b3500
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004b39a0
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.004b3750
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.004b3750
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.004b39a0
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.004b3d10
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.00465910
jmp fcn.00520190