Function at 0x516320
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov eax, dword [esi + 0x58]
mov edi, dword [esi]
cmp eax, 0xbdf20da3
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x70], ebx
je 0x516358
mov eax, 0x15
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x90], ebx
mov dword [esp + 0xc], eax
mov eax, dword [0x6034c4]
cmp eax, ebx
jne 0x51a03b
mov eax, dword [esi + 0x23c]
cmp eax, ebx
je 0x516390
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.0051a490
add esp, 8
mov dword [esi + 0x23c], ebx
mov byte [esi + 0x244], 0
mov al, byte [edi + 8]
test al, 4
mov dword [edi + 0xc4], ebx
jne 0x51a070
mov edi, dword [esi + 0x8c]
mov dword [esp + 0x1c], edi
jmp 0x5163b8
mov edi, dword [esp + 0x1c]
mov eax, dword [0x6034c4]
test eax, eax
jne 0x51a03b
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [edi + edi*4]
lea ebx, [eax + edx*4]
mov eax, dword [ecx + 0x84]
test eax, eax
je 0x516411
mov edx, dword [esp + 0x70]
cmp dword [ecx + 0x8c], edx
jne 0x51640d
mov ecx, dword [ecx + 0x88]
push ecx
call eax
add esp, 4
test eax, eax
je 0x516405
mov dword [esp + 0x10], 4
jmp case.0x51642c.14
mov dword [esp + 0x70], 0
inc dword [esp + 0x70]
mov al, byte [ebx]
mov ecx, eax
and ecx, 0xff
mov dword [esp + 0x18], ecx
dec ecx
cmp ecx, 0x82
ja case.0x51642c.14
jmp dword [ecx*4 + 0x51a128]
mov edx, dword [esp + 0x14]
test byte [edx + 8], 4
jne 0x51a070
mov ebx, dword [ebx + 8]
dec ebx
mov dword [esp + 0x1c], ebx
jmp case.0x51642c.14
mov eax, dword [esi + 0x230]
inc edi
mov dword [esi + eax*4 + 0xa0], edi
mov ecx, dword [esi + 0x230]
inc ecx
mov dword [esi + 0x230], ecx
mov ecx, dword [ebx + 8]
dec ecx
mov dword [esp + 0x1c], ecx
jmp case.0x51642c.14
mov ecx, dword [esi + 0x230]
dec ecx
mov eax, ecx
mov dword [esi + 0x230], ecx
mov esi, dword [esi + eax*4 + 0xa0]
dec esi
mov dword [esp + 0x1c], esi
jmp case.0x51642c.14
mov eax, dword [esp + 0xc]
add eax, 0x40
mov dword [esp + 0xc], eax
mov word [eax + 0xc], 4
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0xc]
cdq
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov dword [eax + 4], edx
jmp case.0x51642c.14
mov eax, dword [esp + 0xc]
add eax, 0x40
mov dword [esp + 0xc], eax
mov word [eax + 0xc], 0xa2
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 0xc]
xor eax, eax
mov dword [edx + 0x18], ecx
mov edx, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, dword [edx + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [edx + 8], ecx
mov eax, dword [esp + 0xc]
mov byte [eax + 0xf], 1
mov ecx, dword [esp + 0xc]
push ecx
call fcn.005158c0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov dword [eax + 4], edx
mov eax, dword [esp + 0xc]
or byte [eax + 0xc], 4
jmp case.0x51642c.14
mov eax, dword [esp + 0xc]
add eax, 0x40
mov dword [esp + 0xc], eax
mov word [eax + 0xc], 0xa2
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 0xc]
xor eax, eax
mov dword [edx + 0x18], ecx
mov edx, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, dword [edx + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [edx + 8], ecx
mov eax, dword [esp + 0xc]
mov byte [eax + 0xf], 1
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00515970
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
fstp qword [edx + 0x10]
mov eax, dword [esp + 0x10]
or byte [eax + 0xc], 8
mov edx, dword [esp + 0x10]
xor eax, eax
mov al, byte [ecx + 0x10]
push eax
push edx
call fcn.00515620
add esp, 0xc
jmp case.0x51642c.14
mov esi, dword [esp + 0x14]
mov byte [ebx], 0x1b
cmp byte [esi + 0x10], 1
je 0x516621
mov eax, dword [esp + 0xc]
push 0
add eax, 0x40
push 1
mov dword [esp + 0x14], eax
mov ecx, dword [ebx + 0xc]
push 0xffffffffffffffff
push ecx
push eax
call fcn.00515b90
mov eax, dword [esp + 0x20]
xor edx, edx
mov dl, byte [esi + 0x10]
push edx
push eax
call fcn.00515620
add esp, 0x1c
test eax, eax
jne 0x51a03b
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00515670
add esp, 4
test eax, eax
jne 0x51a03b
mov eax, dword [esp + 0xc]
or esi, 0xffffffff
and word [eax + 0xc], 0xffbf
mov eax, dword [esp + 0xc]
or byte [eax + 0xc], 0x80
mov eax, dword [ebx + 0x10]
cmp eax, esi
jne 0x51660b
mov edx, dword [ebx + 0xc]
push edx
call fcn.005148c0
add esp, 4
mov dword [ebx + 0x10], esi
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x18]
mov dword [ebx + 0xc], ecx
jmp case.0x51642c.14
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
add eax, 0x40
mov dword [esp + 0xc], eax
mov word [eax + 0xc], 0xa2
mov eax, dword [esp + 0xc]
mov edx, dword [ebx + 0xc]
mov dword [eax + 0x18], edx
mov al, byte [esi + 0x10]
cmp al, 1
jne 0x51666a
mov edx, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov edi, dword [edx + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [edx + 8], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov al, byte [edx + 0x10]
mov byte [ecx + 0xf], al
jmp case.0x51642c.14
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
mov edx, dword [ecx + 0x18]
push edx
call fcn.0052a770
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0xc]
mov al, byte [edx + 0x10]
mov byte [ecx + 0xf], al
jmp case.0x51642c.14
mov edx, dword [ebx + 0xc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
mov byte [ebx], 0x7c
repne scasb al, byte es:[edi]
not ecx
dec ecx
shr ecx, 1
mov dword [ebx + 4], ecx
je 0x5166e0
push edx
call fcn.00515560
mov esi, eax
add esp, 4
test esi, esi
je 0x51a03b
mov eax, dword [ebx + 0x10]
or edi, 0xffffffff
cmp eax, edi
jne 0x5166d8
mov edx, dword [ebx + 0xc]
push edx
call fcn.005148c0
add esp, 4
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], edi
jmp case.0x51642c.124
cmp dword [ebx + 0x10], 0xffffffff
jne 0x5166ef
push edx
call fcn.005148c0
add esp, 4
mov dword [ebx + 0x10], 0xfffffffe
mov dword [ebx + 0xc], 0x5cce54
mov eax, dword [esp + 0xc]
push 0
add eax, 0x40
push 0
mov dword [esp + 0x14], eax
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0xc]
push ecx
push edx
push eax
call fcn.00515b90
add esp, 0x14
jmp case.0x51642c.14
mov ebx, dword [ebx + 4]
mov edi, dword [esi + 0x4c]
mov eax, dword [esp + 0xc]
dec ebx
shl ebx, 6
add ebx, edi
add eax, 0x40
push 0x80
push ebx
push eax
mov dword [esp + 0x18], eax
call fcn.00515ab0
add esp, 0xc
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.0051a490
add esp, 8
jmp case.0x51642c.14
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0xc]
shl edx, 6
mov eax, ecx
add ecx, 0x40
sub eax, edx
push 0x100
push eax
push ecx
mov dword [esp + 0x18], ecx
call fcn.00515ab0
mov eax, dword [ebx + 8]
add esp, 0xc
test eax, eax
je case.0x51642c.14
mov eax, dword [esp + 0xc]
test byte [eax + 0xd], 1
je case.0x51642c.14
push eax
call fcn.005156e0
add esp, 4
test eax, eax
jne 0x51a03b
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
lea edi, [esp + 0x2f0]
shl eax, 6
mov ecx, eax
mov eax, dword [esp + 0xc]
mov esi, eax
sub esi, ecx
mov ecx, 0x10
test byte [eax + 0xd], 1
mov dword [esp + 0x24], esi
rep movsd dword es:[edi], dword [esi]
je 0x5167f1
mov edx, eax
push edx
call fcn.005156e0
add esp, 4
test eax, eax
jne 0x51a03b
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x516865
mov eax, dword [esp + 0x24]
add eax, 0x40
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
test byte [eax + 0xd], 1
je 0x516826
push eax
call fcn.005156e0
add esp, 4
test eax, eax
jne 0x51a03b
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ecx, 0x10
mov esi, eax
rep movsd dword es:[edi], dword [esi]
test byte [eax - 0x33], 2
je 0x516843
lea ecx, [eax - 0x20]
mov dword [eax - 0x28], ecx
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
add eax, 0x40
inc ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 4]
add esi, 0x40
cmp ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], esi
jl 0x51680b
mov edi, dword [esp + 0xc]
mov ecx, 0x10
lea esi, [esp + 0x2f0]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0xc]
test byte [edx + 0xd], 2
je case.0x51642c.14
mov eax, edx
lea ecx, [eax + 0x20]
mov dword [eax + 0x18], ecx
jmp case.0x51642c.14
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0xc]
shl edx, 6
push eax
sub eax, edx
push eax
call fcn.00515b30
mov eax, dword [esp + 0x14]
add esp, 8
sub eax, 0x40
mov dword [esp + 0xc], eax
jmp case.0x51642c.14
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0xc]
add esi, 2
mov eax, esi
mov dword [esp + 0x40], esi
shl eax, 6
mov dword [esp + 0x28], eax
sub edi, eax
xor eax, eax
add edi, 0x40
cmp esi, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
jle 0x516959
mov ax, word [edi + 0xc]
test al, 1
jne 0x51692e
test al, 0x12
jne 0x516909
mov ecx, dword [esp + 0x14]
xor eax, eax
mov al, byte [ecx + 0x10]
push eax
push edi
call fcn.00515800
add esp, 8
test eax, eax
jne 0x51a03b
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x24]
add eax, edx
add edi, 0x40
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
inc eax
cmp eax, esi
mov dword [esp + 0x18], eax
jl 0x5168e2
mov eax, dword [esp + 0x24]
test eax, eax
jge 0x516959
mov eax, dword [ebx + 8]
test eax, eax
jne case.0x51642c.123
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0051a490
add esp, 8
mov eax, dword [esp + 0xc]
add eax, 0x40
mov dword [esp + 0xc], eax
mov word [eax + 0xc], 1
jmp case.0x51642c.14
mov ecx, dword [esp + 0x24]
add ecx, 2
push ecx
call fcn.00514890
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x51a03b
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x28]
sub eax, edi
mov dword [esp + 0x24], 0
add eax, 0x40
test esi, esi
jle 0x5169d0
add eax, 0x18
mov dword [esp + 0x18], esi
mov ecx, dword [eax - 0x10]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov esi, dword [eax]
mov dword [esp + 0x28], ecx
add edi, edx
mov edx, ecx
add eax, 0x40
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
mov ecx, edx
add esi, ecx
mov ecx, dword [esp + 0x18]
dec ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], ecx
jne 0x516995
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov byte [edi + esi], 0
mov byte [edi + esi + 1], 0
mov eax, dword [ebx + 8]
test eax, eax
jne 0x5169fa
mov edx, dword [esp + 0x40]
lea eax, [esp + 0xc]
push edx
push eax
call fcn.0051a490
add esp, 8
mov eax, dword [esp + 0xc]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [eax + 8], edi
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov word [ecx + 0xc], 0x62
mov edx, dword [esp + 0xc]
mov dword [edx + 0x1c], 0
mov edx, dword [esp + 0xc]
mov cl, byte [eax + 0x10]
mov byte [edx + 0xf], cl
mov eax, dword [esp + 0xc]
mov dword [eax + 0x18], esi
jmp case.0x51642c.14
mov edi, dword [esp + 0xc]
mov cx, word [edi + 0xc]
mov ax, word [edi - 0x34]
lea esi, [edi - 0x40]
mov dl, cl
or dl, al
test dl, 1
je 0x516a86
test cl, 0x40
je 0x516a61
push edi
call fcn.00515870
mov edi, dword [esp + 0x10]
add esp, 4
sub edi, 0x40
mov dword [esp + 0xc], edi
test byte [edi + 0xc], 0x40
je 0x516a7b
push edi
call fcn.00515870
mov edi, dword [esp + 0x10]
add esp, 4
mov word [edi + 0xc], 1
jmp case.0x51642c.14
and cl, al
and cl, 4
cmp cl, 4
jne 0x516b45
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
add edx, 0xffffffad
cmp edx, 3
ja case.default.0x516aae
jmp dword [edx*4 + 0x51a334]
add edi, eax
adc ebx, ecx
jmp 0x516af8
sub edi, eax
sbb ebx, ecx
jmp 0x516af8
push ecx
push eax
push ebx
push edi
call fcn.005048c0
jmp 0x516af4
mov edx, eax
or edx, ecx
je 0x516bc8
push ecx
push eax
push ebx
push edi
call fcn.00504b40
jmp 0x516af4
mov edx, eax
or edx, ecx
je 0x516bc8
push ecx
push eax
push ebx
push edi
call fcn.00504bf0
mov edi, eax
mov ebx, edx
mov eax, dword [esp + 0xc]
test byte [eax + 0xc], 0x40
je 0x516b0d
mov ecx, eax
push ecx
call fcn.00515870
add esp, 4
mov eax, dword [esp + 0xc]
sub eax, 0x40
mov dword [esp + 0xc], eax
test byte [eax + 0xc], 0x40
je 0x516b29
mov edx, eax
push edx
call fcn.00515870
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [eax], edi
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], ebx
mov edx, dword [esp + 0xc]
mov word [edx + 0xc], 4
jmp case.0x51642c.14
push edi
call fcn.00515970
fstp qword [esp + 0x3c]
push esi
call fcn.00515970
xor eax, eax
add esp, 8
mov al, byte [ebx]
add eax, 0xffffffad
cmp eax, 3
ja case.default.0x516b64
jmp dword [eax*4 + 0x51a344]
fadd qword [esp + 0x38]
jmp 0x516c15
fsub qword [esp + 0x38]
jmp 0x516c15
fmul qword [esp + 0x38]
jmp 0x516c15
fld qword [esp + 0x38]
fcomp qword [0x58e2b8]
fnstsw ax
test ah, 0x40
jne 0x516bc6
fdiv qword [esp + 0x38]
jmp 0x516c15
fld qword [esp + 0x38]
call fcn.00504118
mov esi, eax
mov dword [esp + 0x18], esi
call fcn.00504118
fild dword [esp + 0x18]
mov ecx, eax
fcomp qword [0x58e2b8]
fnstsw ax
test ah, 0x40
je 0x516c08
jmp 0x516bc8
fstp st(0)
mov eax, dword [esp + 0xc]
test byte [eax + 0xc], 0x40
je 0x516bdf
push eax
call fcn.00515870
mov eax, dword [esp + 0x10]
add esp, 4
sub eax, 0x40
mov dword [esp + 0xc], eax
test byte [eax + 0xc], 0x40
je 0x51694e
push eax
call fcn.00515870
mov eax, dword [esp + 0x10]
add esp, 4
mov word [eax + 0xc], 1
jmp case.0x51642c.14
mov eax, ecx
cdq
idiv esi
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
mov eax, dword [esp + 0xc]
fstp qword [esp + 0x38]
test byte [eax + 0xc], 0x40
je 0x516c30
push eax
call fcn.00515870
mov eax, dword [esp + 0x10]
add esp, 4
sub eax, 0x40
mov dword [esp + 0xc], eax
test byte [eax + 0xc], 0x40
je 0x516c4a
push eax
call fcn.00515870
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0xc]
mov word [eax + 0xc], 8
jmp case.0x51642c.14
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, esi
shl eax, 6
mov edx, dword [ecx + 0x30]
sub edi, eax
add edi, 0x40
mov dword [esp + 0x20], esi
test esi, esi
mov dword [esp + 0x28], edx
jle 0x516cb4
mov ecx, dword [esp + 0x20]
mov esi, edx
mov dword [esp + 0x18], ecx
push edi
mov dword [esi], edi
call fcn.0051a380
mov eax, dword [esp + 0x1c]
add esp, 4
add esi, 4
add edi, 0x40
dec eax
mov dword [esp + 0x18], eax
jne 0x516c94
mov esi, dword [esp + 0x20]
mov eax, dword [ebx + 0x10]
xor ecx, ecx
cmp eax, 0xfffffffb
mov eax, dword [ebx + 0xc]
jne 0x516cd1
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
jmp 0x516ce1
mov dword [esp + 0x114], eax
mov eax, dword [eax]
mov dword [esp + 0x110], eax
mov word [esp + 0x124], 1
mov dword [esp + 0x130], ecx
mov dword [esp + 0x134], ecx
mov byte [esp + 0x15c], 0
mov cl, byte [eax + 3]
test cl, cl
je 0x516d12
mov edx, dword [ebx - 8]
mov dword [esp + 0x164], edx
mov eax, dword [esp + 0x14]
push eax
call fcn.00515230
add esp, 4
test eax, eax
jne 0x51a0ae
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x110]
push ecx
lea edx, [esp + 0x114]
push esi
push edx
call dword [eax + 0x10]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005151f0
add esp, 0x10
test eax, eax
jne 0x51a0ae
mov eax, dword [0x6034c4]
test eax, eax
jne 0x51a03b
lea edx, [esp + 0xc]
push esi
push edx
call fcn.0051a490
mov eax, dword [esp + 0x11c]
add esp, 8
test eax, eax
je 0x516d98
mov ecx, dword [ebx + 8]
push ecx
push eax
call fcn.0051bbc0
mov edx, dword [esp + 0x11c]
add esp, 8
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], 0xfffffff9
mov ecx, dword [esp + 0x14]
xor eax, eax
lea edx, [esp + 0x118]
mov al, byte [ecx + 0x10]
push eax
push edx
call fcn.00515620
mov eax, dword [esp + 0x14]
add eax, 0x40
mov dword [esp + 0x14], eax
mov word [eax + 0xc], 0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x120]
push eax
push ecx
call fcn.00515b30
mov al, byte [esp + 0x16c]
add esp, 0x10
test al, al
je case.0x51642c.14
mov eax, dword [esp + 0xc]
push 0
test byte [eax + 0xc], 2
jne 0x516e14
mov edx, dword [ebp + 8]
push 0x5ca044
add edx, 0x240
push edx
call fcn.005149b0
add esp, 0xc
mov dword [esp + 0x10], 1
jmp case.0x51642c.14
push eax
call fcn.005130b0
add esp, 4
push eax
mov eax, dword [ebp + 8]
add eax, 0x240
push eax
call fcn.005149b0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov cl, byte [edx + 0x10]
push ecx
push eax
call fcn.00515620
add esp, 0x14
mov dword [esp + 0x10], 1
jmp case.0x51642c.14
mov esi, dword [esp + 0xc]
mov cl, byte [esi - 0x34]
mov dl, byte [esi + 0xc]
lea eax, [esi - 0x40]
or cl, dl
test cl, 1
je 0x516e70
lea edx, [esp + 0xc]
push 2
push edx
jmp 0x51693b
push eax
call fcn.005158c0
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call fcn.005158c0
xor ecx, ecx
add esp, 8
mov cl, byte [ebx]
lea edx, [ecx - 0x4f]
cmp edx, 3
ja case.default.0x516e91
jmp dword [edx*4 + 0x51a354]
and edi, eax
jmp case.default.0x516e91
or edi, eax
jmp case.default.0x516e91
mov ecx, eax
shl edi, cl
jmp case.default.0x516e91
mov ecx, eax
sar edi, cl
mov ecx, dword [esp + 0xc]
test byte [ecx + 0xc], 0x40
je 0x516ec1
push ecx
call fcn.00515870
mov ecx, dword [esp + 0x10]
add esp, 4
sub ecx, 0x40
mov dword [esp + 0xc], ecx
test byte [ecx + 0xc], 0x40
je 0x516edb
push ecx
call fcn.00515870
mov ecx, dword [esp + 0x10]
add esp, 4
mov eax, edi
cdq
mov dword [ecx], eax
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0xc]
mov word [edx + 0xc], 4
jmp case.0x51642c.14
mov eax, dword [esp + 0xc]
push eax
call fcn.00515940
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
cdq
mov esi, dword [ecx]
add esp, 4
add esi, eax
mov dword [ecx], esi
mov eax, dword [esp + 0xc]
adc dword [eax + 4], edx
jmp case.0x51642c.14
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov dl, byte [ecx + 0x10]
push edx
push 0x69
push eax
call fcn.00516260
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov ax, word [ecx + 0xc]
test al, 0xc
jne 0x516f65
test al, 0x40
je 0x516f4d
push ecx
call fcn.00515870
add esp, 4
mov ecx, dword [esp + 0xc]
sub ecx, 0x40
mov dword [esp + 0xc], ecx
mov ebx, dword [ebx + 8]
dec ebx
mov dword [esp + 0x1c], ebx
jmp case.0x51642c.14
test al, 4
je 0x516f87
mov esi, dword [ebx + 4]
xor eax, eax
test esi, esi
setne al
cdq
mov edi, eax
mov eax, dword [esp + 0xc]
mov esi, edx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
add edi, edx
adc esi, ecx
jmp 0x516ffe
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00515a00
mov edx, dword [esp + 0x10]
add esp, 4
fld qword [edx + 0x10]
call fcn.00504118
cdq
mov edi, eax
mov eax, dword [esp + 0xc]
mov esi, edx
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], esi
fild qword [esp + 0xa0]
fcomp qword [eax + 0x10]
fnstsw ax
test ah, 1
je 0x516fdc
add edi, 1
adc esi, 0
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], esi
mov eax, dword [ebx + 4]
test eax, eax
je 0x516ffe
fild qword [esp + 0xa0]
mov ecx, dword [esp + 0xc]
fcomp qword [ecx + 0x10]
fnstsw ax
test ah, 0x40
je 0x516ffe
add edi, 1
adc esi, 0
mov edx, dword [esp + 0xc]
test byte [edx + 0xc], 0x40
je 0x517013
mov eax, edx
push eax
call fcn.00515870
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [ecx], edi
mov edx, dword [esp + 0xc]
mov dword [edx + 4], esi
mov eax, dword [esp + 0xc]
mov word [eax + 0xc], 4
jmp case.0x51642c.14
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov dl, byte [ecx + 0x10]
push edx
push 0x69
push eax
call fcn.00516260
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov ax, word [ecx + 0xc]
test al, 4
jne 0x517080
mov eax, dword [ebx + 8]
test eax, eax
je 0x519f51
mov eax, dword [ebx + 4]
test eax, eax
je 0x517073
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.0051a490
add esp, 8
mov ebx, dword [ebx + 8]
dec ebx
mov dword [esp + 0x1c], ebx
jmp case.0x51642c.14
test al, 0x40
je 0x519272
push ecx
call fcn.00515870
mov ecx, dword [esp + 0x10]
add esp, 4
mov word [ecx + 0xc], 4
jmp case.0x51642c.14
mov edx, dword [esp + 0xc]
mov ax, word [edx + 0xc]
test al, 1
jne case.0x51642c.14
mov cl, al
shr cl, 3
and ecx, 2
or ecx, eax
mov eax, dword [esp + 0x14]
mov word [edx + 0xc], cx
mov edx, dword [esp + 0xc]
mov cl, byte [eax + 0x10]
push ecx
push 0x69
push edx
call fcn.00516260
mov eax, dword [esp + 0x18]
push eax
call fcn.00515940
add esp, 0x10
jmp case.0x51642c.14
mov ecx, dword [esp + 0xc]
mov ax, word [ecx + 0xc]
test al, 1
jne case.0x51642c.14
mov dl, al
shr dl, 3
and edx, 2
or edx, eax
mov eax, ecx
mov ecx, dword [esp + 0x14]
mov word [eax + 0xc], dx
mov eax, dword [esp + 0xc]
mov dl, byte [ecx + 0x10]
push edx
push 0x6e
push eax
call fcn.00516260
mov eax, dword [esp + 0x18]
add esp, 0xc
mov cl, byte [eax + 0xc]
push eax
test cl, 0xc
jne 0x51713e
call fcn.00515a00
mov eax, dword [esp + 0x10]
add esp, 4
and word [eax + 0xc], 0xc
jmp case.0x51642c.14
call fcn.00515870
mov eax, dword [esp + 0x10]
add esp, 4
and word [eax + 0xc], 0xc
jmp case.0x51642c.14
mov ecx, dword [esp + 0xc]
mov ax, word [ecx + 0xc]
test al, 1
jne case.0x51642c.14
mov dl, al
shr dl, 3
and edx, 2
or edx, eax
mov eax, ecx
mov ecx, dword [esp + 0x14]
mov word [eax + 0xc], dx
mov eax, dword [esp + 0xc]
mov dl, byte [ecx + 0x10]
push edx
push 0x74
push eax
call fcn.00516260
mov eax, dword [esp + 0x18]
add esp, 0xc
and word [eax + 0xc], 0xffe3
jmp case.0x51642c.14
mov ecx, dword [esp + 0xc]
mov ax, word [ecx + 0xc]
test al, 1
jne case.0x51642c.14
test al, 0x10
jne 0x5171c9
mov edx, dword [esp + 0x14]
mov al, byte [edx + 0x10]
push eax
push 0x74
push ecx
call fcn.00516260
mov eax, dword [esp + 0x18]
add esp, 0xc
or byte [eax + 0xc], 0x10
mov eax, dword [esp + 0xc]
and word [eax + 0xc], 0xfff1
jmp case.0x51642c.14
mov eax, dword [esp + 0xc]
mov dl, byte [eax - 0x34]
mov cl, byte [eax + 0xc]
lea esi, [eax - 0x40]
or dl, cl
test dl, 1
je 0x51721c
lea eax, [esp + 0xc]
push 2
push eax
call fcn.0051a490
mov eax, dword [ebx + 8]
add esp, 8
test eax, eax
je case.0x51642c.123
mov ecx, dword [ebx + 4]
test ch, 1
je case.0x51642c.14
dec eax
mov dword [esp + 0x1c], eax
jmp case.0x51642c.14
mov cl, byte [ebx + 4]
test cl, cl
mov byte [esp + 0xc4], cl
je 0x51725a
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0xc4]
mov dl, byte [ecx + 0x10]
push edx
push edi
push esi
call fcn.00516260
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov cl, byte [eax + 0x10]
push ecx
push edi
push edx
call fcn.00516260
mov eax, dword [esp + 0x24]
add esp, 0x18
mov ecx, dword [ebx + 0xc]
push ecx
push eax
push esi
call fcn.00515c90
xor ecx, ecx
add esp, 0xc
mov cl, byte [ebx]
add ecx, 0xffffffb8
cmp ecx, 4
ja case.default.0x517274
jmp dword [ecx*4 + 0x51a364]
xor edx, edx
test eax, eax
sete dl
mov edi, edx
jmp 0x5172b7
xor ecx, ecx
test eax, eax
setne cl
jmp 0x5172b5
xor edx, edx
test eax, eax
setl dl
mov edi, edx
jmp 0x5172b7
xor ecx, ecx
test eax, eax
setle cl
jmp 0x5172b5
xor edx, edx
test eax, eax
setg dl
mov edi, edx
jmp 0x5172b7
xor ecx, ecx
test eax, eax
setge cl
mov edi, ecx
lea edx, [esp + 0xc]
push 2
push edx
call fcn.0051a490
mov ebx, dword [ebx + 8]
add esp, 8
test ebx, ebx
je 0x5172df
test edi, edi
je case.0x51642c.14
dec ebx
mov dword [esp + 0x1c], ebx
jmp case.0x51642c.14
mov eax, dword [esp + 0xc]
add eax, 0x40
mov dword [esp + 0xc], eax
mov word [eax + 0xc], 4
mov ecx, dword [esp + 0xc]
mov eax, edi
cdq
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov dword [eax + 4], edx
jmp case.0x51642c.14
mov eax, dword [esp + 0xc]
mov cl, byte [eax + 0xc]
lea edi, [eax - 0x40]
test cl, 1
je 0x51731b
mov esi, 2
jmp 0x51733a
push eax
call fcn.00515940
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, dword [eax]
mov edx, dword [eax + 4]
or ecx, edx
jne 0x517338
mov esi, 1
jmp 0x51733a
xor esi, esi
test byte [edi + 0xc], 1
je 0x517347
mov eax, 2
jmp 0x517362
push edi
call fcn.00515940
mov edx, dword [edi]
mov eax, dword [edi + 4]
add esp, 4
or edx, eax
jne 0x517360
mov eax, 1
jmp 0x517362
xor eax, eax
cmp byte [ebx], 0x41
jne 0x517377
lea eax, [eax + esi*2]
xor ecx, ecx
mov cl, byte [esi + eax + 0x5993d0]
mov edi, ecx
jmp 0x517385
lea edx, [eax + esi*2]
xor eax, eax
mov al, byte [esi + edx + 0x5993dc]
mov edi, eax
lea ecx, [esp + 0xc]
push 2
push ecx
call fcn.0051a490
mov ecx, dword [esp + 0x14]
add esp, 8
add ecx, 0x40
cmp edi, 2
mov dword [esp + 0xc], ecx
jne 0x5173af
mov word [ecx + 0xc], 1
jmp case.0x51642c.14
xor eax, eax
test edi, edi
sete al
jmp 0x519264
mov ecx, dword [esp + 0xc]
mov ax, word [ecx + 0xc]
test al, 8
je 0x517404
test al, 0x40
je 0x5173d8
push ecx
call fcn.00515870
mov ecx, dword [esp + 0x10]
add esp, 4
cmp byte [ebx], 0x59
je 0x5173ed
fld qword [ecx + 0x10]
fcomp qword [0x58e2b8]
fnstsw ax
test ah, 1
je 0x5173f9
fld qword [ecx + 0x10]
fchs
fstp qword [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov word [ecx + 0xc], 8
jmp case.0x51642c.14
test al, 4
je 0x517450
test al, 0x40
je 0x517419
push ecx
call fcn.00515870
mov ecx, dword [esp + 0x10]
add esp, 4
cmp byte [ebx], 0x59
je 0x51742c
mov eax, dword [ecx + 4]
test eax, eax
jg 0x517445
jl 0x51742c
cmp dword [ecx], 0
jae 0x517445
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
neg edx
adc eax, 0
mov dword [ecx], edx
mov ecx, dword [esp + 0xc]
neg eax
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0xc]
mov word [ecx + 0xc], 4
jmp case.0x51642c.14
test al, 1
jne case.0x51642c.14
mov edx, dword [esp + 0xc]
push edx
call fcn.00515a00
mov al, byte [ebx]
mov ecx, dword [esp + 0x10]
add esp, 4
cmp al, 0x59
je 0x5173ed
fld qword [ecx + 0x10]
fcomp qword [0x58e2b8]
fnstsw ax
test ah, 1
je 0x5173f9
jmp 0x5173ed
mov eax, dword [esp + 0xc]
test byte [eax + 0xc], 1
jne case.0x51642c.14
mov ecx, eax
push ecx
call fcn.00515940
mov ecx, dword [esp + 0x10]
add esp, 4
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
or edx, eax
jne 0x5174bc
mov eax, 1
jmp 0x519264
xor eax, eax
jmp 0x519264
mov edx, dword [esp + 0xc]
test byte [edx + 0xc], 1
jne case.0x51642c.14
mov eax, edx
push eax
call fcn.00515940
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, dword [eax]
mov edx, dword [eax + 4]
not ecx
not edx
mov dword [eax], ecx
jmp 0x519267
mov eax, dword [esp + 0xc]
test byte [eax + 0xc], 1
je 0x5174ff
mov esi, dword [ebx + 4]
jmp 0x51752c
push eax
call fcn.00515970
fcomp qword [0x58e2b8]
add esp, 4
fnstsw ax
test ah, 0x40
jne 0x51751c
mov esi, 1
jmp 0x51751e
xor esi, esi
cmp byte [ebx], 0x4e
jne 0x51752c
xor edx, edx
test esi, esi
sete dl
mov esi, edx
mov eax, dword [esp + 0xc]
test byte [eax + 0xc], 0x40
je 0x51753f
push eax
call fcn.00515870
add esp, 4
mov ecx, dword [esp + 0xc]
sub ecx, 0x40
test esi, esi
mov dword [esp + 0xc], ecx
je case.0x51642c.14
mov ebx, dword [ebx + 8]
dec ebx
mov dword [esp + 0x1c], ebx
jmp case.0x51642c.14
mov esi, dword [ebx + 4]
mov eax, esi
test eax, eax
jge 0x51756a
neg eax
mov ecx, eax
shl ecx, 6
mov edx, ecx
mov ecx, dword [esp + 0xc]
sub ecx, edx
xor edx, edx
add ecx, 0x40
test eax, eax
jle 0x51759a
add ecx, 0xc
test byte [ecx], 1
jne 0x517592
inc edx
add ecx, 0x40
cmp edx, eax
jl 0x517583
jmp 0x51759a
mov ebx, dword [ebx + 8]
dec ebx
mov dword [esp + 0x1c], ebx
test esi, esi
jle case.0x51642c.14
push eax
jmp 0x518aeb
mov ecx, dword [ebx + 4]
test ecx, ecx
mov dword [esp + 0x18], ecx
jge 0x5175b5
neg ecx
test ecx, ecx
mov dword [esp + 0x20], 0
jle 0x5175ed
mov esi, dword [esp + 0xc]
mov edi, ecx
xor edx, edx
shl edi, 6
mov eax, edx
sub eax, edi
test byte [eax + esi + 0x4c], 1
mov eax, dword [esp + 0x20]
jne 0x5175e9
inc eax
add edx, 0x40
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x5175cc
jmp 0x5175ed
cmp eax, ecx
jl 0x5175f5
mov ebx, dword [ebx + 8]
dec ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
test eax, eax
jle case.0x51642c.14
push ecx
lea ecx, [esp + 0x10]
push ecx
call fcn.0051a490
add esp, 8
jmp case.0x51642c.14
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + edx*4]
mov edx, dword [ebx + 8]
mov dword [ecx + 0x50], edx
jmp case.0x51642c.14
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xc]
xor edx, edx
add ecx, 0x40
xor esi, esi
mov word [esp + 0x174], dx
mov dword [esp + 0xc], ecx
cmp eax, edx
mov word [ecx + 0xc], 1
jge 0x51768e
mov ecx, dword [esp + 0xc]
shl eax, 6
add eax, ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x18]
mov edi, dword [eax - 0x40]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x50], edx
cmp dword [esp + 0x44], edx
jne 0x51777a
mov edx, dword [esp + 0xc]
mov word [edx + 0xc], 1
jmp case.0x51642c.14
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x3c]
mov esi, dword [ecx + eax*4]
cmp dword [esi], edx
je 0x517746
push esi
call fcn.0051bd30
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x51a0b6
mov dl, byte [esi + 0x1c]
mov eax, dword [esi]
xor ecx, ecx
mov dword [esp + 0x50], eax
test dl, dl
mov dword [esp + 0x48], ecx
je 0x5176d6
mov dword [esp + 0x44], ecx
mov edi, dword [esi + 0x50]
mov dword [esp + 0x40], edi
xor edx, edx
jmp 0x517675
mov cl, byte [esi + 0x54]
test cl, cl
je 0x5176f9
mov edx, dword [esi + 0x58]
mov dword [esp + 0x44], edx
mov eax, dword [esi + 0x64]
mov edi, dword [esi + 0x50]
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], edi
xor edx, edx
jmp 0x517675
mov cl, byte [esi + 0x21]
test cl, cl
je 0x51772a
lea ecx, [esp + 0x100]
push ecx
push eax
call fcn.005217b0
mov edx, dword [esp + 0x108]
add esp, 8
mov dword [esp + 0x44], edx
mov edi, dword [esi + 0x50]
mov dword [esp + 0x40], edi
xor edx, edx
jmp 0x517675
lea ecx, [esp + 0x44]
push ecx
push eax
call fcn.00521950
mov edi, dword [esi + 0x50]
add esp, 8
mov dword [esp + 0x40], edi
xor edx, edx
jmp 0x517675
mov al, byte [esi + 0x1e]
test al, al
je 0x517767
mov eax, dword [esi + 0x34]
mov dword [esp + 0x44], eax
mov ecx, dword [esi + 0x38]
mov edi, dword [esi + 0x50]
mov dword [esp + 0x48], ecx
mov byte [esi + 0x54], 0
jmp 0x51766d
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0xc]
mov word [edx + 0xc], 1
jmp case.0x51642c.14
cmp esi, edx
je 0x51779e
mov al, byte [esi + 0x54]
test al, al
mov eax, dword [esi + 0x5c]
je 0x517794
mov edi, dword [esi + 0x60]
mov dword [esp + 0x34], eax
jmp 0x51798e
cmp eax, edx
je 0x51779e
mov dword [esp + 0x34], eax
jmp 0x5177b4
lea ecx, [edi*8]
push ecx
call fcn.00514890
add esp, 4
mov dword [esp + 0x34], eax
xor edx, edx
lea ecx, [eax + edi*4]
cmp eax, edx
mov dword [esp + 0x20], ecx
je 0x51a03b
mov edi, dword [esp + 0x48]
test edi, edi
je 0x5177d3
mov eax, edi
mov dword [esp + 0x28], eax
jmp 0x517828
mov al, byte [esi + 0x21]
test al, al
je 0x5177ee
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x80]
push edx
push eax
call fcn.00521b50
jmp 0x517800
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x80]
push ecx
push edx
call fcn.00521bd0
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x4c]
add esp, 8
cmp ecx, edx
mov dword [esp + 0x28], eax
jb 0x517821
mov edi, eax
mov dword [esi + 0x64], eax
mov dword [esp + 0x48], edi
jmp 0x517828
mov dword [esi + 0x64], 0
lea edx, [esp + 0x78]
push edx
push eax
call fcn.005154c0
add esp, 8
mov dword [esp + 0x54], eax
test edi, edi
jne 0x517881
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
cmp ecx, eax
jae 0x517881
xor edx, edx
lea ecx, [esp + 0x168]
mov dl, byte [esi + 0x21]
push ecx
push edx
push eax
mov eax, dword [esp + 0x5c]
push edi
push eax
call fcn.00515e60
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x517a72
mov ecx, dword [esp + 0x180]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x54]
cmp ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0
jae 0x517910
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
sub eax, edi
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
cmp eax, edx
jae 0x517910
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
ja 0x517910
mov edx, dword [esp + 0x38]
mov ecx, eax
mov eax, dword [esp + 0x54]
push edi
mov dword [edx + edi], ecx
mov ecx, dword [esp + 0x2c]
add eax, ecx
push eax
call fcn.005154c0
mov ecx, dword [esp + 0x5c]
mov edx, dword [edi]
add ecx, eax
push edx
mov dword [esp + 0x60], ecx
call fcn.0051be80
mov ecx, dword [esp + 0x30]
add esp, 0xc
add ecx, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
add edi, 4
cmp eax, ecx
jb 0x5178a7
test byte [esp + 0x174], 0x40
je 0x51792a
lea ecx, [esp + 0x168]
push ecx
call fcn.00515870
add esp, 4
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
cmp eax, edx
mov word [esp + 0x174], 1
jae 0x51794f
mov ecx, dword [esp + 0x20]
lea edi, [ecx + eax*4]
mov ecx, edx
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x54]
cmp eax, edx
jne 0x517a6a
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jne 0x517a6a
test esi, esi
je 0x51798a
mov edi, dword [esp + 0x20]
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], eax
mov byte [esi + 0x54], 1
jmp 0x51798e
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + ecx*4]
test eax, eax
je 0x517a13
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x5179a5
add eax, ecx
jmp 0x5179e9
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
mov eax, dword [edx + ebx*4]
push eax
call fcn.0051be80
xor edx, edx
lea ecx, [esp + 0x16c]
mov dl, byte [esi + 0x21]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
mov eax, dword [edi + ebx*4]
push eax
push ecx
call fcn.00515e60
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
jne 0x517a72
mov eax, dword [esp + 0x180]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [ecx + edx*4]
push ecx
push eax
call fcn.0051bf30
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov al, byte [edx + 0x10]
mov byte [ecx + 0xf], al
jmp 0x517a3b
cmp dword [ebx + 0x10], 0xfffffff8
jne 0x517a31
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0xc]
push 0x80
push edx
push eax
call fcn.00515ab0
add esp, 0xc
jmp 0x517a3b
mov ecx, dword [esp + 0xc]
mov word [ecx + 0xc], 1
test byte [esp + 0x174], 0x40
je 0x517a57
mov eax, dword [esp + 0xc]
and word [eax + 0xc], 0xfeff
mov eax, dword [esp + 0xc]
or byte [eax + 0xc], 0x60
mov edx, dword [esp + 0xc]
push edx
call fcn.005156e0
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x517a72
mov dword [esp + 0x10], 0xb
test esi, esi
je 0x517a81
mov eax, dword [esi + 0x5c]
test eax, eax
jne case.0x51642c.14
mov eax, dword [esp + 0x34]
push eax
call fcn.005148c0
add esp, 4
jmp case.0x51642c.14
mov esi, dword [ebx + 4]
xor edx, edx
xor ecx, ecx
cmp esi, edx
setl cl
mov edi, ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x54], edi
mov dword [esp + 0x48], ecx
neg edi
sbb edi, edi
xor ecx, ecx
and edi, 0xfffffffe
mov dword [esp + 0x40], edx
inc edi
mov dword [esp + 0x24], edx
imul edi, esi
cmp al, 0x38
mov eax, dword [ebx + 0xc]
sete cl
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, edi
shl eax, 6
mov ebx, ecx
mov dword [esp + 0x34], edx
sub ebx, eax
mov dword [esp + 0x28], eax
add ebx, 0x40
mov dword [esp + 0x50], edx
cmp ebx, ecx
mov esi, ebx
ja 0x517b67
mov eax, dword [esp + 0x18]
test eax, eax
je 0x517b1b
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, ebx
mov dl, byte [ecx + 0x10]
mov ecx, dword [esp + 0x18]
sar eax, 6
push edx
mov dl, byte [eax + ecx]
push edx
push esi
call fcn.00516260
add esp, 0xc
test byte [esi + 0xc], 1
je 0x517b29
mov dword [esp + 0x50], 1
push esi
call fcn.0051bdc0
push eax
mov dword [esp + 0x40], eax
call fcn.0051be80
mov ecx, dword [esp + 0x2c]
push 0
add ecx, eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esp + 0x34], ecx
call fcn.00515530
mov edx, dword [esp + 0x44]
add esi, 0x40
add edx, eax
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp esi, eax
mov dword [esp + 0x34], edx
jbe 0x517af3
mov eax, dword [esp + 0x20]
test eax, eax
je 0x517bae
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
sub esi, eax
push esi
mov dword [esp + 0x44], esi
call fcn.00515940
push esi
call fcn.0051bdc0
mov esi, eax
push esi
call fcn.0051be80
mov edx, dword [esp + 0x30]
push 0
add edx, eax
push esi
mov dword [esp + 0x38], edx
call fcn.00515530
mov esi, dword [esp + 0x48]
add esp, 0x14
add esi, eax
jmp 0x517bb2
mov esi, dword [esp + 0x34]
mov eax, esi
cdq
push edx
push eax
call fcn.00515530
add esi, eax
mov dword [esp + 0x40], eax
mov eax, esi
mov dword [esp + 0x3c], esi
cdq
push edx
push eax
call fcn.00515530
mov ecx, dword [esp + 0x48]
add esp, 0x10
cmp ecx, eax
jge 0x517be0
inc esi
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 0x24]
lea eax, [esi + ecx]
cmp eax, 0x20
mov dword [esp + 0x38], eax
jbe 0x517c0b
push eax
call fcn.00514890
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
je 0x51a03b
mov esi, dword [esp + 0x34]
jmp 0x517c16
lea edx, [esp + 0x258]
mov dword [esp + 0x28], edx
mov eax, esi
cdq
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
call fcn.005152a0
mov ecx, dword [esp + 0x34]
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 0xc
add esi, ecx
cmp ebx, eax
mov dword [esp + 0x18], ebx
ja 0x517c67
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0051bdc0
push 0
push eax
push esi
call fcn.005152a0
mov ecx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x28]
add esp, 0x10
add eax, 0x40
cmp eax, ecx
mov dword [esp + 0x18], eax
jbe 0x517c3c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x517c87
mov edx, dword [esp + 0x40]
push edx
call fcn.0051bdc0
push 0
push eax
push esi
call fcn.005152a0
add esp, 0x10
add esi, eax
cmp ebx, dword [esp + 0xc]
ja 0x517ca4
push ebx
push esi
call fcn.0051bea0
add esi, eax
mov eax, dword [esp + 0x14]
add ebx, 0x40
add esp, 8
cmp ebx, eax
jbe 0x517c8d
mov eax, dword [esp + 0x20]
test eax, eax
je 0x517cba
mov eax, dword [esp + 0x40]
push eax
push esi
call fcn.0051bea0
add esp, 8
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x517cd6
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xc]
add ecx, edi
push ecx
push edx
call fcn.0051a490
add esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
add eax, 0x40
cmp ecx, 0x20
mov dword [esp + 0xc], eax
mov dword [eax + 8], ecx
ja 0x517d1f
mov eax, dword [esp + 0xc]
lea esi, [esp + 0x258]
lea edx, [eax + 0x20]
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0xc]
mov edx, ecx
lea edi, [eax + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
mov word [eax + 0xc], 0x210
jmp 0x517d3f
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov dword [ecx + 0x18], edx
mov eax, dword [esp + 0xc]
mov word [eax + 0xc], 0x50
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x1c], 0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x48]
test eax, eax
mov byte [edx + 0xf], 1
je case.0x51642c.14
mov eax, dword [esp + 0x50]
test eax, eax
je case.0x51642c.14
mov eax, dword [esp + 0x48]
dec eax
mov dword [esp + 0x1c], eax
jmp case.0x51642c.14
mov ebx, dword [ebx + 4]
test ebx, ebx
jl case.0x51642c.14
mov ecx, dword [esp + 0x14]
cmp ebx, dword [ecx]
jge case.0x51642c.14
lea edx, [ebx*8]
mov eax, ecx
sub edx, ebx
mov ecx, dword [eax + 4]
shl edx, 4
mov esi, dword [edx + ecx + 4]
test esi, esi
je case.0x51642c.14
mov edx, eax
mov al, byte [edx + 0x11]
test al, al
jne case.0x51642c.14
push esi
call fcn.00526310
add esp, 4
test eax, eax
jne case.0x51642c.14
push esi
call fcn.005214e0
add esp, 4
mov dword [esp + 0x10], eax
jmp case.0x51642c.14
mov edi, dword [esp + 0x14]
mov al, byte [ebx + 4]
mov cl, byte [ebx + 8]
mov byte [esp + 0x5f], al
cmp dword [edi + 0x4c], 1
jle 0x517e27
test al, al
je 0x517e27
mov dl, byte [edi + 0x11]
test dl, dl
jne 0x517e27
test cl, cl
mov eax, 0x5ca038
jne 0x517dfe
mov eax, 0x5ca030
push 0
push 0x5ca004
push eax
add esi, 0x240
push 0x5c9ffc
push esi
call fcn.005149b0
add esp, 0x14
mov dword [esp + 0x10], 1
jmp case.0x51642c.14
cmp al, byte [edi + 0x11]
jne 0x519f5e
test al, al
jne 0x517e3b
mov eax, 0x5c9fcc
jmp 0x517e49
test cl, cl
mov eax, 0x5c9fa0
jne 0x517e49
mov eax, 0x5c9f74
push 0
add esi, 0x240
push eax
push esi
call fcn.005149b0
add esp, 0xc
mov dword [esp + 0x10], 1
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x14]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + 4]
shl ecx, 4
mov eax, dword [ecx + eax + 4]
test eax, eax
je case.0x51642c.14
mov ecx, dword [ebx + 8]
push ecx
push eax
call fcn.00520f80
add esp, 8
cmp eax, 5
mov dword [esp + 0x10], eax
je 0x519fbd
test eax, eax
je case.0x51642c.14
cmp eax, 8
jne 0x51a0b6
jmp case.0x51642c.14
mov eax, dword [ebx + 8]
mov ebx, dword [ebx + 4]
lea edx, [esp + 0xd4]
inc eax
push edx
mov edx, dword [esp + 0x18]
lea ecx, [ebx*8]
push eax
mov eax, dword [edx + 4]
sub ecx, ebx
shl ecx, 4
mov ecx, dword [ecx + eax + 4]
push ecx
call fcn.00525620
mov ecx, dword [esp + 0x18]
add esp, 0xc
add ecx, 0x40
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xc], ecx
jmp 0x519264
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 4]
lea edi, [eax*8]
sub edi, eax
shl edi, 4
add edi, edx
mov edx, dword [esp + 0xc]
push edx
call fcn.00515940
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 8]
inc edx
mov ecx, dword [eax]
mov eax, dword [edi + 4]
push ecx
push edx
push eax
call fcn.00525670
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 8]
add esp, 0x10
test eax, eax
jne 0x519b6c
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov dword [edi + 8], edx
mov eax, dword [esi + 8]
or al, 0x10
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
sub eax, 0x40
mov dword [esp + 0xc], eax
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x14]
xor edi, edi
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + 4]
shl ecx, 4
mov eax, dword [ecx + eax + 4]
cmp eax, edi
je 0x517fe6
lea ecx, [esp + 0xa8]
push ecx
push 1
push eax
call fcn.00525620
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x10], eax
jne case.0x51642c.14
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0xa8]
mov eax, dword [ebx + 8]
cmp edx, eax
je case.0x51642c.14
push 0
add esi, 0x240
push 0x5c9b50
push esi
call fcn.005149b0
add esp, 0xc
mov dword [esp + 0x10], 0x11
jmp case.0x51642c.14
mov dword [esp + 0x10], edi
mov dword [esp + 0xa8], edi
jmp 0x517fb1
mov eax, dword [esp + 0xc]
mov edi, dword [ebx + 4]
mov esi, dword [ebx + 8]
push eax
call fcn.00515940
mov ecx, dword [esp + 0x10]
add esp, 4
mov eax, dword [ecx]
sub ecx, 0x40
mov dword [esp + 0xc], ecx
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 0x14]
shl edx, 4
mov eax, dword [eax + 4]
mov edx, dword [edx + eax + 4]
xor eax, eax
mov dword [esp + 0x18], edx
mov dl, byte [ebx]
cmp dl, 9
sete al
test esi, esi
mov dword [esp + 0x38], eax
jg 0x518056
push ecx
call fcn.00515940
mov eax, dword [esp + 0x10]
add esp, 4
mov esi, dword [eax]
sub eax, 0x40
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 8]
push edi
push ecx
call fcn.0051a560
mov edi, eax
add esp, 8
test edi, edi
je 0x51a03b
mov eax, dword [esp + 0x18]
mov byte [edi + 0x1c], 1
test eax, eax
je case.0x51642c.14
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
push edi
push edx
push fcn.0051c170
push eax
push esi
push ecx
call fcn.00521580
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x10]
add esp, 0x18
cmp eax, 0xfffffffa
jne 0x5180bf
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x4c], eax
inc eax
mov ecx, dword [edi + 0x4c]
mov dword [edi + 0x48], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dl, byte [edx + 0x10]
mov byte [ecx], dl
jmp 0x5180cf
lea eax, [edi + 0x22]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x48], eax
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x51810a
cmp ecx, 5
je 0x519fe0
cmp ecx, 0x10
jne 0x51a0b6
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x10], 0
cmp edx, 0xfffffffa
setne al
test al, al
sete cl
mov byte [edi + 0x20], al
mov byte [edi + 0x21], cl
jmp case.0x51642c.14
mov edx, dword [edi]
push edx
call fcn.005256c0
add esp, 4
test al, 0xf0
jne 0x51a017
mov ecx, eax
and ecx, 7
cmp ecx, 5
je 0x518130
cmp ecx, 2
jne 0x51a017
mov cl, al
shr eax, 1
and cl, 1
and al, 1
test cl, cl
mov byte [edi + 0x20], cl
mov byte [edi + 0x21], al
je 0x51814d
cmp dword [ebx + 0x10], 0xfffffffa
je 0x51a017
test al, al
je case.0x51642c.14
cmp dword [ebx + 0x10], 0xfffffffa
jne 0x51a017
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
push eax
push esi
call fcn.0051a560
mov edi, eax
add esp, 8
test edi, edi
je 0x51a03b
mov edx, dword [esp + 0x14]
lea esi, [edi + 0x30]
push esi
push 0x1f4
push 1
push 0
push edx
mov byte [edi + 0x1c], 1
call fcn.00513b10
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x518252
mov eax, dword [esi]
push 1
push eax
call fcn.00520f80
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x518252
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x518230
mov edx, dword [esi]
lea ecx, [esp + 0xdc]
push 2
push ecx
push edx
call fcn.00524c80
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x51821c
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esi]
push edi
push eax
push fcn.0051c170
push 1
push ecx
push edx
call fcn.00521580
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x4c], ebx
add esp, 0x18
mov ecx, dword [eax]
mov dl, byte [ecx + 0x10]
mov byte [ebx], dl
mov eax, dword [edi + 0x4c]
inc eax
mov dword [edi + 0x48], eax
mov byte [edi + 0x20], 0
mov al, byte [edi + 0x20]
test al, al
sete al
mov byte [edi + 0x21], al
jmp case.0x51642c.14
mov ecx, dword [esi]
push edi
push 0
push 0
push 1
push 1
push ecx
call fcn.00521580
lea edx, [edi + 0x22]
add esp, 0x18
mov dword [esp + 0x10], eax
mov byte [edi + 0x20], 1
mov dword [edi + 0x48], edx
mov al, byte [edi + 0x20]
test al, al
sete al
mov byte [edi + 0x21], al
jmp case.0x51642c.14
mov ebx, dword [ebx + 4]
push ebx
push esi
call fcn.0051a560
add esp, 8
test eax, eax
je 0x51a03b
lea ecx, [eax + 0x22]
mov byte [eax + 0x1c], 1
mov byte [eax + 0x1e], 1
mov dword [eax + 0x48], ecx
mov byte [eax + 0x20], 1
mov byte [eax + 0x21], 0
jmp case.0x51642c.14
mov ebx, dword [ebx + 4]
test ebx, ebx
jl case.0x51642c.14
cmp ebx, dword [esi + 0x38]
jge case.0x51642c.14
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + ebx*4]
push eax
call fcn.0051b2c0
mov ecx, dword [esi + 0x3c]
add esp, 4
mov dword [ecx + ebx*4], 0
jmp case.0x51642c.14
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + edx*4]
cmp dword [edi], 0
je 0x519b59
mov eax, dword [esp + 0x18]
mov byte [edi + 0x1c], 0
cmp eax, 5
je 0x5182ec
cmp eax, 0x45
je 0x5182ec
xor eax, eax
jmp 0x5182f1
mov eax, 1
mov ecx, dword [edi + 0x48]
mov byte [ecx], al
mov al, byte [edi + 0x20]
test al, al
je 0x518376
mov edx, dword [esp + 0xc]
push edx
call fcn.00515940
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
add esp, 4
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
test edx, edx
jne 0x518339
cmp byte [ebx], 0x7f
jne 0x518339
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
mov byte [edi + 0x1f], 1
mov eax, dword [esp + 0xc]
sub eax, 0x40
mov dword [esp + 0xc], eax
jmp case.0x51642c.14
lea edx, [esp + 0x4c]
push edx
push ecx
push eax
mov eax, dword [edi]
push 0
push eax
call fcn.00521e00
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x51a0b6
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov dword [edi + 8], edx
mov eax, dword [ecx + 4]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x4c]
test eax, eax
sete cl
mov byte [edi + 0x19], cl
jmp 0x5183c8
mov ecx, dword [esp + 0xc]
test byte [ecx + 0xc], 0x12
jne 0x51839f
mov eax, dword [esp + 0x14]
xor edx, edx
mov dl, byte [eax + 0x10]
push edx
push ecx
call fcn.00515800
add esp, 8
test eax, eax
jne 0x51a03b
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x4c]
push edx
cdq
push edx
push eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [edi]
push eax
push ecx
call fcn.00521e00
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x51a0b6
mov byte [edi + 0x19], al
mov edx, dword [edi + 0x48]
mov eax, dword [esp + 0x18]
mov byte [edi + 0x1f], 0
mov byte [edi + 0x54], 0
mov byte [edx], 0
mov edx, dword [0x6034c8]
inc edx
cmp eax, 0x7f
mov dword [0x6034c8], edx
je 0x518446
cmp eax, 5
je 0x518446
mov eax, dword [esp + 0x4c]
test eax, eax
jl 0x518435
mov ecx, dword [edi]
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.00522200
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x51a0b6
mov byte [edi + 0x19], al
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x519b59
mov ebx, dword [ebx + 8]
test ebx, ebx
jle 0x51846a
dec ebx
mov dword [esp + 0x1c], ebx
jmp 0x519b59
mov edx, dword [edi]
push edx
call fcn.00522070
add esp, 4
mov dword [esp + 0x4c], eax
jmp 0x518418
mov eax, dword [esp + 0x4c]
test eax, eax
jge 0x51845d
mov ecx, dword [edi]
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.00522080
jmp 0x518406
mov dword [esp + 0x4c], 0
jmp 0x519b59
mov byte [edi + 0x1c], 1
jmp 0x519b59
mov edx, dword [ebx + 4]
mov ecx, dword [esi + 0x3c]
xor eax, eax
mov esi, dword [ecx + edx*4]
cmp dword [esi], 0
je 0x5184e9
mov ecx, dword [esp + 0xc]
test byte [ecx + 0xc], 0x12
jne 0x5184ac
mov eax, dword [esp + 0x14]
xor edx, edx
mov dl, byte [eax + 0x10]
push edx
push ecx
call fcn.00515800
add esp, 8
test eax, eax
jne 0x51a03b
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 8]
lea edx, [esp + 0xbc]
push edx
cdq
push edx
push eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [esi]
push eax
push ecx
call fcn.00521e00
add esp, 0x14
test eax, eax
jne 0x5184df
mov eax, dword [esp + 0xbc]
test eax, eax
jne 0x5184df
mov eax, 1
jmp 0x5184e1
xor eax, eax
mov byte [esi + 0x1f], 0
mov byte [esi + 0x54], 0
mov cl, byte [ebx]
cmp cl, 0x80
jne 0x5184f6
test eax, eax
je 0x518502
jmp 0x5184fa
test eax, eax
jne 0x518502
mov ebx, dword [ebx + 8]
dec ebx
mov dword [esp + 0x1c], ebx
cmp cl, 0x72
je case.0x51642c.14
jmp 0x519b59
mov eax, dword [esp + 0xc]
mov esi, dword [ebx + 4]
push eax
lea edi, [eax - 0x40]
call fcn.00515940
mov eax, dword [esp + 0x10]
add esp, 4
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0xac], edx
mov edx, dword [ebp + 8]
sub eax, 0x40
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x3c]
mov esi, dword [eax + esi*4]
mov eax, dword [esi]
test eax, eax
mov dword [esp + 0x18], eax
je case.0x51642c.14
test byte [edi + 0xc], 0x12
jne 0x518579
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [edx + 0x10]
push ecx
push edi
call fcn.00515800
add esp, 8
test eax, eax
jne 0x51a03b
mov eax, dword [edi + 0x18]
mov edi, dword [edi + 8]
push eax
push edi
mov dword [esp + 0x28], eax
call fcn.0051c390
sub edi, eax
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x28]
push eax
mov eax, edi
mov byte [esi + 0x54], 0
cdq
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call fcn.00521e00
add esp, 0x1c
test eax, eax
jne 0x51a0b6
mov eax, dword [esp + 0x68]
test eax, eax
jge 0x5185e3
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x68]
push eax
push ecx
call fcn.00522080
mov eax, dword [esp + 0x70]
add esp, 8
test eax, eax
je 0x5185e3
mov ebx, dword [ebx + 8]
dec ebx
mov dword [esp + 0x1c], ebx
jmp case.0x51642c.14
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x68]
push edx
push eax
push edi
push esi
call fcn.0051c4a0
add esp, 0x10
test eax, eax
jne 0x51a0b6
mov eax, dword [esp + 0x68]
test eax, eax
jle 0x518614
mov ebx, dword [ebx + 8]
dec ebx
mov dword [esp + 0x1c], ebx
jmp case.0x51642c.14
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xb4]
push ecx
push edx
call fcn.0051c3d0
add esp, 8
test eax, eax
jne 0x51a0b6
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0xac]
cmp ecx, eax
jne 0x518662
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0xb0]
cmp eax, edx
jne 0x518662
mov ebx, dword [ebx + 8]
dec ebx
mov dword [esp + 0x1c], ebx
jmp case.0x51642c.14
mov eax, dword [esp + 0xc]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [eax], ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0xb8]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0xc]
mov word [eax + 0xc], 4
jmp case.0x51642c.14
mov ecx, dword [ebx + 4]
mov edx, dword [esi + 0x3c]
mov edi, dword [edx + ecx*4]
mov eax, dword [edi]
test eax, eax
je 0x519b59
mov edx, dword [esp + 0xc]
lea esi, [esp + 0xcc]
push esi
mov ecx, dword [edx]
mov edx, dword [edx + 4]
push edx
push ecx
push 0
push eax
call fcn.00521e00
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
add esp, 0x14
mov ecx, dword [eax]
mov dword [edi + 8], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0xcc]
test eax, eax
sete cl
test eax, eax
mov dword [edi + 0xc], edx
mov byte [edi + 0x19], cl
mov byte [edi + 0x1c], 0
mov byte [edi + 0x54], 0
je 0x519b59
mov ebx, dword [ebx + 8]
mov byte [edi + 0x19], 0
dec ebx
mov dword [esp + 0x1c], ebx
jmp 0x519b59
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0x3c]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov edi, dword [eax + edx*4]
mov eax, dword [edi]
cmp eax, ecx
je 0x518952
push eax
mov dword [esp + 0x24], ecx
call fcn.005256c0
and eax, 3
add esp, 4
cmp al, 1
jne 0x51a024
mov al, byte [edi + 0x1b]
test al, al
jne 0x518867
mov al, byte [edi + 0x1d]
test al, al
je 0x518757
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x2c], ecx
mov edx, dword [edi + 0x14]
mov dword [esp + 0x30], edx
jmp 0x5187c7
mov ecx, dword [edi]
lea eax, [esp + 0x7c]
push eax
push ecx
call fcn.00521d60
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
add esp, 8
test eax, eax
je 0x518788
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0
jmp 0x5187c7
mov eax, dword [edi]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.005217b0
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, 0xffffffff
jne 0x5187b1
cmp dword [esp + 0x30], 0x7fffffff
jne 0x5187b1
mov byte [edi + 0x1b], 1
jmp 0x5187c7
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add ecx, 1
adc eax, 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x51882b
mov edx, dword [esi + 0x60]
shl ebx, 6
add ebx, edx
push ebx
call fcn.00515940
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
add esp, 4
cmp eax, 0xffffffff
jne 0x5187f5
cmp ecx, 0x7fffffff
je 0x51a031
mov dl, byte [edi + 0x1b]
test dl, dl
jne 0x51a031
mov edx, dword [esp + 0x30]
add eax, 1
adc ecx, 0
cmp edx, ecx
jg 0x51881e
jl 0x518816
cmp dword [esp + 0x2c], eax
jae 0x51881e
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x2c]
mov dword [ebx], eax
mov ecx, dword [esp + 0x30]
mov dword [ebx + 4], ecx
cmp dword [esp + 0x30], 0x7fffffff
ja 0x518858
jb 0x51883e
cmp dword [esp + 0x2c], 0xffffffff
jae 0x518858
mov byte [edi + 0x1d], 1
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add edx, 1
adc eax, 0
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
jmp 0x51885c
mov byte [edi + 0x1d], 0
mov al, byte [edi + 0x1b]
test al, al
je 0x518946
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
or ecx, dword [esp + 0x30]
je 0x5188b8
cmp ebx, 2
jg 0x5188b8
lea eax, [esp + 0xe4]
push eax
push 1
call fcn.0052bfe0
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0x34]
and eax, 0xff
add esp, 8
inc eax
cdq
add ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
adc eax, edx
jmp 0x5188e1
lea ecx, [esp + 0x2c]
push ecx
push 8
call fcn.0052bfe0
mov ecx, dword [esp + 0x34]
add esp, 8
cmp ebx, 5
jge 0x5188e5
mov eax, dword [esp + 0x30]
and ecx, 0xffffff
mov dword [esp + 0x2c], ecx
and eax, 0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov edx, ecx
or edx, eax
je 0x51890c
lea edx, [esp + 0x7c]
push edx
push eax
mov eax, dword [edi]
push ecx
push 0
push eax
call fcn.00521e00
mov ecx, dword [esp + 0x40]
add esp, 0x14
mov dword [esp + 0x20], eax
inc ebx
mov edx, dword [esp + 0x7c]
cmp ebx, 0x3e8
jge 0x518928
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x518928
test edx, edx
je 0x51887b
mov eax, dword [esp + 0x14]
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x2c], ecx
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x518946
test edx, edx
je 0x51a031
mov byte [edi + 0x19], 0
mov byte [edi + 0x1f], 0
mov byte [edi + 0x54], 0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [eax], edx
mov eax, dword [esp + 0x30]
jmp 0x518d73
mov edx, dword [ebx + 4]
mov edi, dword [esi + 0x3c]
mov ecx, dword [esp + 0xc]
mov edi, dword [edi + edx*4]
lea eax, [ecx - 0x40]
mov dword [esp + 0x18], edi
cmp dword [edi], 0
jne 0x518994
mov cl, byte [edi + 0x1e]
test cl, cl
je 0x518ae9
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
mov dword [esp + 0x94], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x98], edx
mov dl, byte [ebx + 8]
test dl, 1
je 0x5189b5
inc dword [esi + 0x24c]
test byte [ebx + 8], 2
je 0x5189ce
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
mov dword [ecx + 0x20], edx
mov eax, dword [eax + 4]
mov dword [ecx + 0x24], eax
mov ecx, dword [esp + 0xc]
mov al, byte [edi + 0x1d]
test al, al
je 0x5189f2
mov edx, dword [ecx + 4]
mov eax, dword [edi + 0x14]
cmp edx, eax
jl 0x5189f2
jg 0x5189ea
mov eax, dword [ecx]
mov edx, dword [edi + 0x10]
cmp eax, edx
jb 0x5189f2
mov byte [edi + 0x1d], 0
mov ecx, dword [esp + 0xc]
test byte [ecx + 0xc], 1
je 0x518a04
xor eax, eax
mov dword [ecx + 0x18], eax
mov ecx, dword [esp + 0xc]
mov dword [ecx + 8], eax
mov al, byte [edi + 0x1e]
test al, al
je 0x518ab0
mov edx, dword [edi + 0x38]
push edx
call fcn.005148c0
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ecx
mov edx, dword [esp + 0x10]
add esp, 4
mov eax, dword [edx + 8]
mov dword [edi + 0x34], eax
mov ecx, dword [esp + 0xc]
test byte [ecx + 0xc], 0x40
je 0x518a5c
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x38], eax
mov ecx, dword [esp + 0xc]
mov word [ecx + 0xc], 1
mov byte [edi + 0x1c], 0
jmp 0x518add
add eax, 2
push eax
call fcn.00514890
add esp, 4
mov dword [edi + 0x38], eax
test eax, eax
je 0x51a03b
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xc]
mov edi, eax
mov ecx, dword [edx + 0x34]
mov esi, dword [esi + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x34]
mov eax, dword [edx + 0x38]
mov edi, dword [esp + 0x18]
mov byte [ecx + eax], 0
mov ecx, dword [edx + 0x34]
mov edx, dword [edx + 0x38]
mov byte [ecx + edx + 1], 0
mov byte [edi + 0x1c], 0
jmp 0x518add
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [edi]
push eax
push ecx
push 0
push edx
call fcn.00522320
add esp, 0x18
mov dword [esp + 0x10], eax
mov byte [edi + 0x19], 0
mov byte [edi + 0x1f], 0
mov byte [edi + 0x54], 0
push 2
lea eax, [esp + 0x10]
push eax
call fcn.0051a490
add esp, 8
jmp case.0x51642c.14
mov ecx, dword [ebx + 4]
mov edx, dword [esi + 0x3c]
mov edi, dword [edx + ecx*4]
cmp dword [edi], 0
je 0x518b37
push edi
call fcn.0051bd30
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x51a0b6
mov eax, dword [edi]
push eax
call fcn.005249f0
add esp, 4
mov dword [esp + 0x10], eax
mov byte [edi + 0x1d], 0
mov byte [edi + 0x54], 0
test byte [ebx + 8], 1
je case.0x51642c.14
inc dword [esi + 0x24c]
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
test eax, eax
je 0x518b67
mov ecx, dword [esi + 0x24c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0051c540
add esp, 8
mov dword [esi + 0x24c], 0
jmp case.0x51642c.14
mov eax, dword [esp + 0xc]
mov ebx, dword [ebx + 4]
mov ecx, dword [esi + 0x3c]
add eax, 0x40
mov dword [esp + 0xc], eax
mov edi, dword [ecx + ebx*4]
mov cl, byte [edi + 0x1c]
test cl, cl
jne 0x518cc3
mov esi, dword [edi]
test esi, esi
je 0x518c95
push edi
call fcn.0051bd30
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x51a0b6
mov al, byte [edi + 0x1c]
test al, al
je 0x518bca
mov edx, dword [esp + 0xc]
mov word [edx + 0xc], 1
jmp case.0x51642c.14
mov al, byte [edi + 0x21]
test al, al
je 0x518bef
lea eax, [esp + 0x108]
push eax
push esi
call fcn.005217b0
mov ecx, dword [esp + 0x110]
add esp, 8
mov dword [esp + 0x60], ecx
jmp 0x518bfd
lea edx, [esp + 0x60]
push edx
push esi
call fcn.00521950
add esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x60]
cmp eax, 0x20
ja 0x518c27
mov edx, dword [esp + 0xc]
mov word [edx + 0xc], 0x210
mov eax, dword [esp + 0xc]
lea ecx, [eax + 0x20]
mov dword [eax + 0x18], ecx
jmp 0x518c54
push eax
call fcn.00514890
add esp, 4
test eax, eax
je 0x51a03b
mov edx, dword [esp + 0xc]
mov word [edx + 0xc], 0x50
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x1c], 0
mov edx, dword [esp + 0xc]
mov dword [edx + 0x18], eax
mov al, byte [edi + 0x21]
mov edx, dword [esp + 0x60]
test al, al
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x18]
push ecx
push edx
push 0
push esi
je 0x518c80
call fcn.00521980
mov edx, dword [esp + 0x1c]
add esp, 0x10
mov byte [edx + 0xf], 1
jmp case.0x51642c.14
call fcn.00521b30
mov edx, dword [esp + 0x1c]
add esp, 0x10
mov byte [edx + 0xf], 1
jmp case.0x51642c.14
mov cl, byte [edi + 0x1e]
test cl, cl
je 0x518cc3
mov ecx, dword [edi + 0x34]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0xc]
mov edx, dword [edi + 0x38]
mov dword [eax + 0x18], edx
mov ecx, dword [esp + 0xc]
mov word [ecx + 0xc], 0x110
mov edx, dword [esp + 0xc]
mov byte [edx + 0xf], 1
jmp case.0x51642c.14
mov word [eax + 0xc], 1
mov edx, dword [esp + 0xc]
mov byte [edx + 0xf], 1
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x3c]
mov edi, dword [ecx + eax*4]
push edi
call fcn.0051bd30
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x51a0b6
mov ecx, dword [esp + 0xc]
add ecx, 0x40
mov dword [esp + 0xc], ecx
mov al, byte [edi + 0x19]
test al, al
je 0x518d1c
mov edx, dword [edi + 8]
mov dword [esp + 0x88], edx
mov eax, dword [edi + 0xc]
mov dword [esp + 0x8c], eax
jmp 0x518d5f
mov al, byte [edi + 0x1e]
test al, al
je 0x518d39
mov ecx, dword [edi + 0x40]
mov dword [esp + 0x88], ecx
mov edx, dword [edi + 0x44]
mov dword [esp + 0x8c], edx
jmp 0x518d5f
mov al, byte [edi + 0x1c]
test al, al
jne 0x518fca
mov edi, dword [edi]
test edi, edi
je 0x518fca
lea eax, [esp + 0x88]
push eax
push edi
call fcn.005217b0
add esp, 8
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x88]
mov dword [edx], ecx
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0xc]
mov word [edx + 0xc], 4
jmp case.0x51642c.14
mov ecx, dword [ebx + 4]
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + ecx*4]
mov byte [eax + 0x1c], 1
mov byte [eax + 0x19], 0
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x3c]
mov edi, dword [ecx + eax*4]
mov eax, dword [edi]
test eax, eax
je 0x518df2
lea edx, [esp + 0xc0]
push edx
push eax
call fcn.00521d60
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc8]
add esp, 8
mov byte [edi + 0x1c], al
test eax, eax
mov byte [edi + 0x1f], 0
mov byte [edi + 0x54], 0
je case.0x51642c.14
mov ebx, dword [ebx + 8]
test ebx, ebx
jle case.0x51642c.14
dec ebx
mov dword [esp + 0x1c], ebx
jmp case.0x51642c.14
mov byte [edi + 0x1c], 0
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x3c]
mov edi, dword [ecx + eax*4]
mov eax, dword [edi]
test eax, eax
je 0x518e32
lea edx, [esp + 0x6c]
push edx
push eax
call fcn.00521bf0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
add esp, 8
mov byte [edi + 0x1f], 0
test eax, eax
sete al
mov byte [edi + 0x1a], al
mov byte [edi + 0x54], 0
jmp 0x518e3a
mov dword [esp + 0x6c], 1
mov cl, byte [esp + 0x6c]
mov byte [edi + 0x1c], cl
mov eax, dword [esp + 0x6c]
test eax, eax
je case.0x51642c.14
mov ebx, dword [ebx + 8]
test ebx, ebx
jle case.0x51642c.14
dec ebx
mov dword [esp + 0x1c], ebx
jmp case.0x51642c.14
mov edx, dword [esp + 0x14]
test byte [edx + 8], 4
jne 0x51a070
mov ecx, dword [ebx + 4]
mov edx, dword [esi + 0x3c]
mov edi, dword [edx + ecx*4]
mov ecx, dword [edi]
test ecx, ecx
je 0x518ef1
mov dl, byte [edi + 0x1c]
test dl, dl
je 0x518e9a
mov dword [esp + 0x84], 1
mov byte [edi + 0x19], 0
jmp case.0x51642c.14
cmp al, 0x6f
jne 0x518eae
lea eax, [esp + 0x84]
push eax
push ecx
call fcn.00522080
jmp 0x518ebc
lea edx, [esp + 0x84]
push edx
push ecx
call fcn.00522200
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8c]
add esp, 8
mov byte [edi + 0x1c], al
test eax, eax
mov byte [edi + 0x54], 0
jne 0x518ef5
mov ebx, dword [ebx + 8]
mov eax, dword [0x6034c8]
dec ebx
inc eax
mov dword [0x6034c8], eax
mov dword [esp + 0x1c], ebx
mov byte [edi + 0x19], 0
jmp case.0x51642c.14
mov byte [edi + 0x1c], 1
mov byte [edi + 0x19], 0
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x3c]
mov edi, dword [ecx + eax*4]
mov ecx, dword [edi]
test ecx, ecx
je 0x518f33
mov edx, dword [esp + 0xc]
push 0
push 0x5cce54
mov eax, dword [edx + 8]
mov ebx, dword [edx + 0x18]
cdq
push edx
push eax
push ebx
push ecx
call fcn.00522320
add esp, 0x18
mov dword [esp + 0x10], eax
mov byte [edi + 0x54], 0
mov edx, dword [esp + 0xc]
test byte [edx + 0xc], 0x40
je 0x519b6c
mov eax, edx
jmp 0x519b63
mov ecx, dword [ebx + 4]
mov edx, dword [esi + 0x3c]
mov edi, dword [edx + ecx*4]
mov esi, dword [edi]
test esi, esi
je 0x519b59
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xe0]
push eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0x18]
cdq
push edx
push eax
push ecx
push esi
call fcn.00521e00
add esp, 0x14
test eax, eax
jne 0x518f96
mov eax, dword [esp + 0xe0]
test eax, eax
jne 0x518f96
push esi
call fcn.005249f0
add esp, 4
mov dword [esp + 0x10], eax
mov byte [edi + 0x54], 0
jmp 0x519b59
mov eax, dword [esp + 0xc]
mov ebx, dword [ebx + 4]
add eax, 0x40
mov dword [esp + 0xc], eax
mov word [eax + 0xc], 1
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + ebx*4]
mov ecx, dword [eax]
test ecx, ecx
je case.0x51642c.14
mov dl, byte [eax + 0x1c]
test dl, dl
je 0x518fd9
mov eax, dword [esp + 0xc]
mov word [eax + 0xc], 1
jmp case.0x51642c.14
lea edx, [esp + 0xe8]
push edx
push ecx
call fcn.0051c3d0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x51a0b6
mov eax, dword [esp + 0xc]
mov word [eax + 0xc], 4
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0xe8]
mov dword [edx], ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0xec]
mov dword [ecx + 4], eax
jmp case.0x51642c.14
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 4]
mov ecx, dword [eax + 0x3c]
mov esi, dword [ecx + edx*4]
cmp dword [esi], 0
je 0x519b59
mov eax, dword [esp + 0xc]
test byte [eax + 0xc], 0x12
jne 0x51905a
mov ecx, dword [esp + 0x14]
xor edx, edx
mov dl, byte [ecx + 0x10]
push edx
push eax
call fcn.00515800
add esp, 8
test eax, eax
jne 0x51a03b
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi + 0x48]
test ecx, ecx
setne dl
mov byte [eax], dl
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x64]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 8]
push ecx
push edx
push eax
push esi
call fcn.0051c4a0
mov ecx, dword [esi + 0x48]
add esp, 0x10
test eax, eax
mov byte [ecx], 0
jne case.0x51642c.14
mov al, byte [ebx]
cmp al, 0x27
jne 0x51909d
mov eax, dword [esp + 0x64]
neg eax
jmp 0x5190a6
cmp al, 0x3f
mov eax, dword [esp + 0x64]
jne 0x5190aa
inc eax
mov dword [esp + 0x64], eax
test eax, eax
jle 0x519b59
mov ebx, dword [ebx + 8]
dec ebx
mov dword [esp + 0x1c], ebx
jmp 0x519b59
mov eax, dword [esp + 0xc]
mov esi, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 8]
lea eax, [esp + 0x9c]
mov dword [esp + 0x38], ecx
push eax
push ecx
mov dword [esp + 0x20], edx
call fcn.005154c0
mov edi, eax
mov eax, dword [esp + 0x20]
add esp, 8
cmp edi, eax
jge 0x519b59
test esi, esi
jle 0x519b59
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x9c]
push ecx
lea eax, [edi + edx]
push eax
call fcn.005154c0
add edi, eax
mov eax, dword [esp + 0xa4]
add esp, 8
test eax, eax
je 0x5190b2
mov eax, dword [esp + 0x18]
dec esi
cmp edi, eax
jl 0x5190f3
jmp 0x519b59
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x4c], 1
jle 0x519145
mov dword [esp + 0x10], 6
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
lea edx, [esp + 0x90]
push edx
push eax
mov eax, dword [ebx + 8]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ecx + 4]
shl edx, 4
mov ecx, dword [edx + eax + 4]
push ecx
call fcn.005253f0
mov ecx, eax
mov eax, dword [esp + 0x18]
add eax, 0x40
add esp, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov word [eax + 0xc], 4
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0xc]
cdq
mov dword [esi], eax
mov eax, dword [esp + 0xc]
test ecx, ecx
mov dword [eax + 4], edx
jne case.0x51642c.14
mov eax, dword [esp + 0x90]
test eax, eax
je case.0x51642c.14
mov ecx, dword [ebx + 4]
mov ebx, dword [ebx + 8]
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [ebx*8]
sub edx, ebx
mov esi, dword [eax + 4]
shl edx, 4
add edx, esi
push edx
call fcn.0051ef70
add esp, 0xc
jmp case.0x51642c.14
mov ecx, dword [ebx + 4]
mov ebx, dword [ebx + 8]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [ebx*8]
mov ecx, dword [eax + 4]
sub edx, ebx
shl edx, 4
mov edx, dword [edx + ecx + 4]
push edx
call fcn.00525240
add esp, 8
mov dword [esp + 0x10], eax
jmp case.0x51642c.14
mov ebx, dword [ebx + 4]
mov edx, dword [esp + 0x14]
sub al, 0x35
mov edi, dword [edx + 4]
lea ecx, [ebx*8]
sub ecx, ebx
shl ecx, 4
add ecx, edi
neg al
sbb eax, eax
mov ecx, dword [ecx + 4]
and al, 0xfd
add eax, 5
push eax
lea eax, [esp + 0xcc]
push eax
push ecx
call fcn.00524c80
mov ecx, dword [esp + 0x18]
add esp, 0xc
add ecx, 0x40
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xc], ecx
jne 0x5173a4
mov eax, dword [esp + 0xc8]
cdq
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0xc]
mov word [ecx + 0xc], 4
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
lea edx, [eax*8]
sub edx, eax
shl edx, 4
lea edi, [edx + ecx]
mov dl, byte [edx + ecx + 0x5c]
and dl, 1
cmp dl, 1
jne case.0x51642c.14
cmp eax, 1
mov ecx, 0x5c9ed8
je 0x5192b5
mov ecx, 0x5c9ec8
mov edx, dword [esp + 0x14]
add esi, 0x240
mov dword [esp + 0xf0], edx
mov edx, dword [ebx + 0xc]
push edx
mov dword [esp + 0xf8], esi
push ecx
mov ecx, dword [edi]
push ecx
push eax
push 0x5c9f3c
call fcn.00529220
mov edi, eax
add esp, 0x14
test edi, edi
je 0x51a03b
mov esi, dword [esp + 0x14]
push esi
call fcn.00515230
lea edx, [esp + 0xf4]
push 0
push edx
push fcn.00513fd0
push edi
push esi
mov byte [esi + 0x44], 1
call fcn.00512d40
push esi
mov dword [esp + 0x2c], eax
mov byte [esi + 0x44], 0
call fcn.005151f0
push edi
call fcn.005148c0
add esp, 0x20
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00528200
add esp, 8
jmp case.0x51642c.14
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call fcn.0051db70
add esp, 0xc
jmp case.0x51642c.14
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call fcn.0051d6e0
add esp, 0xc
jmp case.0x51642c.14
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call fcn.0052baa0
add esp, 0xc
jmp case.0x51642c.14
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0xc]
xor edi, edi
cmp eax, edx
jb 0x5193b4
xor ecx, ecx
test byte [eax + 0xc], 4
je 0x5193b4
mov eax, dword [esp + 0xc]
add ecx, 0x40
sub eax, ecx
inc edi
cmp eax, edx
jae 0x5193a0
lea edx, [edi*4 + 4]
push edx
call fcn.00514890
mov esi, eax
add esp, 4
test esi, esi
je 0x51a03b
xor eax, eax
test edi, edi
jle 0x5193fe
mov ecx, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], edi
mov edx, dword [esp + 0xc]
add ecx, 4
sub edx, eax
add eax, 0x40
mov edx, dword [edx]
mov dword [ecx - 4], edx
mov edx, dword [esp + 0x18]
dec edx
mov dword [esp + 0x18], edx
jne 0x5193de
mov eax, dword [esp + 0x38]
mov dword [esi + eax*4], 0
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0051a490
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add eax, 0x40
push edi
mov dword [esp + 0x18], eax
mov ebx, dword [ebx + 8]
mov eax, dword [edx + 4]
push esi
lea ecx, [ebx*8]
sub ecx, ebx
shl ecx, 4
mov ecx, dword [ecx + eax + 4]
push ecx
call fcn.005256e0
add esp, 0x14
test eax, eax
je 0x519483
cmp byte [eax], 0
je 0x51947a
mov edx, dword [esp + 0xc]
mov edi, eax
or ecx, 0xffffffff
mov dword [edx + 0x18], eax
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xc]
mov word [ecx + 0xc], 0x62
mov edx, dword [esp + 0xc]
mov dword [edx + 0x1c], 0
jmp 0x5194a3
push eax
call fcn.005148c0
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [eax + 0x18], 0x5c9f38
mov ecx, dword [esp + 0xc]
mov dword [ecx + 8], 2
mov edx, dword [esp + 0xc]
mov word [edx + 0xc], 0xa2
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov byte [eax + 0xf], 1
mov cl, byte [edx + 0x10]
mov eax, dword [esp + 0xc]
push ecx
push eax
call fcn.00515620
push esi
call fcn.005148c0
add esp, 0xc
jmp case.0x51642c.14
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00515940
mov eax, dword [esp + 0x10]
add esi, 0x74
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
push esi
call fcn.0052aeb0
mov eax, dword [esp + 0x1c]
add esp, 0x10
sub eax, 0x40
mov dword [esp + 0xc], eax
jmp case.0x51642c.14
mov ecx, dword [esp + 0x14]
test byte [ecx + 8], 4
jne 0x51a070
lea edx, [esp + 0xf8]
add esi, 0x74
push edx
push esi
call fcn.0052af70
add esp, 8
cmp eax, 0x65
jne 0x519532
mov ebx, dword [ebx + 8]
dec ebx
mov dword [esp + 0x1c], ebx
jmp case.0x51642c.14
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xf8]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [eax], ecx
mov edx, dword [esp + 0xfc]
jmp 0x519267
add dword [esi + 0x6c], 0x1c
jmp case.0x51642c.14
add dword [esi + 0x6c], 0xffffffe4
jmp case.0x51642c.14
mov edi, dword [esi + 0x80]
mov ecx, dword [esi + 0x84]
cmp edi, ecx
lea eax, [edi + 1]
mov dword [esi + 0x80], eax
jl 0x5195a7
lea edx, [eax + eax*4]
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0x88]
shl edx, 2
push edx
push eax
call fcn.005148d0
add esp, 8
mov dword [esi + 0x88], eax
test eax, eax
je 0x51a03b
mov edx, dword [esi + 0x88]
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x14]
add eax, 8
mov edx, dword [ecx + 0x20]
mov dword [eax - 8], edx
mov ecx, dword [esi + 0x24c]
mov dword [eax - 4], ecx
lea ecx, [esi + 0x74]
mov edx, ecx
push ecx
mov esi, dword [edx]
mov dword [eax], esi
mov esi, dword [edx + 4]
mov dword [eax + 4], esi
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
call fcn.0052aea0
add esp, 4
jmp case.0x51642c.14
mov edx, dword [esi + 0x80]
mov ecx, dword [esi + 0x88]
dec edx
lea edi, [esi + 0x74]
mov eax, edx
mov dword [esi + 0x80], edx
push edi
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*4]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
cdq
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov edx, dword [ebx + 4]
mov dword [esi + 0x24c], edx
call fcn.0052afd0
add esp, 4
add ebx, 8
mov eax, dword [ebx]
mov dword [edi], eax
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [edi + 8], edx
jmp case.0x51642c.14
mov eax, dword [esp + 0xc]
push eax
lea edi, [eax - 0x40]
call fcn.00515670
add esp, 4
test eax, eax
jne 0x51a03b
push 0x50
call fcn.00514890
add esp, 4
test eax, eax
je 0x51a03b
mov dword [eax + 0x48], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x51967e
mov dword [ecx + 0x48], eax
jmp 0x519681
mov dword [esi + 0x40], eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x44], eax
add eax, 8
push edi
mov edx, dword [ecx + 8]
push eax
mov dword [eax - 8], edx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x18]
mov word [eax + 0xc], 1
mov dword [eax - 4], edx
call fcn.00515b30
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
add esp, 8
sub eax, 0x80
mov dword [esp + 0xc], eax
jmp case.0x51642c.14
mov edx, dword [0x6034d0]
mov esi, dword [ebx + 0xc]
inc edx
lea edi, [esp + 0x278]
mov dword [0x6034d0], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov cl, byte [eax + 0x10]
xor eax, eax
mov byte [esi], cl
mov ecx, 0x1e
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0x40]
test eax, eax
je 0x519755
mov ecx, dword [eax + 0x48]
xor ebx, ebx
mov dword [edx + 0x40], ecx
mov dword [eax + 0x48], ebx
lea edi, [esp + 0x278]
mov ecx, dword [edi]
test ecx, ecx
je 0x519726
push esi
push eax
push ecx
call fcn.0051a4d0
add esp, 0xc
mov dword [edi], 0
inc ebx
add edi, 4
cmp ebx, 0x1d
jl 0x519704
jmp 0x519732
cmp ebx, 0x1d
mov dword [esp + ebx*4 + 0x278], eax
jl 0x51974b
mov edx, dword [esp + 0x2ec]
push esi
push eax
push edx
call fcn.0051a4d0
add esp, 0xc
mov dword [esp + 0x2ec], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
test eax, eax
jne 0x5196f2
xor eax, eax
lea edi, [esp + 0x278]
mov ebx, 0x1e
push esi
push eax
mov eax, dword [edi]
push eax
call fcn.0051a4d0
add esp, 0xc
add edi, 4
dec ebx
jne 0x519763
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x40], eax
jmp case.0x51642c.14
mov edx, dword [esp + 0x14]
mov edi, dword [esi + 0x40]
test byte [edx + 8], 4
jne 0x51a070
test edi, edi
je 0x519d05
mov eax, dword [edi + 0x48]
lea ecx, [edi + 8]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0xc]
add eax, 0x40
push ecx
mov dword [esp + 0x10], eax
mov word [eax + 0xc], 1
mov edx, dword [esp + 0x10]
push edx
call fcn.00515b30
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
push eax
call fcn.005148c0
push edi
call fcn.005148c0
add esp, 0x10
jmp case.0x51642c.14
push esi
call fcn.0051b070
add esp, 4
jmp case.0x51642c.14
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0x60]
mov ecx, dword [esp + 0xc]
shl edx, 6
add edx, eax
push ecx
push edx
call fcn.00515b30
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
sub ecx, 0x40
add esp, 8
mov dword [esp + 0xc], ecx
mov eax, dword [ebx + 8]
test eax, eax
jne case.0x51642c.14
mov ebx, dword [ebx + 4]
mov edi, dword [esi + 0x60]
mov eax, dword [esp + 0xc]
push 0x100
shl ebx, 6
add ebx, edi
add eax, 0x40
push ebx
push eax
mov dword [esp + 0x18], eax
call fcn.00515ab0
add esp, 0xc
jmp case.0x51642c.14
mov ebx, dword [ebx + 4]
mov edi, dword [esi + 0x60]
shl ebx, 6
add ebx, edi
push ebx
call fcn.00515940
mov eax, dword [esp + 0x10]
push eax
call fcn.00515940
mov eax, dword [esp + 0x14]
mov edx, dword [ebx + 4]
add esp, 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp edx, eax
jg case.0x51642c.14
jl 0x519883
mov edx, dword [ebx]
cmp edx, ecx
jae case.0x51642c.14
mov dword [ebx], ecx
mov dword [ebx + 4], eax
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
mov edi, dword [esi + 0x60]
shl eax, 6
add eax, edi
mov esi, dword [eax]
add esi, 1
mov dword [eax], esi
mov edx, dword [eax + 4]
adc edx, 0
mov dword [eax + 4], edx
mov ebx, dword [ebx + 8]
test ebx, ebx
jle case.0x51642c.14
cmp dword [eax], 1
jne case.0x51642c.14
mov ecx, edx
test ecx, ecx
jne case.0x51642c.14
dec ebx
mov dword [esp + 0x1c], ebx
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
mov edx, dword [esi + 0x60]
shl eax, 6
add eax, edx
mov ecx, dword [eax + 4]
test ecx, ecx
jl case.0x51642c.14
jg 0x5198f1
cmp dword [eax], 0
jbe case.0x51642c.14
mov ebx, dword [ebx + 8]
dec ebx
mov dword [esp + 0x1c], ebx
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
test eax, eax
je 0x519932
mov eax, dword [ebx + 0xc]
mov ecx, dword [esi + 0x6c]
push eax
push ecx
push 0
call fcn.0051b0b0
mov edx, dword [esi + 0x6c]
mov eax, dword [ebx + 8]
push 0
push 0
mov dword [edx], eax
mov ecx, dword [esi + 0x6c]
push ecx
call fcn.0051a3c0
add esp, 0x18
mov dword [esp + 0x10], eax
jmp 0x519953
mov edx, dword [ebx + 0xc]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call fcn.0051b0b0
mov edx, dword [esi + 0x6c]
mov ecx, dword [ebx + 8]
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [edx], ecx
test eax, eax
jne 0x51a0b6
mov edx, dword [esi + 0x6c]
mov eax, dword [edx]
shl eax, 2
push eax
call fcn.00514840
mov ecx, dword [esi + 0x6c]
add esp, 4
mov dword [ecx + 8], eax
mov edx, dword [esi + 0x6c]
mov eax, dword [edx + 8]
test eax, eax
je 0x51a03b
jmp case.0x51642c.14
mov eax, dword [esi + 0x6c]
mov ecx, dword [ebx + 8]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0xc]
mov dword [edx + ecx*4], eax
jmp case.0x51642c.14
mov esi, dword [ebx + 8]
mov edx, dword [ebp + 8]
mov edi, dword [esp + 0xc]
mov ecx, esi
mov eax, dword [edx + 0x30]
shl ecx, 6
sub edi, ecx
mov dword [esp + 0x28], eax
test esi, esi
jle 0x5199e7
mov ecx, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
push edi
mov dword [edx], edi
call fcn.0051a380
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
add esp, 4
add edx, 4
add edi, 0x40
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
jne 0x5199bf
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 0x1a8], ecx
mov ecx, dword [edx + 0x6c]
shl eax, 6
mov edx, dword [ecx + 4]
lea edi, [edx + eax + 8]
lea eax, [edi + 0x20]
mov dword [esp + 0x1c8], eax
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x1f0], ecx
mov eax, dword [edi]
add eax, 1
mov dword [edi], eax
mov edx, dword [edi + 4]
mov eax, 0
adc edx, eax
mov dword [edi + 4], edx
mov edx, dword [edi]
mov byte [esp + 0x1f4], al
mov dword [esp + 0x1fc], eax
mov eax, dword [esp + 0x1a8]
mov dword [esp + 0x1f8], edx
mov cl, byte [eax + 3]
test cl, cl
je 0x519a5e
mov ecx, dword [ebx - 8]
mov dword [esp + 0x1fc], ecx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x1a8]
push edx
push esi
push ecx
call dword [eax + 0x14]
mov edx, dword [esp + 0x1fc]
inc esi
lea eax, [esp + 0x18]
push esi
push eax
mov dword [edi + 0x18], edx
mov word [edi + 0xc], 0x400
call fcn.0051a490
mov al, byte [esp + 0x208]
add esp, 0x14
test al, al
je case.0x51642c.14
mov dword [esp + 0x10], 1
jmp case.0x51642c.14
mov eax, dword [esp + 0xc]
test byte [eax + 0xc], 0x12
jne 0x519acf
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [edx + 0x10]
push ecx
push eax
call fcn.00515800
add esp, 8
test eax, eax
jne 0x51a03b
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [eax + 0x18]
mov esi, dword [eax + 8]
lea eax, [esp + 0xd8]
push eax
mov eax, esi
cdq
push edx
mov edx, dword [ecx + 0x6c]
push eax
push edi
mov eax, dword [edx + 0x10]
push eax
call fcn.00521e00
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x51a0b6
mov eax, dword [esp + 0xd8]
test eax, eax
jne 0x519b38
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x6c]
lea edx, [eax + 4]
mov eax, dword [eax + 0x10]
push edx
push 4
push 0
push eax
call fcn.00521b30
mov ebx, dword [ebx + 8]
add esp, 0x10
dec ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebx
jmp 0x519b4d
mov ecx, dword [ebp + 8]
push esi
push edi
mov edx, dword [ecx + 0x6c]
push edx
call fcn.0051a3c0
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x51a0b6
mov eax, dword [esp + 0xc]
test byte [eax + 0xc], 0x40
je 0x519b6c
push eax
call fcn.00515870
add esp, 4
sub dword [esp + 0xc], 0x40
jmp case.0x51642c.14
mov eax, dword [esi + 0x6c]
mov ebx, dword [ebx + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x51a03b
mov ecx, dword [esp + 0xc]
shl ebx, 6
push ecx
lea edx, [ebx + eax + 8]
push edx
call fcn.00515b30
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
add esp, 8
sub eax, 0x40
mov dword [esp + 0xc], eax
jmp case.0x51642c.14
mov esi, dword [ebx + 8]
mov ebx, dword [ebx + 4]
mov ecx, dword [ebp + 8]
lea eax, [ebx*8]
mov edi, dword [ecx + 0x6c]
sub eax, ebx
shl eax, 2
sub edi, eax
mov eax, dword [edi + 4]
test eax, eax
mov dword [esp + 0x58], eax
jne 0x519c43
mov eax, dword [0x6034c4]
test eax, eax
jne 0x51a03b
mov eax, dword [edi + 0x10]
lea edx, [esp + 0xd0]
push edx
push eax
call fcn.00521bf0
add esp, 8
test eax, eax
jne 0x51a11f
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x519c26
push 1
push 0x5cce54
push edi
call fcn.0051a3c0
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 4]
add esp, 0xc
mov dword [esp + 0x58], eax
jmp 0x519c43
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0x58]
push ecx
push 4
push 0
push edx
call fcn.00521b30
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
add esp, 0x10
mov ecx, dword [esp + 0xc]
push 0x100
shl esi, 6
add ecx, 0x40
lea eax, [esi + eax + 8]
mov dword [esp + 0x10], ecx
push eax
push ecx
call fcn.00515ab0
mov ecx, dword [esp + 0x18]
add esp, 0xc
test byte [ecx + 0xc], 2
je case.0x51642c.14
mov eax, dword [esp + 0x14]
xor edx, edx
mov dl, byte [eax + 0x10]
push edx
push ecx
call fcn.00515620
add esp, 8
jmp case.0x51642c.14
mov edx, dword [esp + 0x14]
test byte [edx + 8], 4
jne 0x51a070
mov eax, dword [esi + 0x6c]
mov cl, byte [eax + 0x18]
test cl, cl
jne 0x519cce
mov byte [eax + 0x18], 1
mov eax, dword [esi + 0x6c]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x519cc4
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.00521bf0
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x519cf1
mov dword [esp + 0x74], 0
jmp 0x519cf1
mov eax, dword [eax + 0x10]
test eax, eax
je 0x519ce9
lea edx, [esp + 0x74]
push edx
push eax
call fcn.00522080
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x519cf1
mov dword [esp + 0x74], 1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x51a0b9
mov eax, dword [esp + 0x74]
test eax, eax
je 0x519d12
mov ebx, dword [ebx + 8]
dec ebx
mov dword [esp + 0x1c], ebx
jmp case.0x51642c.14
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x519d39
add eax, 4
push eax
push 4
push 0
push ecx
call fcn.00521b30
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x51a0b6
mov eax, dword [esi + 0x6c]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov ebx, dword [eax + 4]
mov edx, dword [eax]
add ebx, 8
test edx, edx
jle case.0x51642c.14
add ebx, 0x20
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x519ddb
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x519ddb
mov word [esp + 0x214], 1
mov dword [esp + 0x220], ebx
mov ecx, dword [ebx - 8]
lea edi, [ebx - 0x20]
mov dword [esp + 0x248], ecx
lea ecx, [esp + 0x200]
mov edx, dword [edi]
push ecx
mov dword [esp + 0x254], edx
mov dword [esp + 0x204], eax
call dword [eax + 0x18]
mov edx, dword [esp + 0x24c]
add esp, 4
mov dword [ebx - 8], edx
mov eax, dword [esp + 0x248]
test eax, eax
je 0x519dc4
cmp eax, ebx
je 0x519dc4
push eax
call fcn.005148c0
add esp, 4
mov ecx, 0x10
lea esi, [esp + 0x208]
rep movsd dword es:[edi], dword [esi]
test byte [ebx - 0x13], 2
je 0x519ddb
mov dword [ebx - 8], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x18]
inc ecx
add ebx, 0x40
mov eax, dword [eax + 0x6c]
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax]
jl 0x519d55
jmp case.0x51642c.14
mov edi, dword [esp + 0x14]
push edi
call fcn.00515230
add esp, 4
test eax, eax
jne 0x51a0ae
add esi, 0x240
push edi
push esi
call fcn.0052aa40
push edi
mov dword [esp + 0x1c], eax
call fcn.005151f0
add esp, 0xc
test eax, eax
jne 0x51a0ae
jmp case.0x51642c.14
mov eax, dword [ebx + 4]
test eax, eax
jne 0x519e46
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0051c570
add esp, 4
jmp case.0x51642c.14
mov byte [esi + 0x248], 1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 8]
inc ecx
test eax, eax
mov dword [esp + 0x1c], ecx
je 0x5163b4
mov dword [esi + 0x90], eax
mov edi, 1
jmp 0x51a10d
mov edx, dword [esp + 0xc]
mov dword [esi + 0x2c], edx
mov eax, dword [ebx + 4]
mov dword [esi + 0x90], eax
mov dword [esi + 0x8c], edi
mov ecx, dword [ebx + 8]
mov dword [esi + 0x98], ecx
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x519ead
push 0
lea edx, [esi + 0x240]
push ebx
push edx
call fcn.005149b0
add esp, 0xc
push esi
call fcn.0051b3d0
add esp, 4
cmp eax, 5
jne 0x519ec8
mov dword [esi + 0x90], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x90]
neg eax
sbb eax, eax
and al, 0x9c
add eax, 0x65
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
xor edi, edi
test eax, eax
jle 0x519f19
mov dword [esp + 0x58], edi
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x58]
sub eax, esi
mov esi, eax
push esi
call fcn.00515770
push esi
call fcn.0051a380
mov ecx, dword [esp + 0x60]
mov eax, dword [ebx + 4]
add esp, 8
inc edi
add ecx, 0x40
cmp edi, eax
mov dword [esp + 0x58], ecx
jl 0x519eeb
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + 0x70]
mov byte [eax + 0x244], 1
inc ecx
inc edx
mov dword [eax + 0x70], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 0x23c], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0x8c], edx
mov dword [eax + 0x2c], ecx
mov eax, 0x64
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], 0x14
jmp 0x51a0b9
mov byte [edi + 0x11], al
mov eax, dword [ebx + 8]
test eax, eax
je 0x519f7d
push edi
call fcn.00513740
add esp, 4
mov eax, 0x65
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0051b3d0
add esp, 4
cmp eax, 5
jne 0x519f71
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
mov dword [esi + 0x8c], eax
mov al, byte [esp + 0x5f]
mov cl, 1
mov dword [esi + 0x2c], edx
sub cl, al
mov eax, 5
mov byte [edi + 0x11], cl
mov dword [esi + 0x90], 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], 5
mov dword [esi + 0x2c], edx
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x90], 5
mov dword [eax + 0x8c], ecx
mov ecx, dword [ebx + 8]
xor edx, edx
test ecx, ecx
mov ecx, dword [esp + 0xc]
setle dl
inc edx
shl edx, 6
add edx, ecx
mov dword [eax + 0x2c], edx
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], 0xb
jmp 0x51a0b6
mov dword [esp + 0x10], 0xb
jmp 0x51a0b9
mov dword [esp + 0x10], 0xd
jmp 0x51a0b9
mov esi, dword [ebp + 8]
push 0
push 0x5c9c4c
lea eax, [esi + 0x240]
push eax
call fcn.005149b0
mov dword [esp + 0x1c], 7
add esp, 0xc
mov eax, dword [esp + 0x10]
mov edi, 1
mov dword [esi + 0x90], eax
jmp 0x51a10d
mov eax, dword [esp + 0x14]
push 0
mov edi, dword [eax + 8]
and edi, 0xfffffffb
mov dword [eax + 8], edi
mov eax, dword [eax + 0x30]
sub eax, 0xf03b7906
neg eax
sbb eax, eax
and eax, 0xc
add eax, 9
push eax
mov dword [esp + 0x18], eax
mov dword [esi + 0x90], eax
call fcn.00513790
add esp, 4
lea ecx, [esi + 0x240]
push eax
push ecx
jmp 0x51a0eb
mov dword [esp + 0x10], 0x15
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x240]
lea edi, [esi + 0x240]
test eax, eax
jne 0x51a0f3
mov eax, dword [0x6034c4]
test eax, eax
je 0x51a0da
mov dword [esp + 0x10], 7
mov edx, dword [esp + 0x10]
push 0
push edx
call fcn.00513790
add esp, 4
push eax
push edi
call fcn.005149b0
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x51a108
mov dword [esi + 0x90], eax
mov edi, 1
jmp 0x51a10d
mov edi, 0x65
push esi
call fcn.0051b3d0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [esi + 0x2c], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret