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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5addd4
mov eax, dword fs:[0]
push eax
sub esp, 0x120
push ebx
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, 1
add dword [edi + 0x14], ecx
cmp dword [edi + 0x164], ecx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
jne 0x5205d1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.00527870
mov esi, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esp + 0xcc]
push eax
mov dword [esp + 0x34], edx
call fcn.00521640
mov dword [esp + 0x138], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x110], ebx
mov dword [esp + 0x124], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
cmp esi, ebx
mov byte [esp + 0x138], 1
jle 0x5204d7
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x44], esi
jmp 0x5203f0
lea eax, [esp + 0x110]
lea esi, [esp + 0x94]
call fcn.0052a580
mov esi, dword [esp + 0xe0]
cmp esi, ebx
mov edx, dword [esp + 0xe4]
je 0x52043a
mov ecx, dword [esp + 0xe8]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x52043a
mov dword [edx], ebx
add edx, 4
mov dword [esp + 0xe4], edx
jmp 0x520464
cmp esi, edx
mov edi, edx
jbe 0x520445
call fcn.0057803b
push edi
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0xc4]
push edx
call fcn.0052a770
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x100]
cmp esi, ebx
mov edx, dword [esp + 0x104]
je 0x52049b
mov ecx, dword [esp + 0x108]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x52049b
mov dword [edx], ebx
add edx, 4
mov dword [esp + 0x104], edx
jmp 0x5204cc
cmp esi, edx
mov edi, edx
jbe 0x5204a6
call fcn.0057803b
push edi
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xd0]
push ecx
lea eax, [esp + 0x10c]
call fcn.0052a770
mov edi, dword [esp + 0x18]
sub dword [esp + 0x44], 1
jne 0x5203f0
mov eax, dword [esp + 0x30]
cmp eax, ebx
jle 0x520576
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], eax
jmp 0x5204f0
lea ebx, [esp + 0x94]
lea esi, [esp + 0xcc]
call fcn.00529790
mov esi, dword [esp + 0xf0]
test esi, esi
mov edx, dword [esp + 0xf4]
je 0x52053e
mov ecx, dword [esp + 0xf8]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x52053e
mov dword [edx], 0
add edx, 4
mov dword [esp + 0xf4], edx
jmp 0x52056b
cmp esi, edx
mov ebx, edx
jbe 0x520549
call fcn.0057803b
push ebx
lea eax, [esp + 0xf0]
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0xfc]
call fcn.0052a770
sub dword [esp + 0x44], 1
jne 0x5204f0
lea esi, [edi + 4]
lea ebx, [esp + 0xcc]
call fcn.00529a20
xor ebx, ebx
mov byte [esp + 0x138], bl
mov eax, dword [esp + 0x98]
cmp eax, ebx
je 0x5205a2
push eax
call fcn.0055517b
add esp, 4
lea ecx, [esp + 0xcc]
push ecx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x13c], 0xffffffff
call fcn.005216a0
xor ebx, ebx
mov ecx, dword [edi + 8]
cmp ecx, ebx
mov esi, dword [edi + 0x14]
mov dword [esp + 0xc0], esi
je 0x5205ee
mov eax, dword [edi + 0xc]
sub eax, ecx
sar eax, 6
cmp esi, eax
jb 0x5205f3
call fcn.0057803b
mov eax, dword [edi + 8]
mov ecx, esi
shl ecx, 6
add eax, ecx
push eax
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0xcc], ecx
call fcn.00521770
mov dword [esp + 0x138], 2
mov eax, dword [esp + 0x68]
cmp eax, ebx
jne 0x520628
mov dword [esp + 0x2c], ebx
jmp 0x520635
mov ecx, dword [esp + 0x6c]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
jne 0x520643
mov dword [esp + 0x30], ebx
jmp 0x520650
mov eax, dword [esp + 0x7c]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x18]
lea edi, [ebx + 0x3c]
push 5
push str.table
mov ecx, edi
mov dword [esp + 0xc0], edi
call fcn.00402270
push edi
lea esi, [ebx + 0x260]
call fcn.00529b70
mov eax, dword [edi]
push edi
push eax
push ebx
call fcn.005257a0
push ecx
mov ecx, esp
mov dword [esp + 0xb0], esp
push eax
call fcn.004023b0
call fcn.00525ae0
mov dword [esp + 0x1c], 0
call fcn.00555692
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x5206b9
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x144], 4
call fcn.00526c90
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x520708
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xb0]
push ecx
lea esi, [esp + 0x48]
call fcn.00526f40
mov ecx, dword [esp + 0x18]
push 1
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0xb0]
push eax
push ecx
mov byte [esp + 0x148], 5
call fcn.00527ca0
mov ebx, dword [esp + 0x18]
mov esi, ebx
call fcn.00524bf0
cmp dword [ebx + 0x164], 1
mov edi, dword [esp + 0x68]
je 0x5209cf
test edi, edi
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
jne 0x520775
xor eax, eax
jmp 0x52077e
mov eax, dword [esp + 0x6c]
sub eax, edi
sar eax, 2
mov ecx, dword [ebx + 0xa8]
lea edx, [ecx + eax - 1]
lea eax, [esp + 0x64]
mov dword [esp + 0x10], edx
xor esi, esi
call fcn.005299f0
test eax, eax
jbe 0x5207d7
jmp 0x5207a0
test edi, edi
je 0x5207b1
mov eax, dword [esp + 0x6c]
sub eax, edi
sar eax, 2
cmp esi, eax
jb 0x5207ba
call fcn.0057803b
mov edi, dword [esp + 0x68]
mov eax, dword [edi + esi*4]
add eax, dword [ebx + 0xa8]
add esi, 1
add dword [esp + 0x10], eax
lea eax, [esp + 0x64]
call fcn.005299f0
cmp esi, eax
jb 0x5207a0
mov esi, dword [esp + 0x78]
test esi, esi
jne 0x5207e3
xor eax, eax
jmp 0x5207ec
mov eax, dword [esp + 0x7c]
sub eax, esi
sar eax, 2
mov ecx, dword [ebx + 0xa8]
mov edx, dword [esp + 0x40]
add ecx, eax
lea eax, [edx + ecx - 1]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x1c], 0
call fcn.005299f0
test eax, eax
jbe 0x52085b
mov edi, dword [esp + 0x1c]
lea esp, [esp]
test esi, esi
je 0x520831
mov eax, dword [esp + 0x7c]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x52083a
call fcn.0057803b
mov esi, dword [esp + 0x78]
mov ecx, dword [esi + edi*4]
add ecx, dword [ebx + 0xa8]
lea eax, [esp + 0x74]
add dword [esp + 0x40], ecx
add edi, 1
call fcn.005299f0
cmp edi, eax
jb 0x520820
mov edi, dword [esp + 0x68]
mov eax, 6
cmp dword [ebx + 0x88], eax
je 0x520870
mov eax, dword [ebx + 0x8c]
add eax, eax
add dword [esp + 0x10], eax
add dword [esp + 0x40], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
jge 0x5209bf
sub eax, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x84]
mov dword [esp + 0x14], ebx
call fcn.005299f0
test eax, eax
mov esi, dword [esp + 0x88]
jbe 0x5208f8
mov edi, 1
test esi, esi
je 0x5208cc
mov eax, dword [esp + 0x8c]
sub eax, esi
sar eax, 2
cmp ebx, eax
jb 0x5208d8
call fcn.0057803b
mov esi, dword [esp + 0x88]
cmp dword [esi + ebx*4], 0
jne 0x5208e2
add dword [esp + 0x14], edi
lea eax, [esp + 0x84]
add ebx, edi
call fcn.005299f0
cmp ebx, eax
jb 0x5208b8
mov edi, dword [esp + 0x68]
xor ebx, ebx
lea ebx, [ebx]
test esi, esi
je 0x52097a
mov eax, dword [esp + 0x8c]
sub eax, esi
sar eax, 2
cmp ebx, eax
jae 0x52097a
cmp dword [esp + 0x14], 0
jle 0x52097a
cmp ebx, eax
jb 0x52092f
call fcn.0057803b
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x68]
cmp dword [esi + ebx*4], 0
jne 0x520975
mov eax, dword [esp + 0x20]
cdq
idiv dword [esp + 0x14]
test edi, edi
mov esi, eax
je 0x520951
mov eax, dword [esp + 0x6c]
sub eax, edi
sar eax, 2
cmp ebx, eax
jb 0x52095a
call fcn.0057803b
mov edi, dword [esp + 0x68]
add dword [edi + ebx*4], esi
sub dword [esp + 0x20], esi
sub dword [esp + 0x14], 1
add dword [esp + 0x10], esi
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x68]
add ebx, 1
jmp 0x520900
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x10], edx
jge 0x5209b7
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x80]
sub eax, 1
je 0x5209a8
sub eax, 1
jne 0x5209b7
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
sub eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
jmp 0x5209b7
mov eax, edx
sub eax, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x34], eax
mov esi, dword [esp + 0x78]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x3c], eax
jmp 0x5209d3
mov esi, dword [esp + 0x78]
cmp dword [ebx + 0x164], 0
jne 0x520b3d
mov eax, dword [ebx + 0x78]
test eax, eax
jl 0x520a1b
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x70]
mov ebx, dword [ecx + 0x15c]
push 0
push 5
push edx
mov edx, dword [ecx + 0x6c]
push edx
mov edx, dword [ecx + 0x60]
push edx
push eax
lea eax, [ecx + 0xd0]
push eax
lea eax, [esp + 0x50]
call fcn.0051c240
mov ebx, dword [esp + 0x18]
jmp 0x520ac5
mov eax, dword [ebx + 0x7c]
cmp dword [eax - 0xc], 0
je 0x520acd
push ecx
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
lea esi, [eax - 0x10]
mov eax, dword [edx + 0x10]
mov dword [esp + 0xac], esp
mov dword [esp + 0x20], esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x520a5b
cmp eax, dword [esi]
jne 0x520a5b
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x520a97
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x520a74
call fcn.00454cf0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.005773f5
add esp, 0x10
mov ecx, dword [esp + 0x20]
add edi, 0x10
mov dword [ecx], edi
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
sub edx, eax
push edx
mov edx, dword [esp + 0x44]
sub edx, ecx
push edx
push eax
mov eax, dword [ebx + 0x15c]
push ecx
push eax
push ebx
call fcn.00528c50
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x78]
mov ecx, dword [ebx + 0x8c]
test ecx, ecx
jle 0x520b3d
cmp dword [ebx + 0x144], 0
je 0x520b03
mov eax, dword [ebx + 0x88]
test eax, eax
mov edx, dword [ebx + 0x15c]
je 0x520b3d
push ecx
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [ebx + 0x68]
push eax
mov eax, dword [ebx + 0x64]
push eax
push ecx
mov esi, edx
jmp 0x520b22
mov edx, dword [ebx + 0x88]
test edx, edx
mov eax, dword [ebx + 0x148]
je 0x520b3d
mov esi, dword [ebx + 0x15c]
push ecx
push edx
mov edx, dword [esp + 0x48]
push eax
push eax
push edx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
call fcn.0051d340
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0xa0], edx
mov edx, 1
cmp dword [ebx + 0x164], edx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x9c], eax
je 0x520bad
cmp dword [ebx + 0x88], 6
jne 0x520b89
add ecx, 3
mov eax, 3
jmp 0x520b91
mov eax, dword [ebx + 0x8c]
add ecx, eax
add dword [esp + 0x98], eax
sub dword [esp + 0x9c], eax
sub dword [esp + 0xa0], eax
mov dword [esp + 0x94], ecx
cmp dword [esp + 0x2c], 0
je 0x520e6f
cmp dword [esp + 0x30], 0
je 0x520e6f
xor esi, esi
mov dword [esp + 0x20], esi
call fcn.00555692
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x520be3
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x138], 6
call fcn.00555692
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x520c15
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x138], 7
call fcn.00555692
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x520c47
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x138], 8
cmp dword [esp + 0x30], esi
mov dword [esp + 0x10], esi
jle 0x520dea
lea ecx, [ecx]
push ecx
mov ecx, esp
mov dword [esp + 0xac], esp
push 0x5fe570
call fcn.004023b0
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x24]
call fcn.00527220
test eax, eax
je 0x520dd1
mov esi, dword [esp + 0x20]
lea ebx, [esp + 0x20]
mov eax, edi
mov dword [esp + 0x20], esi
call fcn.00527b40
mov ecx, dword [esp + 0x20]
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0xbc]
push edx
mov ecx, edi
call fcn.00423ae0
mov byte [esp + 0x138], 9
mov eax, dword [eax]
mov ebx, dword [esp + 0x14]
lea esi, [eax - 0x10]
add ebx, 0xfffffff0
cmp esi, ebx
je 0x520d7a
cmp dword [ebx + 0xc], 0
jl 0x520d6c
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x520d6c
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x520d0f
cmp eax, dword [esi]
jne 0x520d0f
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x520d4a
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x520a6f
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.005773f5
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x520d63
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x520d7a
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402270
mov byte [esp + 0x138], 8
mov eax, dword [esp + 0xb4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x520da5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.005217f0
mov eax, dword [esp + 0x20]
add eax, 5
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
jl 0x520c70
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x138], 7
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x520e12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x520e3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x520e62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x78]
mov edx, 1
cmp dword [ebx + 0x164], 0
je 0x521516
cmp dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x10], edx
jl 0x5211c7
mov edi, edi
cmp dword [esp + 0x30], 0
mov dword [esp + 0x50], 0
jle 0x5211a9
mov dword [esp + 0x28], 0
jmp 0x520eb0
test ecx, ecx
je 0x520ec3
mov eax, dword [esp + 0x5c]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x50], eax
jb 0x520ed0
call fcn.0057803b
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x28]
xor esi, esi
cmp dword [esp + 0x2c], esi
lea ebx, [edx + ecx]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], esi
jle 0x52118f
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
lea ecx, [eax*4 - 4]
mov dword [esp + 0x48], ecx
jmp 0x520f17
mov ebx, dword [esp + 0xa8]
mov eax, dword [ebx + 4]
test eax, eax
je 0x520f3a
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x520f43
call fcn.0057803b
mov edi, dword [esp + 0x68]
mov ebx, dword [ebx + 4]
add ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
cmp dword [ebx], eax
mov dword [esp + 0x20], ebx
jne 0x52115e
cmp eax, 1
jne 0x52101e
test edi, edi
je 0x520f76
mov ecx, dword [esp + 0x6c]
mov eax, ecx
sub eax, edi
sar eax, 2
cmp esi, eax
jb 0x520f83
call fcn.0057803b
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov eax, dword [ebx + 0x10]
mov edx, dword [esp + 0x24]
cmp dword [edx + edi], eax
jle 0x520fb8
test edi, edi
je 0x520f9e
mov eax, ecx
sub eax, edi
sar eax, 2
cmp esi, eax
jb 0x520fab
call fcn.0057803b
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + edi]
mov dword [esp + 0x20], edx
jmp 0x520fbc
mov dword [esp + 0x20], eax
test edi, edi
je 0x520fc9
sub ecx, edi
sar ecx, 2
cmp esi, ecx
jb 0x520fd2
call fcn.0057803b
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [ecx + edi], eax
cmp dword [ebx + 0x18], 0
je 0x52115a
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x521002
mov eax, dword [esp + 0x8c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x52100e
call fcn.0057803b
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x24]
mov dword [edx + ecx], 1
jmp 0x52115a
test eax, eax
mov dword [esp + 0x14], 0
jle 0x5210bb
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0xa4]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x1c], eax
test edi, edi
je 0x521059
mov eax, dword [esp + 0x6c]
sub eax, edi
sar eax, 2
cmp ebx, eax
jb 0x521069
call fcn.0057803b
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esi + edi]
mov eax, dword [esp + 0x20]
add dword [esp + 0x14], edx
cmp dword [eax + 0x18], 0
je 0x5210ae
mov eax, dword [esp + 0x88]
test eax, eax
je 0x521090
sub ecx, eax
sar ecx, 2
mov eax, ecx
cmp ebx, eax
jb 0x521095
call fcn.0057803b
mov ecx, dword [esp + 0x88]
mov dword [esi + ecx], 1
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0x68]
add esi, 4
add ebx, 1
sub dword [esp + 0x1c], 1
jne 0x521048
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
cmp edx, dword [eax + 8]
jge 0x52115e
mov ecx, eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0x10]
sub eax, edx
cdq
idiv ecx
test edi, edi
mov ebx, eax
je 0x5210f8
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0xa4]
sub eax, edi
sar eax, 2
lea edx, [ecx + edx - 1]
cmp edx, eax
jb 0x521105
call fcn.0057803b
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
sub eax, dword [esp + 0x14]
xor esi, esi
cdq
idiv ecx
mov eax, dword [esp + 0x48]
add dword [eax + edi], edx
test ecx, ecx
jle 0x52115a
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x68]
test eax, eax
je 0x521142
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0xa4]
sub ecx, eax
sar ecx, 2
add edx, esi
cmp edx, ecx
jb 0x52114b
call fcn.0057803b
mov eax, dword [esp + 0x68]
add dword [edi + eax], ebx
add esi, 1
add edi, 4
cmp esi, dword [esp + 0x10]
jl 0x521124
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0xa4]
add dword [esp + 0x4c], 0x1c
mov eax, 4
add dword [esp + 0x24], eax
add dword [esp + 0x48], eax
add esi, 1
cmp esi, dword [esp + 0x2c]
mov dword [esp + 0xa4], esi
jl 0x520f10
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
add dword [esp + 0x28], 0x10
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x50], eax
jl 0x520eb0
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
jle 0x520e90
mov esi, dword [esp + 0x78]
mov edx, 1
cmp dword [esp + 0x30], edx
mov dword [esp + 0x10], edx
jl 0x521454
jmp 0x5211e0
cmp dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
jle 0x52143b
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], eax
lea ecx, [ecx]
test ecx, ecx
je 0x521213
mov eax, dword [esp + 0x5c]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x24], eax
jb 0x521220
call fcn.0057803b
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x4c]
add eax, ecx
cmp dword [esp + 0x2c], 0
mov dword [esp + 0xa8], eax
mov dword [esp + 0x50], 0
jle 0x52141c
mov dword [esp + 0x48], 0
jmp 0x521250
mov edi, dword [esp + 0xa8]
mov eax, dword [edi + 4]
test eax, eax
je 0x52127c
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x50], eax
jb 0x521285
call fcn.0057803b
mov esi, dword [esp + 0x78]
mov edi, dword [edi + 4]
add edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
cmp dword [edi + 4], ecx
mov dword [esp + 0x28], edi
jne 0x5213fe
cmp ecx, 1
jne 0x521323
test esi, esi
mov ebx, dword [esp + 0x24]
je 0x5212bd
mov ecx, dword [esp + 0x7c]
mov eax, ecx
sub eax, esi
sar eax, 2
cmp ebx, eax
jb 0x5212ca
call fcn.0057803b
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x14]
mov edx, dword [esp + 0x14]
cmp dword [edx + esi], eax
jle 0x5212ff
test esi, esi
je 0x5212e9
mov eax, ecx
sub eax, esi
sar eax, 2
cmp ebx, eax
jb 0x5212f6
call fcn.0057803b
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x14]
mov edi, dword [eax + esi]
jmp 0x521301
mov edi, eax
test esi, esi
je 0x52130e
sub ecx, esi
sar ecx, 2
cmp ebx, ecx
jb 0x521317
call fcn.0057803b
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
mov dword [ecx + esi], edi
jmp 0x5213fa
mov ecx, dword [esp + 0x10]
xor ebx, ebx
xor edi, edi
test ecx, ecx
jle 0x521370
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
test esi, esi
je 0x52134e
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
sub eax, esi
sar eax, 2
add edx, edi
cmp edx, eax
jb 0x52135b
call fcn.0057803b
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add ebx, dword [eax + esi]
add edi, 1
add eax, 4
cmp edi, ecx
mov dword [esp + 0x1c], eax
jl 0x521337
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x14]
cmp ebx, eax
jge 0x5213fe
sub eax, ebx
cdq
idiv ecx
test esi, esi
mov dword [esp + 0x1c], eax
je 0x52139b
mov eax, dword [esp + 0x7c]
sub eax, esi
sar eax, 2
cmp dword [esp + 0x24], eax
jb 0x5213a8
call fcn.0057803b
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x14]
sub eax, ebx
cdq
idiv ecx
mov eax, dword [esp + 0x14]
add dword [eax + esi], edx
xor esi, esi
test ecx, ecx
jle 0x5213fa
mov edi, eax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x5213de
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 2
add edx, esi
cmp edx, ecx
jb 0x5213e7
call fcn.0057803b
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x1c]
add dword [edi + eax], ecx
add esi, 1
add edi, 4
cmp esi, dword [esp + 0x10]
jl 0x5213c3
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x50]
add dword [esp + 0x48], 0x1c
add eax, 1
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
jl 0x521250
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x24]
add dword [esp + 0x4c], 0x10
add dword [esp + 0x14], 4
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
jl 0x521200
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
jle 0x5211e0
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xa8]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [ebp + 8]
lea ecx, [eax + ecx - 1]
add dword [ebx], ecx
mov ecx, dword [esp + 0x30]
lea eax, [eax + ecx - 1]
add dword [ebx + 4], eax
xor eax, eax
cmp dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
jle 0x5214c0
test edi, edi
je 0x521493
mov ecx, dword [esp + 0x6c]
sub ecx, edi
sar ecx, 2
cmp eax, ecx
jb 0x5214a4
call fcn.0057803b
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + eax*4]
add ecx, dword [edx + 0xa8]
add eax, 1
add dword [ebx], ecx
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
jl 0x521482
mov esi, dword [esp + 0x78]
xor edi, edi
cmp dword [esp + 0x30], edi
jle 0x5214fb
test esi, esi
je 0x5214d9
mov eax, dword [esp + 0x7c]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x5214e6
call fcn.0057803b
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + edi*4]
add eax, dword [edx + 0xa8]
add edi, 1
add dword [ebx + 4], eax
cmp edi, dword [esp + 0x30]
jl 0x5214c8
cmp dword [edx + 0x88], 6
mov eax, dword [edx + 0x8c]
jne 0x52150d
lea eax, [eax + eax*2]
add eax, eax
add dword [ebx], eax
add dword [ebx + 4], eax
jmp 0x521532
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov eax, dword [edx + 8]
test eax, eax
je 0x52154a
mov edx, dword [edx + 0xc]
sub edx, eax
sar edx, 6
cmp dword [esp + 0xc0], edx
jb 0x52154f
call fcn.0057803b
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx + 8]
add edi, dword [esp + 0xc4]
lea esi, [esp + 0x54]
mov eax, edi
call fcn.00529640
lea edx, [edi + 0x10]
push edx
lea ebx, [esp + 0x68]
call fcn.005298b0
lea eax, [edi + 0x20]
push eax
lea ebx, [esp + 0x78]
call fcn.005298b0
add edi, 0x30
push edi
lea ebx, [esp + 0x88]
call fcn.005298b0
mov ecx, dword [esp + 0xb8]
push 5
push str.table
call fcn.00402270
mov edi, dword [esp + 0x18]
push 1
call fcn.005249c0
test eax, eax
je 0x5215bb
mov esi, edi
call fcn.00524bf0
mov byte [esp + 0x138], 4
mov eax, dword [esp + 0xb0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5215e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 2
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52160e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x13c], 0xffffffff
call fcn.005216a0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc