Function at 0x51b610
Capabilities:
Encrypt data using speck
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x2b4
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push esi
mov dword [esp + 0x20], 0
mov eax, dword [esi + 0x70]
mov edi, dword [esi]
mov dword [esp + 0x48], eax
mov dword [esp + 0x18], eax
xor al, al
mov byte [esp + 0x6b], al
mov al, byte [edi + 0x54]
mov byte [esp + 0x54], al
mov eax, dword [esi + 0x60]
mov dword [esp + 0x58], edi
mov dword [esp + 0x60], 0
mov dword [esp + 0x88], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], eax
call fcn.0051b560
add esp, 4
cmp dword [edi + 0x170], ebx
je 0x51b68b
mov ecx, dword [edi + 0x178]
xor edx, edx
mov eax, dword [esi + 0xbc]
div ecx
sub ecx, edx
xor eax, eax
jmp 0x51b691
or ecx, 0xffffffff
or eax, 0xffffffff
cmp dword [esi + 0x28], 7
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ecx
je 0x5218d7
mov dword [esi + 0x28], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x80], ebx
mov dword [edi + 0x1c4], ebx
cmp dword [edi + 0x128], ebx
jne 0x5218c2
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x44]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
xor eax, eax
mov dl, byte [ecx]
add ebx, 1
mov dword [esp + 0x84], ebx
adc eax, 0
movzx ebx, dl
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp ebx, 0xb3
ja case.0x51b6f9.88
jmp dword [ebx*4 + 0x521ac0]
mov edx, dword [esp + 0x14]
mov ecx, edx
mov ebx, dword [esp + 0x20]
sub ecx, dword [esp + 0x44]
mov eax, dword [edx + 4]
lea esi, [eax + eax*4]
mov eax, 4
mov word [ebx + esi*8 + 8], ax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
mov dword [ebx + esi*8], eax
mov dword [ebx + esi*8 + 4], edx
mov ecx, dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x18]
add ecx, 0xffffffec
add ecx, 0x14
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x44]
lea ecx, [eax + eax*4]
mov eax, dword [edi + ecx*8]
lea eax, [eax + eax*4]
lea esi, [edx + eax*4]
mov eax, pe_nt_image_headers32
mov dword [esp + 0x14], esi
mov word [edi + ecx*8 + 8], ax
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0xc]
dec eax
cdq
mov dword [ebx + ecx*8], eax
mov eax, 4
mov dword [ebx + ecx*8 + 4], edx
mov word [ebx + ecx*8 + 8], ax
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 8], 0
jne 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x44]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + ecx*8]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*4 + 8]
lea eax, [eax + eax*4]
lea eax, [eax - 5]
lea esi, [edx + eax*4]
mov eax, pe_nt_image_headers32
mov dword [esp + 0x14], esi
mov word [ebx + ecx*8 + 8], ax
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x54]
mov eax, dword [edx + 4]
sub edx, dword [esp + 0x44]
lea esi, [eax + eax*4]
mov eax, 4
mov ecx, dword [ebx + esi*8]
mov word [ebx + esi*8 + 8], ax
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
mov dword [ebx + esi*8], eax
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x44]
mov dword [ebx + esi*8 + 4], edx
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x84]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x18]
add ecx, 0x14
jmp 0x51b6d3
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + 0x20]
lea eax, [eax + eax*4]
test byte [edx + eax*8 + 8], 1
je 0x51ee3d
sub ecx, dword [esp + 0x44]
mov eax, 0x66666667
mov ebx, dword [ebp + 8]
imul ecx
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [esp + 0x14]
cmp dword [edx + 4], 0
jne 0x521347
mov edx, dword [ebx + 0xd8]
test edx, edx
je 0x521343
mov eax, dword [edx + 4]
mov esi, ebx
push edx
dec dword [esi + 0xe0]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0xd8], eax
mov eax, dword [esi + 0x30]
add dword [edi + 0x70], eax
mov dword [edi + 0x68], eax
adc dword [edi + 0x74], ecx
mov dword [edi + 0x6c], ecx
call fcn.00522600
mov ecx, dword [esp + 0x18]
add esp, 4
cmp dword [ecx + 8], 4
jne 0x51b8fa
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov eax, dword [eax + ecx*4 + 8]
dec eax
mov edx, dword [esi + 0x70]
lea eax, [eax + eax*4]
mov ecx, dword [esi + 0x60]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x20], ecx
lea ecx, [edx + eax*4]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov dword [esp + 0x44], edx
jmp 0x51b6d3
push dword [esp + 0x14]
push esi
call fcn.004d82d0
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
push dword [esp + 0x14]
push esi
call fcn.004d82d0
mov edi, dword [esp + 0x5c]
mov edx, eax
mov eax, dword [esp + 0x1c]
add esp, 8
mov ebx, dword [esp + 0x84]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x14]
mov dword [edx + 4], eax
add ecx, 0x14
mov eax, dword [esp + 0x18]
jmp 0x51b6d3
push dword [esp + 0x14]
push esi
call fcn.004d82d0
mov edi, dword [esp + 0x5c]
mov ecx, eax
mov ebx, dword [esp + 0x8c]
mov eax, 8
add esp, 8
mov word [ecx + 8], ax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
fld qword [eax]
mov eax, dword [esp + 0x18]
fstp qword [ecx]
mov ecx, dword [esp + 0x14]
add ecx, 0x14
jmp 0x51b6d3
mov ebx, dword [esp + 0x14]
push ebx
push esi
call fcn.004d82d0
mov ebx, dword [ebx + 0x10]
mov esi, eax
push ebx
call fcn.00515b60
mov edx, dword [esp + 0x20]
add esp, 0xc
cmp byte [esp + 0x50], 1
mov dword [edx + 4], eax
je 0x51ba6c
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push esi
call fcn.00524020
add esp, 0x18
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x52167c
movzx ecx, byte [esp + 0x50]
push ecx
push esi
call fcn.0051a820
add esp, 8
test eax, eax
jne 0x5218d4
mov edx, dword [esp + 0x14]
mov dword [esi + 0x18], eax
mov eax, 0x800
or word [esi + 8], ax
cmp byte [edx + 1], 0xf9
jne 0x51ba5c
mov eax, dword [edx + 0x10]
test eax, eax
je 0x51ba5c
push eax
push edi
call fcn.004f0e00
mov edx, dword [esp + 0x1c]
add esp, 8
mov byte [edx + 1], 0xf9
mov eax, dword [esi + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [edx + 4], eax
mov eax, dword [edx + 4]
mov esi, dword [ebp + 8]
cmp eax, dword [edi + 0x78]
jg 0x52167f
mov byte [edx], 0x49
jmp 0x51ba84
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.004d82d0
mov esi, eax
add esp, 8
mov eax, 0xa02
mov word [esi + 8], ax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x10], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov cl, byte [esp + 0x50]
mov byte [esi + 0xa], cl
mov eax, dword [eax + 0xc]
test eax, eax
jle 0x51ee36
mov ebx, dword [esp + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 2]
cdq
cmp dword [ebx + ecx*8], eax
jne 0x521132
cmp dword [ebx + ecx*8 + 4], edx
jne 0x51ee36
mov eax, 0xa10
mov word [esi + 8], ax
jmp 0x51ee36
mov ebx, dword [esp + 0x14]
push ebx
push esi
call fcn.004d82d0
mov edi, dword [ebx + 0xc]
add esp, 8
sub edi, dword [ebx + 8]
mov ecx, dword [ebx + 4]
neg ecx
mov dword [eax + 0xc], 0
lea esi, [eax + 0xc]
sbb ecx, ecx
and ecx, 0x100
inc ecx
movzx ebx, cx
mov word [eax + 8], bx
test edi, edi
jle 0x51ee36
lea esi, [esi + 0x28]
lea eax, [esi - 0xc]
push eax
call fcn.00523f50
dec edi
mov word [esi - 4], bx
add esp, 4
mov dword [esi], 0
test edi, edi
jg 0x51bb27
jmp 0x51ee36
mov eax, dword [ecx + 4]
mov edx, 0xff41
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x54]
lea ecx, [eax + eax*4]
mov ax, word [ebx + ecx*8 + 8]
and ax, dx
or ax, 1
mov word [ebx + ecx*8 + 8], ax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
push dword [esp + 0x14]
push esi
call fcn.004d82d0
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x51bbc5
push dword [eax + 4]
push esi
call fcn.005242d0
push esi
call fcn.005237f0
add esp, 0xc
test eax, eax
jne 0x5218d4
mov al, byte [esp + 0x50]
mov byte [esi + 0xa], al
jmp 0x51ee36
mov eax, dword [eax + 4]
push 0
push 0
cdq
push edx
push eax
push ecx
push esi
call fcn.00524020
mov al, byte [esp + 0x68]
add esp, 0x18
mov byte [esi + 0xa], al
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
lea ebx, [eax + eax*4]
mov eax, dword [esi + 0x6c]
lea ebx, [ebx - 5]
lea ebx, [eax + ebx*8]
push ebx
call fcn.00524420
add esp, 4
test eax, eax
jne 0x52167f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 8]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
mov eax, 0x2400
test word [esi + 8], ax
je 0x51bc2e
push esi
call fcn.00523f50
add esp, 4
mov eax, dword [ebx]
mov ecx, 0xebff
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov ax, word [esi + 8]
and ax, cx
mov ecx, 0x840
or ax, cx
mov word [esi + 8], ax
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*8]
mov eax, dword [edx + 8]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
push ebx
push esi
call fcn.00523d00
mov eax, 0x1000
add esp, 8
test word [esi + 8], ax
je 0x51bcae
push esi
call fcn.00523cb0
add esp, 4
test eax, eax
jne 0x5218d4
add ebx, 0x28
add esi, 0x28
dec dword [esp + 0x28]
jne 0x51bc88
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*8]
mov eax, dword [edx + 8]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
push 0x1000
push ebx
push esi
call fcn.00524320
mov eax, 0x1000
add esp, 0xc
test word [esi + 8], ax
je 0x51bd0b
push esi
call fcn.00523cb0
add esp, 4
test eax, eax
jne 0x5218d4
mov ecx, dword [esp + 0x28]
mov eax, ecx
dec ecx
mov dword [esp + 0x28], ecx
test eax, eax
je 0x51ee36
add esi, 0x28
add ebx, 0x28
jmp 0x51bce0
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
push 0x1000
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
push eax
mov eax, dword [edx + 8]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
push eax
call fcn.00524320
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
push dword [ebx + eax*8 + 4]
push dword [ebx + eax*8]
mov eax, dword [edx + 8]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
push eax
call fcn.00523f10
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
push 0
push esi
call fcn.0051aa40
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea ecx, [ebx + eax*8]
mov eax, dword [edx + 8]
mov dword [esp + 0x38], ecx
lea eax, [eax + eax*4]
lea esi, [ebx + eax*8]
mov eax, dword [edx + 0xc]
movzx edx, word [ecx + 8]
mov dword [esp + 0x3c], edx
lea eax, [eax + eax*4]
lea ebx, [ebx + eax*8]
mov al, byte [esi + 8]
or al, dl
test al, 1
je 0x51be26
push ebx
call fcn.00523f50
add esp, 4
jmp 0x51ee36
test dl, 0x12
jne 0x51be5b
push 0
push dword [esp + 0x54]
push ecx
call fcn.00524380
add esp, 0xc
test eax, eax
jne 0x5218d4
mov eax, dword [esp + 0x38]
mov ecx, 0xfffd
mov ax, word [eax + 8]
and ax, cx
movzx ecx, ax
mov dword [esp + 0x3c], ecx
jmp 0x51be8b
test edx, 0x4000
je 0x51be8b
push ecx
call fcn.005237f0
add esp, 4
test eax, eax
jne 0x5218d4
mov eax, dword [esp + 0x38]
mov ecx, 0xfffd
mov ax, word [eax + 8]
and ax, cx
movzx eax, ax
mov dword [esp + 0x3c], eax
movzx eax, word [esi + 8]
mov dword [esp + 0x2c], eax
test al, 0x12
jne 0x51bea8
push 0
push dword [esp + 0x54]
push esi
call fcn.00524380
add esp, 0xc
jmp 0x51beb8
test eax, 0x4000
je 0x51bed3
push esi
call fcn.005237f0
add esp, 4
test eax, eax
jne 0x5218d4
mov ax, word [esi + 8]
mov ecx, 0xfffd
and ax, cx
movzx eax, ax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0xc]
add eax, dword [esi + 0xc]
cdq
mov dword [esp + 0x34], eax
mov ecx, edx
mov eax, dword [edi + 0x78]
cdq
cmp ecx, edx
jg 0x52167c
mov ecx, dword [esp + 0x34]
jl 0x51befe
cmp ecx, eax
ja 0x52167c
xor eax, eax
cmp ebx, esi
sete al
push eax
lea eax, [ecx + 3]
push eax
push ebx
call fcn.00523a40
add esp, 0xc
test eax, eax
jne 0x5218d4
mov ax, word [ebx + 8]
mov ecx, 0x3e40
and ax, cx
or ax, 2
mov word [ebx + 8], ax
cmp ebx, esi
je 0x51bf4c
push dword [esi + 0xc]
push dword [esi + 0x10]
push dword [ebx + 0x10]
call sub.MSVCRT.dll_memcpy
mov eax, dword [esp + 0x38]
add esp, 0xc
mov word [esi + 8], ax
mov edi, dword [esp + 0x38]
mov eax, dword [ebx + 0x10]
add eax, dword [esi + 0xc]
push dword [edi + 0xc]
push dword [edi + 0x10]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esp + 0x48]
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov word [edi + 8], ax
mov eax, dword [ebx + 0x10]
mov byte [ecx + eax], 0
mov eax, dword [ebx + 0x10]
mov byte [ecx + eax + 1], 0
mov eax, dword [ebx + 0x10]
mov byte [ecx + eax + 2], 0
mov eax, 0x200
or word [ebx + 8], ax
mov al, byte [esp + 0x50]
mov dword [ebx + 0xc], ecx
mov byte [ebx + 0xa], al
jmp 0x51ee36
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 4]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
push esi
call fcn.004d7a70
mov ecx, dword [esp + 0x24]
movzx ebx, ax
mov eax, dword [edi + 8]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
push edi
mov dword [esp + 0x2c], edi
call fcn.004d7a70
mov edx, dword [esp + 0x28]
add esp, 8
movzx ecx, ax
mov eax, dword [esp + 0x14]
and cl, bl
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea eax, [edx + eax*8]
mov dword [esp + 0x38], eax
mov ax, word [edi + 8]
or ax, word [esi + 8]
movzx eax, ax
test cl, 4
je 0x51c136
mov eax, dword [edi + 4]
mov ebx, dword [edi]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x88], ebx
movzx eax, byte [eax]
add eax, 0xffffff96
cmp eax, 3
ja case.default.0x51c031
jmp dword [eax*4 + 0x521d90]
push edx
push ecx
lea eax, [esp + 0x90]
push eax
call fcn.004e5990
add esp, 0xc
test eax, eax
jne 0x51c13e
jmp 0x51c106
push edx
push ecx
lea eax, [esp + 0x90]
push eax
call fcn.00515b80
add esp, 0xc
test eax, eax
jne 0x51c13e
jmp 0x51c106
push edx
push ecx
lea eax, [esp + 0x90]
push eax
call fcn.00507f10
add esp, 0xc
test eax, eax
jne 0x51c13e
jmp 0x51c106
mov eax, ecx
or eax, edx
je 0x51c21f
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
jne 0x51c0c2
test ebx, ebx
jne 0x51c0c2
mov eax, dword [edi + 4]
cmp eax, 0x80000000
je 0x51c13e
push edx
push ecx
push eax
push ebx
call fcn.00415280
jmp 0x51c0f8
mov eax, dword [esp + 0x2c]
push edx
push ecx
push eax
push ebx
call fcn.00415280
jmp 0x51c0f8
mov eax, ecx
or eax, edx
je 0x51c21f
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
jne 0x51c0eb
mov ecx, 1
xor edx, edx
mov eax, dword [esp + 0x2c]
push edx
push ecx
push eax
push ebx
call fcn.00415470
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x38]
mov edx, 0x3e40
mov eax, dword [esp + 0x88]
mov dword [ecx], eax
mov eax, dword [esp + 0x8c]
mov dword [ecx + 4], eax
mov ax, word [ecx + 8]
and ax, dx
or ax, 4
mov word [ecx + 8], ax
jmp 0x51ee36
test al, 1
jne 0x51c21f
push esi
call fcn.00524d60
fstp qword [esp + 0x4c]
push edi
call fcn.00524d60
mov eax, dword [esp + 0x1c]
add esp, 8
movzx eax, byte [eax]
add eax, 0xffffff96
cmp eax, 3
ja case.default.0x51c160
jmp dword [eax*4 + 0x521da0]
fadd qword [esp + 0x48]
jmp 0x51c1ea
fsub qword [esp + 0x48]
jmp 0x51c1ea
fmul qword [esp + 0x48]
jmp 0x51c1ea
fld qword [esp + 0x48]
fldz
fucomp st(1)
fnstsw ax
test ah, 0x44
jnp 0x51c21b
fdivp st(1)
jmp 0x51c1ea
push esi
fstp st(0)
call fcn.00522d90
push dword [esp + 0x28]
mov esi, eax
mov edi, edx
call fcn.00522d90
mov ecx, esi
mov dword [esp + 0x90], eax
add esp, 8
mov dword [esp + 0x8c], edx
or ecx, edi
je 0x51c21f
mov ecx, esi
and ecx, edi
cmp ecx, 0xffffffff
jne 0x51c1cc
mov esi, 1
xor edi, edi
push edi
push esi
push edx
push eax
call fcn.00415470
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], edx
fild qword [esp + 0x130]
sub esp, 8
fst qword [esp]
call fcn.00505c80
add esp, 8
test eax, eax
jne 0x51c21d
mov ecx, dword [esp + 0x38]
mov edx, 0x3e40
mov ax, word [ecx + 8]
and ax, dx
or ax, 8
fstp qword [ecx]
mov word [ecx + 8], ax
jmp 0x51ee36
fstp st(1)
fstp st(0)
push dword [esp + 0x38]
call fcn.00523f50
add esp, 4
jmp 0x51ee36
mov eax, dword [ecx + 4]
test eax, eax
je 0x51ee3d
mov ecx, dword [esp + 0x20]
lea eax, [eax + eax*4]
push 0
push 0
lea eax, [ecx + eax*8]
push eax
call fcn.00523f10
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea esi, [ebx + eax*8]
mov eax, dword [edx + 8]
lea eax, [eax + eax*4]
lea ecx, [ebx + eax*8]
mov eax, dword [edx + 0xc]
lea eax, [eax + eax*4]
lea edx, [ebx + eax*8]
mov al, byte [ecx + 8]
or al, byte [esi + 8]
mov dword [esp + 0x40], edx
test al, 1
je 0x51c2ac
push edx
call fcn.00523f50
add esp, 4
jmp 0x51ee36
push ecx
call fcn.00522d90
push esi
mov ebx, eax
mov edi, edx
call fcn.00522d90
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x14]
mov cl, byte [eax]
cmp cl, 0x66
jne 0x51c2d5
and ebx, esi
and edi, edx
jmp 0x51c390
cmp cl, 0x67
jne 0x51c2e3
or ebx, esi
or edi, edx
jmp 0x51c390
mov eax, esi
or eax, edx
je 0x51c390
test edx, edx
jg 0x51c31b
jl 0x51c2f7
test esi, esi
jae 0x51c310
mov al, 0xd1
sub al, cl
mov cl, al
cmp edx, 0xffffffff
jl 0x51c31b
jg 0x51c309
cmp esi, 0xffffffc0
jbe 0x51c31b
neg esi
adc edx, 0
neg edx
test edx, edx
jl 0x51c33d
jg 0x51c31b
cmp esi, 0x40
jb 0x51c33d
test edi, edi
jg 0x51c334
jl 0x51c325
test ebx, ebx
jae 0x51c334
cmp cl, 0x68
je 0x51c334
or eax, 0xffffffff
cdq
mov ebx, eax
mov edi, edx
jmp 0x51c390
xor eax, eax
cdq
mov ebx, eax
mov edi, edx
jmp 0x51c390
cmp cl, 0x68
mov eax, ebx
mov edx, edi
mov ecx, esi
jne 0x51c353
call fcn.00415420
mov ecx, eax
mov eax, edx
jmp 0x51c38c
call fcn.004159c0
mov ecx, eax
mov eax, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
test edi, edi
jg 0x51c38c
jl 0x51c36e
test ebx, ebx
jae 0x51c38c
mov ecx, 0x40
or eax, 0xffffffff
sub ecx, esi
or edx, 0xffffffff
call fcn.00415420
mov ecx, dword [esp + 0x24]
or ecx, eax
mov eax, dword [esp + 0x28]
or eax, edx
mov ebx, ecx
mov edi, eax
mov ecx, dword [esp + 0x40]
mov edx, 0x3e40
mov ax, word [ecx + 8]
and ax, dx
mov dword [ecx], ebx
or ax, 4
mov dword [ecx + 4], edi
mov word [ecx + 8], ax
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
push esi
call fcn.00523c50
mov eax, dword [esp + 0x18]
add esp, 4
mov eax, dword [eax + 8]
cdq
add dword [esi], eax
adc dword [esi + 4], edx
jmp 0x51ee36
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x20]
lea eax, [eax + eax*4]
lea esi, [edx + eax*8]
movzx eax, word [esi + 8]
test al, 4
jne 0x51c435
test al, 8
jne 0x51c408
test al, 2
je 0x51c415
push 1
push esi
call fcn.004a9f60
add esp, 8
jmp 0x51c411
push esi
call fcn.00522dd0
add esp, 4
mov ecx, dword [esp + 0x14]
movzx eax, word [esi + 8]
test al, 4
jne 0x51c435
cmp dword [ecx + 8], 0
jne 0x51b73b
mov edx, 0x14
mov dword [esp + 0x1c], edx
jmp 0x51ec85
mov edi, dword [esp + 0x54]
and eax, 0x3e40
mov ebx, dword [esp + 0x84]
or eax, 4
mov word [esi + 8], ax
add ecx, 0x14
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x18]
jmp 0x51b6d3
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x20]
lea eax, [eax + eax*4]
test byte [edx + eax*8 + 8], 0x24
lea eax, [edx + eax*8]
je 0x51ee3d
push eax
call fcn.00523e30
mov ecx, dword [esp + 0x18]
add esp, 4
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
mov eax, 0x4000
test word [esi + 8], ax
je 0x51c4ca
push esi
call fcn.005237f0
mov edx, eax
add esp, 4
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov eax, dword [esp + 0x14]
push dword [esp + 0x50]
movzx eax, byte [eax + 8]
push eax
push esi
call fcn.00523660
add esp, 0xc
mov edx, eax
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
mov eax, dword [edx + 0xc]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
movzx ecx, word [edi + 8]
movzx eax, word [esi + 8]
mov edx, eax
mov dword [esp + 0x34], ecx
and edx, ecx
mov dword [esp + 0x30], eax
test dl, 4
je 0x51c5a4
mov ecx, dword [esi]
mov esi, dword [esi + 4]
mov edx, dword [edi + 4]
mov eax, dword [edi]
cmp esi, edx
jl 0x51c560
jg 0x51c53a
cmp ecx, eax
jbe 0x51c556
mov eax, dword [0x69bec8]
mov dword [esp + 0x5c], 1
cmp byte [ebx + eax], 0
jne 0x51b737
jmp 0x51ee36
cmp esi, edx
jg 0x51c595
jl 0x51c560
cmp ecx, eax
jae 0x51c595
mov eax, dword [0x69bec0]
mov dword [esp + 0x5c], 0xffffffff
cmp byte [ebx + eax], 0
mov ecx, dword [esp + 0x14]
mov esi, dword [ebp + 8]
jne 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov eax, dword [0x69bec4]
mov dword [esp + 0x5c], 0
jmp 0x51c56d
movzx ebx, word [edi + 8]
mov ecx, eax
or ecx, ebx
test cl, 1
je 0x51c62a
mov ecx, dword [esp + 0x14]
movzx ecx, word [ecx + 2]
test cl, cl
jns 0x51c5fb
test dl, 1
je 0x51c5e2
test eax, 0x100
jne 0x51c5e2
mov eax, dword [esp + 0x14]
mov dword [esp + 0x5c], 0
movzx ecx, byte [eax]
mov eax, dword [0x69bec4]
jmp 0x51c731
test byte [esp + 0x30], 1
mov edx, 0
sete dl
lea edx, [edx*2 - 1]
jmp 0x51c6ff
mov esi, dword [ebp + 8]
test cl, 0x10
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x5c], 1
jne 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov ebx, dword [esp + 0x14]
mov al, byte [ebx + 2]
and al, 0x47
cmp al, 0x43
jl 0x51c678
test cl, 2
je 0x51c6f0
mov al, byte [esp + 0x34]
and al, 0x2e
cmp al, 2
jne 0x51c65d
push 0
push edi
call fcn.004a9f60
movzx eax, word [esi + 8]
add esp, 8
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x30]
and al, 0x2e
cmp al, 2
jne 0x51c6f0
push 0
push esi
call fcn.004a9f60
add esp, 8
jmp 0x51c6f0
cmp al, 0x42
jne 0x51c6f0
mov al, byte [esp + 0x34]
test al, 2
jne 0x51c6bf
test al, 0x2c
je 0x51c6bf
push 1
push dword [esp + 0x54]
push edi
call fcn.00524380
mov ax, word [edi + 8]
mov ecx, 0x3e40
xor ax, word [esp + 0x40]
add esp, 0xc
and ax, cx
xor word [esp + 0x34], ax
cmp edi, esi
jne 0x51c6bf
mov eax, dword [esp + 0x34]
or eax, 2
movzx eax, ax
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x30]
test al, 2
jne 0x51c6f0
test al, 0x2c
je 0x51c6f0
push 1
push dword [esp + 0x54]
push esi
call fcn.00524380
mov ax, word [esi + 8]
mov ecx, 0x3e40
xor ax, word [esp + 0x3c]
add esp, 0xc
and ax, cx
xor word [esp + 0x30], ax
push dword [ebx + 0x10]
push edi
push esi
call fcn.00507c70
add esp, 0xc
mov edx, eax
mov dword [esp + 0x5c], edx
test edx, edx
jns 0x51c715
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax]
mov eax, dword [0x69bec0]
jmp 0x51c731
jne 0x51c725
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax]
mov eax, dword [0x69bec4]
jmp 0x51c731
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax]
mov eax, dword [0x69bec8]
movzx ecx, byte [ecx + eax]
movzx eax, word [esp + 0x30]
test ecx, ecx
mov ecx, dword [esp + 0x14]
mov word [esi + 8], ax
movzx eax, word [esp + 0x34]
mov esi, dword [ebp + 8]
mov word [edi + 8], ax
jne 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
cmp dword [esp + 0x5c], 0
je 0x51b73e
mov edi, dword [esp + 0x54]
add ecx, 0x14
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov ebx, dword [esp + 0x14]
test byte [ebx + 2], 1
jne 0x51c799
xor eax, eax
jmp 0x51c79f
mov eax, dword [ebx - 4]
add eax, 4
mov ecx, dword [ebx + 0xc]
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + 0x10]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esi + 8]
xor esi, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x38], ebx
test ecx, ecx
jle 0x51ee36
lea ebx, [edx + 0x14]
test eax, eax
je 0x51c7d9
mov edi, dword [eax + esi*4]
jmp 0x51c7db
mov edi, esi
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x20]
push dword [ebx]
movzx eax, byte [eax + esi]
and eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
add eax, edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
mov eax, dword [esp + 0x34]
add eax, edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
call fcn.00507c70
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x5c], ecx
test ecx, ecx
jne 0x51c832
mov eax, dword [esp + 0x28]
inc esi
mov edx, dword [esp + 0x40]
add ebx, 4
cmp esi, dword [esp + 0x24]
jl 0x51c7d0
jmp 0x51ee36
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x10]
test byte [esi + eax], 2
je 0x51c869
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
add eax, edi
lea eax, [eax + eax*4]
test byte [ebx + eax*8 + 8], 1
jne 0x51c863
mov eax, dword [esp + 0x38]
add eax, edi
lea eax, [eax + eax*4]
test byte [ebx + eax*8 + 8], 1
je 0x51c869
neg ecx
mov dword [esp + 0x5c], ecx
cmp dword [esp + 0x3c], 0
je 0x51ee36
neg ecx
mov dword [esp + 0x5c], ecx
jmp 0x51ee36
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
test eax, eax
jns 0x51c8b2
mov eax, dword [edx + 4]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x18]
add ecx, 0xffffffec
add ecx, 0x14
jmp 0x51b6d3
jne 0x51c8d7
mov eax, dword [edx + 8]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x18]
add ecx, 0xffffffec
add ecx, 0x14
jmp 0x51b6d3
mov eax, dword [edx + 0xc]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x18]
add ecx, 0xffffffec
add ecx, 0x14
jmp 0x51b6d3
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push 2
mov eax, dword [ebx + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
call fcn.0051a7d0
mov ecx, dword [ebx + 8]
mov esi, eax
mov ebx, dword [esp + 0x28]
push 2
lea ecx, [ecx + ecx*4]
lea ecx, [ebx + ecx*8]
push ecx
call fcn.0051a7d0
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea eax, [eax + esi*2]
cmp byte [ecx], 0x2c
jne 0x51c943
movzx edx, byte [esi + eax + 0x57250c]
jmp 0x51c94b
movzx edx, byte [esi + eax + 0x57255c]
mov eax, dword [ecx + 0xc]
mov esi, dword [ebp + 8]
lea ecx, [eax + eax*4]
cmp edx, 2
jne 0x51c98a
mov ax, word [ebx + ecx*8 + 8]
mov edx, 0x3e40
mov edi, dword [esp + 0x54]
and ax, dx
or ax, 1
mov word [ebx + ecx*8 + 8], ax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edi, dword [esp + 0x54]
mov eax, edx
cdq
mov dword [ebx + ecx*8], eax
mov ax, word [ebx + ecx*8 + 8]
mov dword [ebx + ecx*8 + 4], edx
mov edx, 0x3e40
and ax, dx
or ax, 4
mov word [ebx + ecx*8 + 8], ax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 4]
push dword [edx + 0xc]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
push eax
call fcn.0051a7d0
mov ecx, dword [esp + 0x1c]
xor eax, dword [ecx + 0x10]
cdq
push edx
push eax
mov eax, dword [ecx + 8]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
push eax
call fcn.00523f10
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
test byte [ebx + eax*8 + 8], 1
lea ecx, [ebx + eax*8]
mov eax, dword [edx + 8]
lea eax, [eax + eax*4]
lea esi, [ebx + eax*8]
jne 0x520c42
push 0
push ecx
call fcn.0051a7d0
neg eax
sbb eax, eax
inc eax
cdq
push edx
push eax
push esi
call fcn.00523f10
add esp, 0x14
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea edi, [ebx + eax*8]
mov eax, dword [edx + 8]
lea eax, [eax + eax*4]
lea esi, [ebx + eax*8]
push esi
call fcn.00523f50
add esp, 4
test byte [edi + 8], 1
jne 0x51ee36
mov eax, 4
push edi
mov word [esi + 8], ax
call fcn.00522d90
not eax
not edx
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x51ee36
mov esi, dword [esi + 0xd8]
test esi, esi
je 0x51cb18
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov esi, dword [esi + 0x18]
sub ecx, dword [eax + 0x70]
mov eax, 0x66666667
imul ecx
mov eax, 1
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, ecx
and ecx, 7
shr edx, 3
shl eax, cl
mov bl, byte [edx + esi]
test bl, al
jne 0x51b737
mov edi, dword [esp + 0x54]
mov al, 1
shl al, cl
mov ecx, dword [esp + 0x14]
or al, bl
mov ebx, dword [esp + 0x84]
mov byte [edx + esi], al
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x70]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
add ecx, 0x14
mov eax, dword [esp + 0x18]
jmp 0x51b6d3
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x70]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 4]
je 0x51b73e
mov eax, dword [esi + 0x70]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
add ecx, 0x14
mov eax, dword [esp + 0x18]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 4]
push dword [edx + 0xc]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
call fcn.0051a7d0
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp dword [edx + 0xc], eax
sete al
push eax
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
call fcn.0051a7d0
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x20]
lea eax, [eax + eax*4]
test byte [edx + eax*8 + 8], 1
jne 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x20]
lea eax, [eax + eax*4]
movzx eax, word [edx + eax*8 + 8]
test al, 1
jne 0x51b73e
and eax, 0x3f
movzx eax, byte [eax + 0x5737e8]
cmp eax, dword [ecx + 0xc]
jne 0x51ee3d
jmp 0x51b73e
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
test byte [ebx + eax*8 + 8], 1
jne 0x51cc56
mov eax, dword [edx + 0xc]
lea eax, [eax + eax*4]
test byte [ebx + eax*8 + 8], 1
jne 0x51cc56
push 0
push 0
jmp 0x51bd7f
mov eax, dword [edx + 8]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
push eax
call fcn.00523f50
mov ecx, dword [esp + 0x18]
add esp, 4
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x20]
lea eax, [eax + eax*4]
test byte [edx + eax*8 + 8], 1
je 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 0x68]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 2], 0
je 0x51b941
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
call fcn.00523f50
mov ecx, dword [esp + 0x18]
add esp, 4
jmp 0x51b73e
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [edx + 4]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x58], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0051af20
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x58]
mov eax, dword [eax + 0xc]
mov edx, dword [ebx + 0x48]
mov dword [esp + 0x3c], edx
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*8]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x34], ecx
cmp eax, dword [esi + 0x20]
je 0x51ce35
cmp byte [ebx + 2], 0
je 0x51cd9b
cmp byte [ebx], 3
jne 0x51cd77
mov eax, dword [ebx + 0x24]
lea esi, [ebx + 0x54]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + ecx*8 + 0xc]
mov dword [esi], eax
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + ecx*8 + 0x10]
mov dword [ebx + 0x4c], eax
jmp 0x51cdcd
push ecx
call fcn.00523f50
mov ecx, dword [esp + 0x18]
add esp, 4
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov esi, dword [ebx + 0x2c]
push esi
call fcn.004cdce0
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x50], eax
lea eax, [ebx + 0x54]
push eax
push esi
call fcn.004eb9f0
mov dword [ebx + 0x4c], eax
add esp, 0xc
mov eax, dword [ebx + 0x50]
cmp eax, dword [edi + 0x78]
ja 0x52167c
mov edx, dword [esp + 0x3c]
lea esi, [ebx + 0x54]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x20], eax
mov ecx, dword [ebx + 0x4c]
mov al, byte [ecx]
cmp al, 0x80
jae 0x51cdeb
movzx eax, al
mov dword [edx], eax
mov eax, 1
jmp 0x51cdfc
push edx
push ecx
call fcn.00503790
mov edx, dword [esp + 0x44]
add esp, 8
movzx eax, al
movzx eax, al
mov dword [ebx + 0x34], eax
xor eax, eax
mov word [ebx + 0x3e], ax
mov eax, dword [esi]
cmp eax, dword [edx]
jae 0x51cf35
mov dword [ebx + 0x4c], 0
mov dword [esi], 0
mov eax, dword [edx]
cmp eax, 0x18003
ja 0x51d037
cmp eax, dword [ebx + 0x50]
ja 0x51d037
movzx eax, word [ebx + 0x3e]
mov esi, dword [esp + 0x70]
cmp eax, esi
ja 0x51d0b4
mov eax, dword [ebx + 0x34]
cmp eax, dword [edx]
jae 0x51d069
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x51ced3
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], eax
mov dword [esp + 0x1c0], eax
mov dword [esp + 0x1c4], eax
mov dword [esp + 0x1c8], eax
mov dword [esp + 0x1cc], eax
mov dword [esp + 0x1d0], eax
mov dword [esp + 0x1d4], eax
mov dword [esp + 0x1d8], eax
mov dword [esp + 0x1dc], eax
lea eax, [esp + 0x1b8]
push eax
push dword [edx]
push dword [ebx + 0x2c]
call fcn.005239e0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov eax, dword [esp + 0x1c8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
movzx eax, word [ebx + 0x3e]
mov esi, dword [ebx + 0x34]
add esi, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov ecx, dword [edx + eax*4]
mov edx, dword [edx]
add edx, dword [esp + 0x38]
add eax, 0x16
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], edx
lea eax, [ebx + eax*4]
mov dword [esp + 0x28], eax
jmp 0x51cf10
movzx ebx, byte [esi]
mov dword [esp + 0x9c], ebx
mov dword [eax], ebx
cmp ebx, 0x80
jae 0x51cf3a
movzx eax, byte [ebx + 0x574230]
inc esi
cdq
add ecx, eax
adc dword [esp + 0x30], edx
jmp 0x51cf6e
mov eax, dword [ebx + 0x4c]
jmp 0x51cecf
lea eax, [esp + 0x9c]
push eax
push esi
call fcn.00503790
mov ebx, dword [esp + 0xa4]
movzx eax, al
add esi, eax
mov eax, dword [esp + 0x30]
push ebx
mov dword [eax], ebx
call fcn.005257f0
mov ecx, dword [esp + 0x4c]
add esp, 0xc
add ecx, eax
adc dword [esp + 0x30], 0
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
inc edx
mov eax, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x40], ecx
mov dword [esp + 0x24], edx
mov dword [edi + edx*4], ecx
mov edi, dword [esp + 0x54]
mov dword [esp + 0x28], eax
cmp edx, dword [esp + 0x70]
ja 0x51cfa7
cmp esi, dword [esp + 0x2c]
jb 0x51cf10
mov eax, dword [esp + 0x2c]
jmp 0x51cfaf
mov eax, dword [esp + 0x2c]
cmp esi, eax
jb 0x51cfc6
cmp esi, eax
mov eax, dword [esp + 0x58]
ja 0x51cfe9
cmp ecx, dword [eax + 0x50]
jne 0x51cfe9
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x51cfe5
jmp 0x51cfca
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x58]
mov edi, dword [edi + 0x50]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x54]
test eax, eax
jb 0x51cff8
ja 0x51cfe5
cmp ecx, dword [esp + 0x24]
jbe 0x51cff8
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
cmp dword [ecx], 0
jne 0x51d021
mov esi, dword [esp + 0x2c]
xor edx, edx
mov eax, dword [esp + 0x58]
sub esi, dword [esp + 0x38]
mov word [eax + 0x3e], dx
mov dword [eax + 0x34], esi
mov esi, eax
cmp dword [esi + 0x4c], 0
jne 0x51d076
lea eax, [esp + 0x1b8]
push eax
call fcn.00523e80
add esp, 4
jmp 0x51d076
cmp dword [eax + 0x4c], 0
jne 0x51d037
lea eax, [esp + 0x1b8]
push eax
call fcn.00523e80
add esp, 4
mov ebx, dword [esp + 0x44]
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x521405
mov esi, dword [ebp + 8]
lea eax, [eax + eax*4]
mov edi, dword [esp + 0x54]
lea eax, [eax - 5]
lea ecx, [ebx + eax*4]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x84]
add ecx, 0x14
jmp 0x51b6d3
mov esi, dword [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0x9c], ebx
movzx eax, word [esi + 0x3e]
cmp eax, dword [esp + 0x70]
ja 0x51d0c3
mov eax, dword [esp + 0x14]
cmp byte [eax + 1], 0xf5
jne 0x51d0a3
push 0x800
push dword [eax + 0x10]
push dword [esp + 0x3c]
call fcn.00524320
add esp, 0xc
jmp 0x51ee36
push dword [esp + 0x34]
call fcn.00523f50
add esp, 4
jmp 0x51ee36
mov ebx, dword [ebx + esi*4 + 0x58]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x9c], ebx
mov edx, dword [esp + 0x34]
mov eax, 0x2400
test word [edx + 8], ax
je 0x51d0df
push edx
call fcn.00523f50
mov edx, dword [esp + 0x38]
add esp, 4
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 0x54]
cmp eax, dword [ecx + edi*4 + 4]
mov edi, dword [esp + 0x54]
jb 0x51d192
mov eax, dword [esi + 0x4c]
mov esi, dword [esp + 0x70]
add eax, dword [ecx + esi*4]
mov dword [esp + 0x24], eax
cmp ebx, 0xc
jae 0x51d11b
push edx
push ebx
push eax
call fcn.00525610
add esp, 0xc
jmp 0x51ee36
mov al, byte [esp + 0x50]
lea esi, [ebx - 0xc]
shr esi, 1
mov byte [edx + 0xa], al
mov dword [edx + 0xc], esi
lea eax, [esi + 2]
cmp dword [edx + 0x18], eax
jge 0x51d155
push 0
push eax
mov ecx, 1
push edx
mov word [edx + 8], cx
call fcn.00523a40
add esp, 0xc
test eax, eax
jne 0x5218d4
mov edx, dword [esp + 0x34]
jmp 0x51d15b
mov eax, dword [edx + 0x14]
mov dword [edx + 0x10], eax
push esi
push dword [esp + 0x28]
push dword [edx + 0x10]
call sub.MSVCRT.dll_memcpy
mov ecx, dword [esp + 0x40]
add esp, 0xc
and ebx, 1
mov eax, dword [ecx + 0x10]
mov byte [esi + eax], 0
mov eax, dword [ecx + 0x10]
mov byte [esi + eax + 1], 0
mov ax, word [ebx*2 + 0x572aac]
mov word [ecx + 8], ax
jmp 0x51ee36
mov al, byte [esp + 0x50]
mov byte [edx + 0xa], al
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 2]
test al, 0xc0
je 0x51d1b3
cmp ebx, 0xc
jb 0x51d1af
test bl, 1
je 0x51d1c0
test al, al
js 0x51d1c0
push ebx
call fcn.005257f0
add esp, 4
test eax, eax
jne 0x51d1d4
push edx
push ebx
push 0x5727e0
call fcn.00525610
add esp, 0xc
jmp 0x51ee36
push edx
push eax
mov eax, dword [esp + 0x78]
push dword [ecx + eax*4]
push dword [esi + 0x2c]
call fcn.00523900
mov edx, eax
add esp, 0x10
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov esi, dword [esp + 0x34]
push esi
push ebx
push dword [esi + 0x10]
call fcn.00525610
mov eax, 0xefff
add esp, 0xc
and word [esi + 8], ax
jmp 0x51ee36
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x24], edx
lea eax, [eax + eax*4]
mov ebx, dword [edx + 4]
lea esi, [ecx + eax*8]
xor ecx, ecx
mov dword [esp + 0x48], ebx
xor eax, eax
mov dword [esp + 0x28], ecx
cmp ax, word [edx + 0x22]
jge 0x51ee36
add ebx, 0xe
lea ecx, [ecx]
movzx eax, word [ebx]
test al, 0x60
je 0x51d26d
test al, 0x20
jne 0x51d321
mov eax, dword [esp + 0x14]
cmp dword [eax + 0xc], 0
jne 0x51d31e
push dword [esp + 0x50]
movzx eax, byte [ebx - 6]
push eax
push esi
call fcn.004a9ef0
movzx ecx, word [esi + 8]
add esp, 0xc
test cl, 1
jne case.default.0x51d29d
mov eax, dword [ebx - 0xa]
shr eax, 4
and eax, 0xf
add eax, 0xfffffffe
cmp eax, 4
ja case.default.0x51d29d
jmp dword [eax*4 + 0x521db0]
test cl, 0x10
jmp 0x51d310
test cl, 4
jmp 0x51d310
test cl, 2
jmp 0x51d310
test cl, 4
je 0x51d30d
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x168], edx
mov dword [esp + 0x16c], eax
cmp eax, 0x7fff
jg 0x51d2f5
jl 0x51d2d9
cmp edx, 0xffffffff
ja 0x51d2f5
cmp eax, 0xffff8000
jl 0x51d2f5
jg 0x51d2e6
test edx, edx
jb 0x51d2f5
and ecx, 0xfffb
or ecx, 0x20
mov word [esi + 8], cx
jmp case.default.0x51d29d
fild qword [esp + 0x168]
and ecx, 0xfffb
or ecx, 8
mov word [esi + 8], cx
fstp qword [esi]
jmp case.default.0x51d29d
test cl, 0x28
je 0x52141d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esi, 0x28
movsx eax, word [edx + 0x22]
inc ecx
add ebx, 0x10
mov dword [esp + 0x28], ecx
cmp ecx, eax
jl 0x51d250
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 4]
mov edi, dword [edx + 0x10]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
mov edi, edi
push dword [esp + 0x50]
movzx eax, byte [edi]
push eax
push esi
call fcn.004a9ef0
add esp, 0xc
cmp byte [edi], 0x45
jne 0x51d3bd
movzx eax, word [esi + 8]
test al, 4
je 0x51d3bd
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x128], edx
mov dword [esp + 0x12c], ecx
cmp ecx, 0x7fff
jg 0x51d3a8
jl 0x51d390
cmp edx, 0xffffffff
ja 0x51d3a8
cmp ecx, 0xffff8000
jl 0x51d3a8
jg 0x51d39e
test edx, edx
jb 0x51d3a8
and eax, 0xfffb
or eax, 0x20
jmp 0x51d3b9
fild qword [esp + 0x128]
and eax, 0xfffb
or eax, 8
fstp qword [esi]
mov word [esi + 8], ax
inc edi
cmp byte [edi], 0
je 0x51ee36
add esi, 0x28
jmp 0x51d350
xor esi, esi
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x28], esi
xor edx, edx
mov esi, dword [esp + 0x14]
xor ebx, ebx
mov dword [esp + 0x30], edx
xor edi, edi
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
lea eax, [eax + eax*4]
lea esi, [esi + eax*8]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], esi
mov eax, dword [eax + 8]
lea eax, [eax + eax*4]
lea eax, [eax - 5]
lea eax, [esi + eax*8]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x9b]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea eax, [edx + eax*8]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], eax
test ecx, ecx
je 0x51d47a
add esi, 8
mov ebx, ecx
push dword [esp + 0x50]
movzx eax, byte [ebx]
push eax
lea eax, [esi - 8]
push eax
call fcn.004a9ef0
add esp, 0xc
cmp byte [ebx], 0x45
jne 0x51d46b
movzx eax, word [esi]
test al, 4
je 0x51d46b
and eax, 0xfffb
or eax, 0x20
mov word [esi], ax
inc ebx
add esi, 0x28
cmp byte [ebx], 0
jne 0x51d440
mov edx, dword [esp + 0x30]
mov ebx, edi
mov esi, dword [esp + 0x40]
add esi, 0x1c
movzx ecx, word [esi - 0x14]
test cl, 1
je 0x51d49f
and ecx, 0x4000
neg ecx
sbb ecx, ecx
and ecx, 0xa
inc edx
mov dword [esi], ecx
jmp 0x51d687
test cl, 0x24
je 0x51d5f7
mov edx, dword [esi - 0x18]
mov eax, dword [esi - 0x1c]
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], edx
test edx, edx
jg 0x51d4d1
jl 0x51d4c6
test eax, eax
jae 0x51d4d1
mov edx, eax
mov eax, dword [esi - 0x18]
not edx
not eax
jmp 0x51d4d6
mov edx, eax
mov eax, dword [esi - 0x18]
inc dword [esp + 0x30]
test eax, eax
ja 0x51d598
jb 0x51d4e9
cmp edx, 0x7f
ja 0x51d52f
mov eax, dword [esi - 0x1c]
and eax, 1
mov dword [esp + 0x24], 0
cmp eax, dword [esi - 0x1c]
jne 0x51d51a
mov eax, dword [esp + 0x24]
cmp eax, dword [esi - 0x18]
jne 0x51d51a
cmp dword [esp + 0x48], 4
jl 0x51d51a
lea eax, [edx + 8]
mov edx, dword [esp + 0x30]
mov dword [esi], eax
jmp 0x51d68b
mov edx, dword [esp + 0x30]
add ebx, 1
mov dword [esi], 1
adc edi, 0
jmp 0x51d68b
test eax, eax
ja 0x51d598
jb 0x51d53d
cmp edx, 0x7fff
ja 0x51d552
mov edx, dword [esp + 0x30]
add ebx, 2
mov dword [esi], 2
adc edi, 0
jmp 0x51d68b
test eax, eax
ja 0x51d598
jb 0x51d560
cmp edx, 0x7fffff
ja 0x51d575
mov edx, dword [esp + 0x30]
add ebx, 3
mov dword [esi], 3
adc edi, 0
jmp 0x51d68b
test eax, eax
ja 0x51d598
jb 0x51d583
cmp edx, 0x7fffffff
ja 0x51d598
mov edx, dword [esp + 0x30]
add ebx, 4
mov dword [esi], 4
adc edi, 0
jmp 0x51d68b
cmp eax, 0x7fff
ja 0x51d5bb
jb 0x51d5a6
cmp edx, 0xffffffff
ja 0x51d5bb
mov edx, dword [esp + 0x30]
add ebx, 6
mov dword [esi], 5
adc edi, 0
jmp 0x51d68b
mov edx, dword [esp + 0x30]
add ebx, 8
adc edi, 0
test cl, 0x20
je 0x51d5ec
fild qword [esp + 0x160]
and ecx, 0xffdf
mov dword [esi], 7
or ecx, 8
mov word [esi - 0x14], cx
fstp qword [esi - 0x1c]
jmp 0x51d68b
mov dword [esi], 6
jmp 0x51d68b
test cl, 8
je 0x51d60b
inc edx
mov dword [esi], 7
add ebx, 8
adc edi, 0
jmp 0x51d687
mov edx, dword [esi - 0x10]
mov eax, ecx
shr eax, 1
and eax, 1
mov dword [esp + 0x24], edx
lea eax, [eax + edx*2]
add eax, 0xc
mov dword [esp + 0x2c], eax
test ecx, 0x4000
je 0x51d66b
mov edx, dword [esi - 0x1c]
lea ecx, [esi - 0x1c]
lea eax, [eax + edx*2]
mov dword [esp + 0x2c], eax
mov eax, ebx
or eax, edi
je 0x51d658
push ecx
call fcn.005237f0
add esp, 4
test eax, eax
jne 0x5218d0
mov edx, dword [esp + 0x24]
add edx, dword [esi - 0x1c]
jmp 0x51d667
mov eax, edx
cdq
add dword [esp + 0x28], eax
adc dword [esp + 0x3c], edx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
add ebx, edx
push 0
push eax
adc edi, 0
call fcn.0051a230
mov edx, dword [esp + 0x38]
add esp, 8
add edx, eax
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
mov dword [esp + 0x30], edx
lea eax, [esi - 0x1c]
cmp eax, dword [esp + 0x34]
je 0x51d69c
sub esi, 0x28
jmp 0x51d481
cmp edx, 0x7e
jle 0x51d6ca
mov eax, edx
cdq
push edx
push eax
call fcn.0051a230
mov esi, eax
mov eax, dword [esp + 0x38]
add eax, esi
mov dword [esp + 0x38], eax
cdq
push edx
push eax
call fcn.0051a230
mov edx, dword [esp + 0x40]
add esp, 0x10
cmp esi, eax
jge 0x51d6cf
inc edx
mov dword [esp + 0x30], edx
mov esi, dword [esp + 0x28]
mov eax, edx
cdq
mov ecx, eax
mov eax, edx
add ebx, ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], ecx
mov ecx, ebx
adc edi, eax
mov eax, dword [esp + 0x38]
add ecx, esi
adc edi, dword [esp + 0x3c]
mov eax, dword [eax + 0x18]
cdq
cmp edi, edx
jg 0x51d70c
jl 0x51d700
cmp ecx, eax
ja 0x51d70c
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x14]
mov dword [ecx + 0x10], eax
jmp 0x51d73f
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x78]
cdq
cmp edi, edx
jg 0x521678
jl 0x51d726
cmp ecx, eax
ja 0x521678
push ebx
push dword [esp + 0x3c]
call fcn.00523740
add esp, 8
test eax, eax
jne 0x5218d0
mov ecx, dword [esp + 0x38]
mov eax, 0x10
mov dword [ecx + 0xc], ebx
mov word [ecx + 8], ax
mov eax, esi
or eax, dword [esp + 0x3c]
je 0x51d75e
mov eax, 0x4010
mov dword [ecx], esi
mov word [ecx + 8], ax
mov eax, dword [esp + 0x30]
mov esi, dword [ecx + 0x10]
lea edi, [esi + eax]
cmp eax, 0x80
jae 0x51d778
mov byte [esi], al
mov eax, 1
jmp 0x51d789
push dword [esp + 0x48]
push dword [esp + 0x28]
push esi
call fcn.0050ecb0
add esp, 0xc
mov ebx, dword [esp + 0x34]
movzx eax, al
add esi, eax
mov ebx, dword [ebx + 0x1c]
cmp ebx, 0x80
jae 0x51d7a6
mov byte [esi], bl
mov eax, 1
jmp 0x51d7b2
push 0
push ebx
push esi
call fcn.0050ecb0
add esp, 0xc
push ebx
mov ebx, dword [esp + 0x38]
movzx eax, al
push ebx
push edi
add esi, eax
call fcn.00525790
add ebx, 0x28
add esp, 0xc
add edi, eax
mov dword [esp + 0x34], ebx
cmp ebx, dword [esp + 0x40]
jbe 0x51d792
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
cmp dword [edx + 0xc], 0
mov ecx, dword [edx + 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x2c]
je 0x51d80d
push eax
call fcn.004ebc10
mov esi, eax
mov ebx, edx
add esp, 4
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], ebx
jmp 0x51d851
lea ecx, [esp + 0xa8]
mov dword [esp + 0xa8], 0
push ecx
push eax
push edi
mov dword [esp + 0xb8], 0
call fcn.004e96c0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov ebx, dword [esp + 0xac]
mov esi, dword [esp + 0xa8]
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.004d82d0
add esp, 8
mov dword [eax], esi
mov dword [eax + 4], ebx
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
cmp dword [edi + 0x128], 0
jne 0x5218c2
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
cmp eax, edx
jb case.0x51b6f9.88
mov ebx, dword [esp + 0x68]
ja 0x51d8a0
cmp dword [esp + 0x84], ebx
jb 0x521139
lea esp, [esp]
mov eax, dword [edi + 0x170]
test eax, eax
je 0x521135
add ebx, dword [edi + 0x178]
push dword [edi + 0x174]
adc edx, 0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], edx
call eax
add esp, 4
test eax, eax
jne 0x52185f
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
cmp eax, edx
ja 0x51d8a0
jb 0x51d8e9
cmp dword [esp + 0x84], ebx
jae 0x51d8a0
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x54]
add ecx, 0x14
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], eax
test ecx, ecx
jne 0x51d9d0
cmp dword [edi + 0xc4], ecx
jg 0x521475
push eax
call fcn.00515b60
mov ecx, dword [edi + 0x1f8]
mov ebx, eax
add ecx, dword [edi + 0x1f4]
push ecx
push 0
push edi
call fcn.00527410
mov edx, eax
add esp, 0x10
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
push edx
lea eax, [ebx + 0x21]
push eax
push edi
call fcn.004f0ee0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x51ee36
lea ecx, [ebx + 1]
push ecx
push dword [esp + 0x2c]
lea edx, [esi + 0x20]
push edx
mov dword [esi], edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp byte [edi + 0x55], 0
je 0x51d992
mov byte [edi + 0x55], 0
mov byte [edi + 0x5d], 1
jmp 0x51d998
inc dword [edi + 0x1f4]
mov eax, dword [edi + 0x1e8]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x200]
mov dword [edi + 0x1e8], esi
mov dword [esi + 8], eax
mov eax, dword [edi + 0x204]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x208]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x20c]
mov dword [esi + 0x14], eax
jmp 0x51ee36
mov esi, dword [edi + 0x1e8]
xor ebx, ebx
push eax
test esi, esi
je 0x5214e0
push dword [esi]
call fcn.00515ad0
add esp, 8
test eax, eax
je 0x51d9f9
mov esi, dword [esi + 0x18]
inc ebx
mov eax, dword [esp + 0x28]
jmp 0x51d9d8
cmp dword [edi + 0xc4], 0
mov ecx, dword [esp + 0x3c]
jle 0x51da0f
cmp ecx, 1
je 0x521491
cmp dword [esi + 0x18], 0
jne 0x51da7a
cmp byte [edi + 0x5d], 0
je 0x51da7a
mov dword [esp + 0x28], 1
cmp ecx, 1
jne 0x51da82
push ecx
push dword [ebp + 8]
call fcn.0051aa40
mov ecx, eax
add esp, 8
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x521806
push dword [ebp + 8]
mov byte [edi + 0x55], 1
call fcn.005227c0
add esp, 4
cmp eax, 5
je 0x5214b0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x28]
mov dword [esp + 0x1c], edx
test edx, edx
je 0x51da71
mov byte [edi + 0x55], 0
jmp 0x51db7c
mov byte [edi + 0x5d], 0
jmp 0x51db84
mov dword [esp + 0x28], 0
mov eax, dword [edi + 0x1f4]
sub eax, ebx
dec eax
mov dword [esp + 0x2c], eax
cmp ecx, 2
jne 0x51db02
mov edx, dword [edi + 0x18]
and edx, 1
mov dword [esp + 0x24], 0
cmp dword [edi + 0x14], 0
mov dword [esp + 0x40], edx
jle 0x51db0a
xor eax, eax
test edx, edx
sete al
xor ebx, ebx
mov dword [esp + 0x48], eax
lea esp, [esp]
push eax
mov eax, dword [edi + 0x10]
push 0x204
push dword [ebx + eax + 4]
call fcn.004ec900
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov eax, dword [esp + 0x24]
add ebx, 0x10
inc eax
cmp eax, dword [edi + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
jl 0x51dac0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
jmp 0x51db0e
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x1c]
cmp dword [edi + 0x14], 0
mov dword [esp + 0x24], 0
jle 0x51db58
xor ebx, ebx
mov edi, edi
push eax
mov eax, dword [edi + 0x10]
push ecx
push dword [ebx + eax + 4]
call fcn.004ebc70
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov eax, dword [esp + 0x24]
add ebx, 0x10
mov ecx, dword [esp + 0x3c]
inc eax
cmp eax, dword [edi + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
jl 0x51db20
cmp dword [esp + 0x40], 0
je 0x51db78
push 0
push edi
call fcn.004f3750
push edi
call fcn.0050fd80
mov edx, dword [esp + 0x28]
add esp, 0xc
or dword [edi + 0x18], 1
mov ebx, dword [esp + 0x2c]
test edx, edx
jne 0x51ec85
cmp dword [edi + 0x1e8], esi
je 0x51dbb7
lea esp, [esp]
mov ecx, dword [edi + 0x1e8]
push ecx
push edi
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x1e8], eax
call fcn.004f0e00
dec dword [edi + 0x1f4]
add esp, 8
cmp dword [edi + 0x1e8], esi
jne 0x51db90
mov ecx, dword [esp + 0x3c]
cmp ecx, 1
jne 0x51dbf5
mov eax, dword [esi + 0x18]
push esi
push edi
mov dword [edi + 0x1e8], eax
call fcn.004f0e00
add esp, 8
cmp dword [esp + 0x28], 0
jne 0x51ee36
mov ecx, dword [esp + 0x3c]
dec dword [edi + 0x1f4]
push ebx
push ecx
push edi
call fcn.00527410
jmp 0x51c4dd
cmp dword [esp + 0x28], 0
mov eax, dword [esi + 8]
mov dword [edi + 0x200], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x204], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x208], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x20c], eax
je 0x51dc29
cmp ecx, 2
jne 0x51ee36
push ebx
push ecx
push edi
call fcn.00527410
jmp 0x51c4dd
mov edx, dword [esp + 0x14]
mov dword [esp + 0xa4], 0
mov edx, dword [edx + 8]
test edx, edx
je 0x51dc63
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
and ecx, 0x100000
and eax, 2
or ecx, eax
jne 0x5214ff
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0x10]
add ecx, ecx
mov esi, dword [eax + ecx*8 + 4]
test esi, esi
je 0x51dd31
lea eax, [esp + 0xa4]
push eax
push edx
push esi
call fcn.004e8dc0
mov ebx, dword [ebp + 8]
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x52152f
test byte [ebx + 0xa0], 0x40
je 0x51dd40
mov eax, dword [esp + 0x14]
cmp dword [eax + 8], edx
je 0x51dd40
cmp byte [edi + 0x55], dl
je 0x51dcc6
cmp dword [edi + 0xc0], 1
jle 0x51dd40
cmp dword [ebx + 0x38], 0
jne 0x51dce1
mov eax, dword [edi + 0x1f4]
inc dword [edi + 0x1f8]
add eax, dword [edi + 0x1f8]
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x38]
dec eax
push eax
push 0
push edi
call fcn.00527410
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x51dd0b
push dword [ebx + 0x38]
push esi
call fcn.004e8d60
mov ecx, eax
add esp, 8
mov dword [esp + 0x1c], ecx
mov eax, dword [edi + 0x200]
mov dword [ebx + 0x50], eax
mov eax, dword [edi + 0x204]
mov dword [ebx + 0x54], eax
mov eax, dword [edi + 0x208]
mov dword [ebx + 0x58], eax
mov eax, dword [edi + 0x20c]
mov dword [ebx + 0x5c], eax
jmp 0x51dd34
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x51ec85
mov ecx, dword [esp + 0x14]
cmp word [ecx + 2], 0
je 0x51ee3a
mov eax, dword [esp + 0xa4]
cmp eax, dword [ecx + 0xc]
jne 0x51dd79
mov eax, ecx
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 0x10]
je 0x51ee3a
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x51dd8d
push eax
push edi
call fcn.004f0e00
add esp, 8
push str.database_schema_has_changed
push edi
call fcn.004f11b0
mov dword [ebx + 0x84], eax
add esp, 8
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 4]
mov ecx, edx
mov eax, dword [edi + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 0xc]
mov eax, dword [eax]
cmp eax, dword [esp + 0xa4]
je 0x51ddc8
push edx
push edi
call fcn.0050fe00
add esp, 8
mov eax, dword [ebx + 0xa0]
mov edx, 0x11
and eax, 0xfffffffd
mov dword [esp + 0x1c], edx
or eax, 1
mov dword [ebx + 0xa0], eax
jmp 0x51ec85
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x104]
push eax
mov eax, dword [edi + 0x10]
mov ecx, dword [edx + 4]
push dword [edx + 0xc]
add ecx, ecx
push dword [eax + ecx*8 + 4]
call fcn.004e9f80
push dword [esp + 0x20]
push esi
call fcn.004d82d0
mov edi, dword [esp + 0x68]
mov ecx, eax
mov eax, dword [esp + 0x118]
add esp, 0x14
mov ebx, dword [esp + 0x84]
cdq
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x14]
add ecx, 0x14
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 4]
push dword [edx + 0xc]
shl esi, 4
add esi, dword [edi + 0x10]
push dword [edx + 8]
push dword [esi + 4]
call fcn.004eca60
mov edx, dword [esp + 0x20]
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x1c], ecx
mov eax, dword [edx + 8]
cmp eax, 1
jne 0x51de93
movzx eax, word [edx + 2]
mov ecx, dword [edx + 0xc]
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [eax], ecx
or dword [edi + 0x18], 1
push dword [edx + 4]
push edi
call fcn.004fa440
mov edx, dword [esp + 0x1c]
add esp, 8
jmp 0x51dea1
cmp eax, 2
jne 0x51dea1
mov ecx, dword [esi + 0xc]
mov al, byte [edx + 0xc]
mov byte [ecx + 0x4c], al
cmp dword [edx + 4], 1
jne 0x51debe
push 0
push edi
call fcn.004f3750
mov esi, dword [ebp + 8]
add esp, 8
and dword [esi + 0xa0], 0xfffffffc
jmp 0x51dec1
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x51ec85
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [ebx + 4]
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je case.0x51b6f9.101
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x38]
cmp eax, dword [ecx + 8]
jne case.0x51b6f9.101
push dword [ebx + 0x2c]
add ebx, 0x2c
call fcn.004e9110
mov edx, dword [esp + 0x20]
add esp, 4
jmp 0x51e042
mov eax, dword [esi + 0xa0]
and al, 3
cmp al, 1
je 0x521560
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], 0
mov dword [esp + 0x28], 0
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], eax
shl eax, 4
add eax, dword [edi + 0x10]
mov dword [esp + 0x40], ebx
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], ecx
cmp dl, 0x70
jne 0x51df88
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
movzx ecx, word [ecx + 2]
mov al, byte [eax + 0x4c]
and ecx, 8
or ecx, 4
mov dword [esp + 0x24], ecx
cmp al, byte [esi + 0x9b]
jae 0x51df90
mov byte [esi + 0x9b], al
jmp 0x51df90
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x14]
test byte [ecx + 2], 0x10
je 0x51dfba
mov ecx, dword [esp + 0x20]
lea eax, [ebx + ebx*4]
lea esi, [ecx + eax*8]
push esi
call fcn.00523c50
mov ebx, dword [esi]
add esp, 4
mov ecx, dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov dword [esp + 0x40], ebx
mov al, byte [ecx + 1]
cmp al, 0xf7
jne 0x51dfce
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x28], eax
movzx eax, word [eax + 8]
jmp 0x51dfdb
cmp al, 0xfd
jne 0x51dfd7
mov eax, dword [ecx + 0x10]
jmp 0x51dfdb
mov eax, dword [esp + 0x48]
push 0
push eax
push dword [ecx + 4]
push esi
call fcn.004a88e0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5218d4
push dword [esi + 0x2c]
mov eax, dword [esp + 0x30]
push dword [esp + 0x2c]
or dword [esi + 8], 4
push dword [esp + 0x2c]
mov dword [esi + 0x38], ebx
lea ebx, [esi + 0x2c]
push dword [esp + 0x4c]
mov byte [esi + 1], al
push dword [esp + 0x48]
mov byte [esi + 2], 1
call fcn.004e9890
mov edx, eax
add esp, 0x14
mov eax, dword [esp + 0x28]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
cmp byte [eax + 1], 0xf7
setne al
mov byte [esi + 4], al
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 2]
mov eax, dword [ebx]
and cl, 3
mov byte [eax + 3], cl
test edx, edx
jne 0x51ec85
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
push 0
mov ecx, dword [edx + 8]
mov ebx, dword [eax + ecx*4]
movsx eax, word [ebx + 0x3c]
push eax
push dword [edx + 4]
push esi
call fcn.004a88e0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5218d4
or dword [esi + 8], 1
mov edx, dword [esi + 8]
mov byte [esi + 2], 1
mov ecx, dword [ebx + 0x30]
mov dword [esi + 0x30], ecx
mov al, byte [ebx + 4]
mov byte [esi + 4], al
mov eax, dword [ebx + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 8]
xor eax, edx
and eax, 4
xor eax, edx
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x10]
or dword [esi + 8], 8
mov dword [esi + 0x10], eax
or dword [ebx + 8], 8
push dword [esi + 0x2c]
push dword [esi + 0x30]
push 4
push dword [esi + 0x38]
push dword [esi + 0x10]
call fcn.004e9890
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x1c], ebx
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xc]
test eax, eax
jle 0x51e11f
mov ecx, dword [esp + 0x20]
lea eax, [eax + eax*4]
mov dword [ecx + eax*8 + 0xc], 0
mov eax, dword [edx + 0xc]
lea eax, [eax + eax*4]
mov dword [ecx + eax*8 + 0x10], 0x55b23e
mov ecx, dword [edx + 4]
mov eax, dword [esi + 0x68]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x51e16b
test byte [esi + 8], 8
jne 0x51e16b
movsx eax, word [esi + 0x3c]
cmp dword [edx + 8], eax
jg 0x51e16b
push 0
push dword [esi + 0x38]
mov dword [esi + 0x18], 0
push dword [esi + 0x10]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
call fcn.004e9130
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
jmp 0x51e275
push 0
push dword [edx + 8]
push ecx
push dword [ebp + 8]
call fcn.004a88e0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5218d4
mov eax, dword [esp + 0x14]
lea ebx, [esi + 0x10]
or dword [esi + 8], 1
push 0x41e
movzx ecx, word [eax + 2]
or ecx, 5
push ecx
push ebx
push edi
push 0
push dword [edi]
call fcn.004eb210
mov edx, eax
add esp, 0x18
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
push eax
push 1
push dword [ebx]
call fcn.004e8dc0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51e249
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x48], eax
mov dword [esi + 0x30], eax
test eax, eax
je 0x51e225
movzx eax, word [edx + 2]
lea ecx, [esi + 0x38]
or eax, 2
push eax
push ecx
push dword [ebx]
call fcn.004e9840
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51e21f
push dword [esi + 0x2c]
push dword [esp + 0x4c]
push 4
push dword [esi + 0x38]
push dword [ebx]
call fcn.004e9890
mov edx, eax
add esp, 0x14
mov dword [esp + 0x1c], edx
mov byte [esi + 4], 0
jmp 0x51e249
push dword [esi + 0x2c]
mov dword [esi + 0x38], 1
push 0
push 4
push 1
push dword [ebx]
call fcn.004e9890
mov edx, eax
mov byte [esi + 4], 1
add esp, 0x14
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp word [ecx + 2], 8
setne al
shl eax, 2
xor eax, dword [esi + 8]
and eax, 4
xor dword [esi + 8], eax
test edx, edx
je 0x51e281
push dword [ebx]
call fcn.004e91f0
mov edx, dword [esp + 0x20]
add esp, 4
test edx, edx
jne 0x51ec85
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
mov byte [esi + 2], 1
mov esi, dword [ebp + 8]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
push 1
push dword [edx + 8]
push dword [edx + 4]
push esi
call fcn.004a88e0
add esp, 0x10
test eax, eax
je 0x5218d7
mov edx, dword [esp + 0x14]
push eax
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x30], ecx
push dword [edx + 0xc]
push edi
call fcn.00525b00
add esp, 0xc
mov edx, eax
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [edx + 4]
mov edx, dword [eax + ecx*4]
mov edi, dword [edx + 0x18]
mov ecx, edi
mov esi, dword [edx + 0x1c]
add ecx, 1
mov eax, esi
mov dword [edx + 0x18], ecx
mov ecx, dword [esp + 0x14]
adc eax, 0
or edi, esi
mov dword [edx + 0x1c], eax
mov esi, dword [ebp + 8]
jne 0x51ee3d
jmp 0x51b73e
mov edx, dword [esp + 0x14]
push 3
push dword [edx + 0xc]
push dword [edx + 4]
push esi
call fcn.004a88e0
add esp, 0x10
test eax, eax
je 0x5218d7
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
mov byte [eax + 2], 1
mov ecx, dword [ecx + 8]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x14]
mov byte [eax + 4], 1
add ecx, 0x14
mov dword [eax + 0x2c], 0x6a3fd0
mov eax, dword [esp + 0x18]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [edx + 4]
push dword [eax + ecx*4]
push esi
call fcn.00522690
mov eax, dword [esp + 0x1c]
add esp, 8
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov dword [esp + 0x2c], 0
mov ecx, dword [edx + 4]
mov esi, dword [eax + ecx*4]
cmp byte [esi + 4], 0
mov word [esi + 2], 0
mov dword [esi + 0x20], 0
je 0x51e4e4
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x20]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*8]
movzx eax, word [ecx + 8]
mov dword [esp + 0x48], eax
and al, 0x2e
mov dword [esp + 0x24], ecx
cmp al, 2
jne 0x51e420
push 0
push ecx
call fcn.004a9f60
mov ecx, dword [esp + 0x2c]
add esp, 8
push ecx
call fcn.00522d90
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x48]
movzx eax, word [ecx + 8]
mov word [ecx + 8], dx
test al, 0x24
jne 0x51e4a9
test al, 8
jne 0x51e47d
test al, 1
jne 0x51b737
cmp ebx, 0x19
jge 0x51b737
lea eax, [esp + 0x60]
push eax
push dword [esi + 0x2c]
call fcn.004eafc0
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
jmp 0x51e614
fld qword [ecx]
sub esp, 8
fstp qword [esp]
push dword [esp + 0x48]
push dword [esp + 0x34]
call fcn.00505ab0
add esp, 0x10
test eax, eax
jle 0x51e4a1
test bl, 1
jne 0x51e4a9
dec ebx
jmp 0x51e4a9
jns 0x51e4a9
test bl, 1
je 0x51e4a9
inc ebx
lea eax, [esp + 0x60]
push eax
push 0
push dword [esp + 0x48]
push dword [esp + 0x34]
push dword [esi + 0x2c]
call fcn.004ec1d0
mov edx, eax
add esp, 0x14
mov eax, dword [esp + 0x28]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], edx
mov dword [esi + 0x44], eax
test edx, edx
jne 0x51ec85
jmp 0x51e576
mov eax, dword [esi + 0x2c]
test byte [eax + 3], 2
je 0x51e4f5
mov dword [esp + 0x2c], 1
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x118], eax
mov ax, word [edx + 0x10]
mov word [esp + 0x120], ax
lea eax, [ebx - 1]
test al, 1
mov byte [esp + 0x126], 0
sete al
lea eax, [eax*2 - 1]
mov byte [esp + 0x122], al
mov eax, dword [edx + 0xc]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov dword [esp + 0x11c], eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x11c]
push eax
push dword [esi + 0x2c]
call fcn.004ea160
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
cmp dword [esp + 0x2c], eax
je 0x51e576
cmp byte [esp + 0x126], al
je 0x51e614
mov eax, dword [esp + 0x60]
cmp ebx, 0x19
jl 0x51e5fb
test eax, eax
js 0x51e5be
jne 0x51e58a
cmp ebx, 0x1a
je 0x51e5be
mov dword [esp + 0x60], 0
cmp dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x14]
je 0x51ee3a
mov esi, dword [ebp + 8]
add ecx, 0x14
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
push 0
push dword [esi + 0x2c]
mov dword [esp + 0x68], 0
call fcn.004eb1c0
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
je 0x51e592
cmp edx, 0x65
jne 0x51ec85
mov dword [esp + 0x1c], 0
mov dword [esp + 0x60], 1
jmp 0x51b737
test eax, eax
jg 0x51e624
jne 0x51e606
cmp ebx, 0x17
je 0x51e624
mov eax, dword [esi + 0x2c]
xor ecx, ecx
cmp byte [eax], cl
setne cl
mov dword [esp + 0x60], ecx
cmp dword [esp + 0x60], 0
jne 0x51b737
jmp 0x51e592
push 0
push dword [esi + 0x2c]
mov dword [esp + 0x68], 0
call fcn.004eba40
jmp 0x51e5d0
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [ebx + 0x18]
mov ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x2c]
cmp byte [eax], 0
jne 0x51ee3d
mov eax, dword [ebx + 0x30]
mov esi, dword [ecx + 4]
mov dword [esp + 0x1f0], eax
mov ax, word [ecx + 0x24]
mov word [esp + 0x1f8], ax
mov eax, dword [ecx + 0x20]
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x1fa], 0
mov dword [esp + 0xe4], 0
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov dword [esp + 0x1f4], eax
jmp 0x51e6a0
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0x1f4]
push eax
push ebx
push edi
call fcn.00522b50
mov edx, eax
add esp, 0x10
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov eax, dword [esp + 0xe4]
test eax, eax
jg 0x51e709
je 0x51b737
test esi, esi
jle 0x51ee36
push edx
push dword [ebx + 0x2c]
dec esi
call fcn.004eb1c0
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
je 0x51e6a0
cmp edx, 0x65
jne 0x51ec85
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x14]
add ecx, 0x14
jmp 0x51b73b
mov eax, dword [esi + 0x68]
mov ecx, dword [ecx + 4]
mov esi, dword [esp + 0x14]
mov ecx, dword [eax + ecx*4]
movzx eax, word [ecx + 0xc]
cmp eax, dword [esi + 8]
jge 0x51e73a
mov eax, esi
mov ax, word [eax + 8]
mov word [ecx + 0xc], ax
jmp 0x51ee36
cmp eax, dword [esi + 0xc]
mov esi, dword [ebp + 8]
jle 0x51b941
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
mov ax, word [eax + 0xc]
mov word [ecx + 0xc], ax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
jmp 0x51b6d3
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 0x68]
cmp dword [eax + ecx*4], 0
mov ecx, dword [esp + 0x14]
je case.0x51b6f9.11
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 0x68]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x14]
movzx eax, word [eax + 0xc]
cmp eax, dword [ecx + 0x10]
jge 0x51ee3d
mov eax, dword [esi + 0x68]
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x20]
mov ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
cmp dword [ecx + 0x10], 0
mov eax, dword [ecx + 0xc]
lea eax, [eax + eax*4]
lea esi, [edx + eax*8]
jle 0x51e806
mov eax, dword [ebx + 0x30]
lea ebx, [esp + 0x210]
mov dword [esp + 0x210], eax
mov ax, word [ecx + 0x10]
mov word [esp + 0x218], ax
xor eax, eax
mov dword [esp + 0x214], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
jmp 0x51e855
mov eax, 0x4000
test word [esi + 8], ax
je 0x51e822
push esi
call fcn.005237f0
add esp, 4
test eax, eax
jne 0x5218d4
push dword [ebx + 0x30]
call fcn.0051a740
mov ebx, eax
add esp, 4
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x5218d4
push ebx
push dword [esi + 0x10]
push dword [esi + 0xc]
mov esi, dword [esp + 0x30]
push dword [esi + 0x30]
call fcn.00525350
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov byte [ebx + 0xa], 0
cmp byte [ecx], 0x1d
mov dword [esp + 0x24], 0
jne 0x51e88d
movzx edx, word [ebx + 8]
xor ecx, ecx
test edx, edx
jle 0x51e88d
mov eax, dword [ebx + 4]
add eax, 8
test byte [eax], 1
jne 0x51e885
inc ecx
add eax, 0x28
cmp ecx, edx
jl 0x51e876
jmp 0x51e88d
mov dword [esp + 0x24], 1
lea eax, [esp + 0x108]
push eax
push ebx
push dword [esi + 0x2c]
call fcn.004ea160
mov edx, eax
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
test eax, eax
je 0x51e8bd
push eax
push edi
call fcn.004f0e00
mov edx, dword [esp + 0x24]
add esp, 8
test edx, edx
jne 0x51ec85
mov eax, dword [esp + 0x108]
xor ecx, ecx
test eax, eax
mov dword [esi + 0x24], eax
mov al, 1
mov byte [esi + 3], dl
sete cl
mov dword [esi + 0x20], edx
sub al, cl
mov byte [esi + 2], al
mov eax, dword [esp + 0x14]
mov al, byte [eax]
cmp al, 0x1f
jne 0x51e913
mov esi, dword [ebp + 8]
test ecx, ecx
mov ecx, dword [esp + 0x14]
jne 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
cmp dword [esp + 0x24], 0
jne 0x51b737
test ecx, ecx
je 0x51b737
mov ecx, dword [esp + 0x14]
cmp al, 0x1c
jne 0x51ee3a
mov edi, dword [esp + 0x54]
mov eax, ecx
mov ebx, dword [esp + 0x84]
add ecx, 0x14
mov ax, word [eax + 0x10]
mov word [esi + 0xc], ax
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x18]
jmp 0x51b6d3
mov eax, dword [ecx + 0xc]
mov ebx, dword [esp + 0x20]
lea eax, [eax + eax*4]
test byte [ebx + eax*8 + 8], 0x24
lea esi, [ebx + eax*8]
jne 0x51e9d8
mov ecx, 0xa
lea edi, [esp + 0x248]
rep movsd dword es:[edi], dword [esi]
mov ax, word [esp + 0x250]
test al, 4
jne 0x51e9c0
test al, 8
jne 0x51e9a0
test al, 2
je 0x51e9b8
lea eax, [esp + 0x248]
push 1
push eax
call fcn.004a9f60
add esp, 8
jmp 0x51e9b0
lea eax, [esp + 0x248]
push eax
call fcn.00522dd0
add esp, 4
mov ax, word [esp + 0x250]
test al, 4
je 0x51b737
mov ebx, dword [esp + 0x248]
mov edx, dword [esp + 0x24c]
mov edi, dword [esp + 0x54]
jmp 0x51e9e9
mov ebx, dword [esp + 0x20]
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x20]
lea eax, [eax + eax*4]
mov ebx, dword [ebx + eax*8]
mov edx, dword [ecx + eax*8 + 4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], edx
mov dword [esp + 0xe0], 0
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x68]
mov esi, dword [eax + ecx*4]
lea eax, [esp + 0xe0]
push eax
push 0
push edx
push ebx
push dword [esi + 0x2c]
call fcn.004ec1d0
mov edx, eax
mov dword [esi + 0x40], ebx
mov eax, dword [esp + 0x38]
add esp, 0x14
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x1c], edx
mov word [esi + 2], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], eax
test eax, eax
je 0x51c4e6
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 8], 0
jne 0x51b73b
push 0x16952
call fcn.004ef5d0
add esp, 4
jmp 0x51c4e0
mov ebx, dword [esp + 0x14]
push ebx
push esi
call fcn.004d82d0
mov edx, dword [ebx + 4]
add esp, 8
mov ecx, dword [esi + 0x68]
mov edi, dword [esp + 0x54]
mov edx, dword [ecx + edx*4]
mov ecx, dword [edx + 0x18]
mov dword [eax], ecx
mov ecx, dword [edx + 0x1c]
mov dword [eax + 4], ecx
mov eax, ebx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x68]
mov eax, dword [eax + ecx*4]
mov ecx, ebx
mov ebx, dword [esp + 0x84]
add dword [eax + 0x18], 1
adc dword [eax + 0x1c], 0
add ecx, 0x14
mov eax, dword [esp + 0x18]
jmp 0x51b6d3
mov ebx, dword [esp + 0x14]
xor esi, esi
push ebx
push dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x9c], esi
call fcn.004d82d0
mov edx, dword [ebx + 4]
add esp, 8
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
mov ebx, dword [ecx + edx*4]
mov dword [esp + 0x2c], ebx
test byte [ebx + 8], 2
jne 0x51eb68
lea eax, [esp + 0x94]
push eax
push dword [ebx + 0x2c]
call fcn.004eafc0
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec81
cmp dword [esp + 0x94], esi
je 0x51eb2e
lea edi, [esi + 1]
jmp 0x51eb60
push dword [ebx + 0x2c]
call fcn.004eaa70
mov esi, edx
add esp, 4
mov dword [esp + 0x7c], esi
mov edi, eax
mov dword [esp + 0x78], edi
cmp esi, 0x7fffffff
jl 0x51eb5a
jg 0x51eb54
cmp edi, 0xffffffff
jb 0x51eb5a
or dword [ebx + 8], 2
jmp 0x51eb68
add edi, 1
adc esi, 0
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], edi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x51ec00
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xd8]
test edx, edx
je 0x51eba4
mov eax, dword [edx + 4]
test eax, eax
je 0x51eb99
jmp 0x51eb90
mov edx, eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x51eb90
mov eax, dword [edx + 0x10]
lea ecx, [ecx + ecx*4]
lea ebx, [eax + ecx*8]
jmp 0x51ebae
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x20]
lea ebx, [ecx + eax*8]
push ebx
call fcn.00523c50
mov eax, dword [ebx]
add esp, 4
mov ecx, dword [ebx + 4]
cmp eax, 0xffffffff
jne 0x51ebcd
cmp ecx, 0x7fffffff
je 0x51ec78
mov edx, dword [esp + 0x2c]
test byte [edx + 8], 2
jne 0x51ec78
add eax, 1
adc ecx, 0
cmp esi, ecx
jg 0x51ebf7
jl 0x51ebeb
cmp edi, eax
jae 0x51ebf7
mov edi, eax
mov esi, ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], esi
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov ebx, dword [esp + 0x2c]
test byte [ebx + 8], 2
je 0x51eca4
xor ebx, ebx
lea esp, [esp]
lea eax, [esp + 0x78]
push eax
push 8
call fcn.00499700
mov esi, dword [esp + 0x84]
lea eax, [esp + 0x9c]
mov edi, dword [esp + 0x80]
and esi, 0x3fffffff
push eax
mov eax, dword [esp + 0x38]
add edi, 1
push 0
adc esi, 0
mov dword [esp + 0x88], edi
push esi
push edi
push dword [eax + 0x2c]
mov dword [esp + 0x98], esi
call fcn.004ec1d0
mov edx, eax
add esp, 0x1c
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec81
cmp dword [esp + 0x94], eax
jne 0x51eca0
inc ebx
cmp ebx, 0x64
jl 0x51ec10
mov edx, 0xd
mov dword [esp + 0x1c], edx
mov edi, dword [esp + 0x54]
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x14]
cmp byte [edi + 0x57], 0
je 0x5218f9
mov edx, 7
jmp 0x521924
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
mov byte [ebx + 3], 0
mov dword [ebx + 0x20], 0
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x51ee36
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov esi, dword [eax + ecx*4]
mov ecx, ebx
mov ebx, dword [esp + 0x20]
cmp byte [ecx + 1], 0xfa
mov eax, dword [ecx + 0xc]
lea eax, [eax + eax*4]
mov ebx, dword [ebx + eax*8]
mov dword [esp + 0x228], ebx
mov eax, dword [edi + eax*8 + 4]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x48], eax
mov dword [esp + 0x22c], eax
jne 0x51ed2d
cmp dword [edi + 0xfc], 0
je 0x51ed2d
movsx ecx, byte [esi + 1]
mov eax, dword [edi + 0x10]
add ecx, ecx
mov ecx, dword [eax + ecx*8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
jmp 0x51ed3d
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
test byte [ecx + 2], 1
je 0x51ed52
mov edi, dword [ebp + 8]
add dword [edi + 0x30], 1
adc dword [edi + 0x34], 0
mov edi, dword [esp + 0x54]
test byte [ecx + 2], 0x20
je 0x51ed5e
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], eax
mov ebx, dword [esp + 0x20]
movzx ecx, word [ecx + 2]
mov eax, dword [ebx + edx*8 + 0x10]
mov dword [esp + 0x230], eax
mov eax, dword [ebx + edx*8 + 0xc]
mov dword [esp + 0x23c], eax
test cl, 0x10
je 0x51ed86
mov ebx, dword [esi + 0x24]
jmp 0x51ed88
xor ebx, ebx
mov eax, dword [esp + 0x20]
mov edi, 0x4000
test word [eax + edx*8 + 8], di
mov edi, dword [esp + 0x54]
je 0x51eda8
mov eax, dword [eax + edx*8]
mov dword [esp + 0x240], eax
jmp 0x51edb3
mov dword [esp + 0x240], 0
push ebx
and ecx, 0x8a
mov dword [esp + 0x224], 0
push ecx
lea eax, [esp + 0x228]
push eax
push dword [esi + 0x2c]
call fcn.004ea530
mov edx, eax
mov byte [esi + 3], 0
add esp, 0x10
mov dword [esp + 0x1c], edx
mov dword [esi + 0x20], 0
test edx, edx
jne 0x51ec85
mov eax, dword [esp + 0x24]
test eax, eax
je 0x51ee36
push dword [esp + 0x22c]
push dword [esp + 0x22c]
push dword [eax]
mov eax, dword [esp + 0x20]
push dword [esp + 0x34]
mov al, byte [eax + 2]
and al, 4
movzx eax, al
neg eax
sbb eax, eax
and eax, 5
add eax, 0x12
push eax
push dword [edi + 0xf8]
mov eax, dword [edi + 0xfc]
call eax
add esp, 0x18
mov ecx, dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x54]
add ecx, 0x14
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0x68]
mov eax, dword [ebx + 4]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebx + 8]
mov esi, dword [ecx + eax*4]
mov eax, ebx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x51ee80
mov ebx, dword [esp + 0x20]
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8]
mov eax, dword [ebx + eax*8 + 4]
jmp 0x51ee84
xor ecx, ecx
xor eax, eax
push eax
push ecx
push dword [esi + 0x2c]
push dword [edx + 0x2c]
call fcn.004ec4d0
add esp, 0x10
jmp 0x51c4e0
mov edx, dword [esp + 0x14]
cmp byte [edx + 1], 0xfa
mov eax, dword [edx + 8]
mov ecx, dword [edx + 4]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x68]
mov esi, dword [eax + ecx*4]
jne 0x51eef2
cmp dword [edi + 0xfc], 0
je 0x51eef2
movsx ecx, byte [esi + 1]
mov eax, dword [edi + 0x10]
add ecx, ecx
test byte [edx + 2], 2
mov ebx, dword [edx + 0x10]
mov eax, dword [eax + ecx*8]
mov dword [esp + 0x24], eax
je 0x51eefc
cmp byte [esi + 4], 0
je 0x51eefc
push dword [esi + 0x2c]
call fcn.004eaa70
mov dword [esi + 0x44], edx
add esp, 4
mov edx, dword [esp + 0x14]
mov dword [esi + 0x40], eax
jmp 0x51eefc
mov dword [esp + 0x24], 0
xor ebx, ebx
movzx eax, byte [edx + 2]
push eax
push dword [esi + 0x2c]
call fcn.004e99e0
mov edx, eax
mov dword [esi + 0x20], 0
add esp, 8
mov dword [esp + 0x1c], edx
mov dword [esi + 0x24], 0
test edx, edx
jne 0x51ec85
test byte [esp + 0x48], 1
je 0x51ee36
mov eax, dword [ebp + 8]
add dword [eax + 0x30], 1
adc dword [eax + 0x34], edx
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x51ee36
test ebx, ebx
je 0x51ee36
test byte [ebx + 0x1c], 0x80
jne 0x51ee36
push dword [esi + 0x44]
push dword [esi + 0x40]
push dword [ebx]
push dword [esp + 0x30]
push 9
push dword [edi + 0xf8]
jmp 0x51ee31
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
add dword [edi + 0x70], eax
mov ebx, dword [esp + 0x84]
adc dword [edi + 0x74], ecx
mov dword [edi + 0x6c], ecx
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x68], eax
add ecx, 0x14
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x54]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xdc], 0
mov ecx, dword [edx + 4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [edx + 0xc]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
lea ebx, [esp + 0xdc]
push ebx
push dword [edx + 0x10]
push eax
push ecx
call fcn.00525a30
mov edx, eax
add esp, 0x10
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0xdc], eax
jne 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 8]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*8]
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 0x68]
push edx
push dword [eax + ecx*4]
call fcn.00525fd0
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov edi, dword [esp + 0x54]
mov eax, ebx
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x68]
mov eax, dword [eax + ecx*4]
mov ecx, ebx
mov ebx, dword [esp + 0x84]
add ecx, 0x14
mov dword [eax + 0x20], edx
mov eax, dword [esp + 0x18]
jmp 0x51b6d3
mov ebx, dword [esp + 0x14]
push ebx
push esi
call fcn.004d82d0
mov edx, dword [ebx + 4]
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
mov ecx, dword [ecx + edx*4]
mov ebx, dword [ecx + 0x2c]
push ebx
call fcn.004cdce0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
cmp eax, dword [edi + 0x78]
ja 0x52167c
push esi
push eax
push ebx
call fcn.005239e0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0xc], eax
jne 0x51ee3a
mov eax, 0x1000
test word [esi + 8], ax
je 0x51ee3a
push esi
call fcn.00523cb0
mov esi, dword [ebp + 8]
add esp, 4
test eax, eax
jne 0x5218d7
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
push dword [esp + 0x14]
push esi
call fcn.004d82d0
mov ecx, dword [esp + 0x1c]
add esp, 8
mov ebx, eax
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x68]
mov esi, dword [ecx + edx*4]
cmp byte [esi + 2], 0
je 0x51f13e
mov eax, 1
mov word [ebx + 8], ax
jmp 0x51ee36
cmp byte [esi + 3], 0
je 0x51f182
mov ecx, dword [esi + 0x40]
mov edi, dword [esp + 0x54]
mov dword [esp + 0xb8], ecx
mov eax, dword [esi + 0x44]
mov esi, dword [ebp + 8]
mov dword [esp + 0xbc], eax
mov dword [ebx], ecx
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 4], eax
add ecx, 0x14
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
cmp byte [esi], 2
jne 0x51f1e7
mov ecx, dword [esi + 0x2c]
lea edx, [esp + 0xb8]
push edx
push ecx
mov esi, dword [ecx]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
call eax
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [esp + 0x2c], eax
call fcn.005271a0
mov edx, dword [esp + 0x2c]
add esp, 0x10
test edx, edx
jne 0x51ec85
mov ecx, dword [esp + 0xb8]
mov edi, dword [esp + 0x54]
mov dword [ebx], ecx
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 4], eax
add ecx, 0x14
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
push esi
call fcn.0051af80
mov edx, eax
add esp, 4
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
cmp byte [esi + 2], al
je 0x51f211
mov eax, 1
mov word [ebx + 8], ax
jmp 0x51ee36
push dword [esi + 0x2c]
call fcn.004eaa70
mov esi, dword [ebp + 8]
mov ecx, eax
mov edi, dword [esp + 0x58]
add esp, 4
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
mov dword [ebx], ecx
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 4], eax
add ecx, 0x14
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 0x68]
mov eax, dword [eax + ecx*4]
cmp byte [eax], 0
mov byte [eax + 2], 1
mov dword [eax + 0x20], 0
jne 0x51b941
push dword [eax + 0x2c]
call fcn.004e9110
mov ecx, dword [esp + 0x18]
add esp, 4
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov eax, dword [esi + 0x68]
mov ecx, dword [ecx + 4]
mov dword [esp + 0xc4], 0
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x2c]
cmp dl, 0x88
jne 0x51f2c5
mov dword [esi + 0x24], 0xffffffff
cmp byte [eax], 0
je 0x51ee36
lea ecx, [esp + 0xc4]
push ecx
push eax
call fcn.004eafc0
mov edx, eax
mov byte [esi + 3], 0
mov eax, dword [esp + 0xcc]
add esp, 8
mov dword [esp + 0x1c], edx
mov byte [esi + 2], al
mov dword [esi + 0x20], 0
test edx, edx
jne 0x51ec85
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 8], edx
jle 0x51ee3a
mov esi, dword [ebp + 8]
test eax, eax
jne 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [edx + 4]
mov eax, dword [eax + ecx*4]
mov esi, dword [eax + 0x2c]
lea eax, [esp + 0xc8]
push eax
push esi
call fcn.004e9ec0
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
cmp dword [esp + 0xc8], eax
jne 0x51b737
push esi
call fcn.004ebc10
add esp, 4
test edx, edx
jl 0x521132
jg 0x51f37f
test eax, eax
jb 0x51ee36
push edx
push eax
call fcn.005074e0
mov ecx, dword [esp + 0x1c]
add esp, 8
cwde
cmp eax, dword [ecx + 0xc]
jge 0x51ee3a
mov dword [esp + 0xc8], 1
jmp 0x51b73b
inc dword [esi + 0xb4]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov dword [esp + 0xa0], 1
mov ecx, dword [edx + 4]
mov esi, dword [eax + ecx*4]
lea eax, [esp + 0xa0]
push eax
cmp byte [esi], 1
jne 0x51f3da
push esi
call fcn.00525f60
jmp 0x51f3ed
push dword [esi + 0x2c]
call fcn.004e9ec0
mov byte [esi + 3], 0
mov dword [esi + 0x20], 0
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x14]
mov byte [esi + 2], al
mov esi, dword [ebp + 8]
test eax, eax
jne 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [edx + 4]
mov esi, dword [eax + ecx*4]
push esi
push edi
call fcn.00525d00
jmp 0x51f45c
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [edx + 4]
push dword [edx + 0xc]
mov esi, dword [eax + ecx*4]
mov eax, dword [edx + 0x10]
push dword [esi + 0x2c]
call eax
mov edx, eax
mov dword [esi + 0x20], 0
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51f48a
mov byte [esi + 2], al
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 8]
movzx eax, word [eax + 2]
inc dword [esi + eax*4 + 0xac]
jmp 0x520dcb
cmp edx, 0x65
jne 0x51ec85
mov dword [esp + 0x1c], 0
mov byte [esi + 2], 1
jmp 0x51d865
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [edx + 4]
mov ebx, dword [eax + ecx*4]
mov ecx, edx
mov edx, dword [esp + 0x20]
test byte [ecx + 2], 1
mov eax, dword [ecx + 8]
lea eax, [eax + eax*4]
lea esi, [edx + eax*8]
je 0x51f4d1
mov eax, dword [ebp + 8]
add dword [eax + 0x30], 1
adc dword [eax + 0x34], 0
mov eax, 0x4000
test word [esi + 8], ax
je 0x51f4f7
push esi
call fcn.005237f0
mov edx, eax
add esp, 4
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
cdq
mov dword [esp + 0x2a0], eax
mov dword [esp + 0x2a4], edx
mov eax, dword [esi + 0x10]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x298], eax
mov eax, dword [ecx + 0xc]
lea eax, [eax + eax*4]
lea eax, [edx + eax*8]
mov dword [esp + 0x2ac], eax
mov ax, word [ecx + 0x10]
mov word [esp + 0x2b0], ax
movzx eax, word [ecx + 2]
test al, 0x10
je 0x51f540
mov ecx, dword [ebx + 0x24]
jmp 0x51f542
xor ecx, ecx
push ecx
and eax, 0x8a
push eax
lea eax, [esp + 0x2a0]
push eax
push dword [ebx + 0x2c]
call fcn.004ea530
add esp, 0x10
mov dword [ebx + 0x20], 0
jmp 0x51c4e0
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [edx + 4]
mov ebx, dword [eax + ecx*4]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x20]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
mov eax, 0x4000
test word [esi + 8], ax
je 0x51f5a4
push esi
call fcn.005237f0
mov edx, eax
add esp, 4
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
push esi
push ebx
call fcn.00526080
add esp, 8
jmp 0x51c4e0
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [edx + 4]
mov esi, dword [eax + ecx*4]
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x30]
mov ebx, dword [esi + 0x2c]
mov dword [esp + 0x1e0], eax
mov ax, word [edx + 0xc]
mov word [esp + 0x1e8], ax
mov eax, dword [edx + 8]
mov byte [esp + 0x1ea], 0
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov dword [esp + 0x1e4], eax
lea eax, [esp + 0x10c]
push eax
lea eax, [esp + 0x1e4]
push eax
push ebx
call fcn.004ea160
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
cmp dword [esp + 0x10c], eax
jne 0x51f640
push 4
push ebx
call fcn.004e99e0
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
jmp 0x51f65c
mov ecx, dword [esp + 0x14]
cmp word [ecx + 2], 0
je 0x51f660
push edi
call fcn.0052fdc0
add esp, 4
test eax, eax
je 0x52156e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov esi, dword [ebp + 8]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [edx + 4]
mov esi, dword [eax + ecx*4]
push esi
call fcn.0051af80
mov edx, eax
add esp, 4
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
cmp byte [esi + 2], al
jne 0x51f761
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
lea eax, [esp + 0xb0]
push eax
push dword [esi + 0x2c]
push edi
call fcn.00522c20
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov eax, dword [esp + 0x14]
cmp byte [eax], 0x8c
jne 0x51f726
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x68]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esp + 0xb0]
mov dword [ecx + 0x40], eax
mov eax, dword [esp + 0xb4]
mov dword [ecx + 0x44], eax
mov eax, dword [esp + 0x14]
mov word [ecx + 2], 0x100
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x28], esi
jmp 0x51ee36
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.004d82d0
mov ecx, dword [esp + 0xb8]
add esp, 8
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
mov dword [eax], ecx
mov ecx, dword [esp + 0xb4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
jmp 0x51b6d3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 8]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
call fcn.00523f50
add esp, 4
jmp 0x51ee36
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 0x68]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 3], 0
je 0x51b941
push eax
call fcn.00522410
mov edx, eax
add esp, 4
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov ebx, dword [esp + 0x14]
cmp dl, 0x29
mov eax, dword [esi + 0x68]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx + 0x30]
mov esi, dword [ecx + 0x2c]
mov dword [esp + 0x200], eax
mov ax, word [ebx + 0x10]
mov word [esp + 0x208], ax
sbb al, al
mov byte [esp + 0x20a], al
mov eax, ebx
push esi
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea eax, [edx + eax*8]
mov dword [esp + 0x208], eax
call fcn.004cdce0
mov eax, dword [esi + 0x2c]
add esp, 4
xor ecx, ecx
jl 0x521590
jg 0x51f82b
test eax, eax
je 0x521590
test ecx, ecx
jg 0x521590
jl 0x51f840
cmp eax, 0x7fffffff
ja 0x521590
xor ecx, ecx
mov dword [esp + 0x290], edi
mov word [esp + 0x278], cx
mov dword [esp + 0x288], ecx
lea ecx, [esp + 0x270]
push ecx
push eax
push esi
call fcn.005239e0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
push eax
lea eax, [esp + 0x204]
push eax
push dword [esp + 0x288]
push dword [esp + 0x288]
call fcn.00524dc0
mov esi, eax
lea eax, [esp + 0x280]
push eax
call fcn.00523e80
mov ecx, dword [esp + 0x28]
add esp, 0x14
test byte [ecx], 1
je 0x51f8b3
neg esi
jmp 0x51f8b4
inc esi
test esi, esi
mov esi, dword [ebp + 8]
jg 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
push dword [esp + 0x14]
push esi
call fcn.004d82d0
mov esi, eax
add esp, 8
mov eax, 1
mov word [esi + 8], ax
mov ecx, dword [edi + 0xcc]
inc ecx
cmp dword [edi + 0xc0], ecx
jg 0x5215a8
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0xc4], 0
mov ebx, dword [eax + 0xc]
mov ecx, ebx
push dword [eax + 4]
mov eax, dword [edi + 0x10]
add ecx, ecx
push dword [eax + ecx*8 + 4]
call fcn.004e9df0
mov ecx, dword [esp + 0xcc]
add esp, 0xc
mov dword [esp + 0x1c], eax
mov eax, 4
mov word [esi + 8], ax
mov eax, ecx
cdq
mov dword [esi + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [esi], eax
test edx, edx
jne 0x51ec85
test ecx, ecx
je 0x51ee36
mov eax, dword [esp + 0x14]
push dword [eax + 4]
push ecx
push ebx
push edi
call fcn.005106b0
mov al, bl
add esp, 0x10
inc al
mov byte [esp + 0x67], al
jmp 0x51ee36
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xd0]
push eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0xd4], 0
mov ecx, dword [edx + 8]
push dword [edx + 4]
add ecx, ecx
mov dword [esp + 0xdc], 0
push dword [eax + ecx*8 + 4]
call fcn.004e9130
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, eax
mov dword [esp + 0x1c], edx
cmp dword [ecx + 0xc], 0
je 0x51fa03
mov edx, dword [esp + 0xd0]
add dword [esi + 0x30], edx
mov eax, dword [esp + 0xd4]
adc dword [esi + 0x34], eax
mov eax, ecx
mov eax, dword [eax + 0xc]
test eax, eax
jle 0x51f9fb
mov ebx, dword [esp + 0x20]
lea ecx, [eax + eax*4]
add dword [ebx + ecx*8], edx
mov eax, dword [esp + 0xd4]
adc dword [ebx + ecx*8 + 4], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x51ec85
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [edx + 4]
mov eax, dword [eax + ecx*4]
cmp byte [eax], 1
jne 0x51fa5b
push dword [eax + 0x2c]
push edi
call fcn.00525d90
mov ecx, dword [esp + 0x1c]
add esp, 8
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov eax, dword [eax + 0x2c]
push 0
push dword [eax + 0x40]
push dword [eax + 8]
call fcn.004e9130
jmp 0x51e2d0
push dword [esp + 0x14]
push esi
call fcn.004d82d0
mov esi, eax
mov dword [esp + 0xd4], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
push dword [eax + 0xc]
shl ecx, 4
lea eax, [esp + 0xd8]
add ecx, dword [edi + 0x10]
push eax
push dword [ecx + 4]
call fcn.004e9840
mov edx, eax
add esp, 0x14
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov eax, dword [esp + 0xcc]
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x51ee36
mov edx, dword [esp + 0x14]
inc byte [edi + 0x60]
push 0
push 0
push 0
push dword [edx + 0x10]
push edi
call fcn.00494820
add esp, 0x14
dec byte [edi + 0x60]
jmp 0x51e2d3
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 4]
mov edx, dword [edx + 0x10]
test edx, edx
jne 0x51fb41
mov eax, dword [edi + 0x10]
mov ecx, esi
add ecx, ecx
push dword [eax + ecx*8 + 0xc]
call fcn.00511480
mov eax, dword [esp + 0x18]
and dword [edi + 0x18], 0xffffffef
movzx eax, word [eax + 2]
push eax
mov eax, dword [ebp + 8]
add eax, 0x84
push eax
push esi
push edi
call fcn.00504450
mov esi, dword [ebp + 8]
mov edx, eax
or dword [edi + 0x18], 1
add esp, 0x14
mov dword [esp + 0x1c], edx
and dword [esi + 0xa0], 0xfffffffc
jmp 0x51fc1f
mov ecx, dword [edi + 0x10]
mov eax, dword [ebp + 8]
mov dword [esp + 0x17c], esi
add eax, 0x84
add esi, esi
mov dword [esp + 0x174], edi
mov dword [esp + 0x178], eax
mov dword [esp + 0x184], 0
push edx
mov eax, dword [ecx + esi*8 + 4]
push str.sqlite_master
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x194], eax
push dword [ecx + esi*8]
push str.SELECTFROM__w_._s_WHERE__s_ORDER_BY_rowid
push edi
call fcn.00507770
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5215c0
push 0
lea eax, [esp + 0x178]
mov byte [edi + 0xb1], 1
push eax
push fcn.00504250
push esi
push edi
mov dword [esp + 0x194], 0
mov dword [esp + 0x19c], 0
call fcn.00494820
add esp, 0x14
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x51fc07
mov eax, dword [esp + 0x180]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x51fc07
cmp dword [esp + 0x188], eax
jne 0x51fc07
push 0x16f3a
call fcn.004ef5d0
add esp, 4
mov dword [esp + 0x1c], eax
push esi
push edi
call fcn.004f0e00
mov edx, dword [esp + 0x24]
add esp, 8
mov esi, dword [ebp + 8]
mov byte [edi + 0xb1], 0
test edx, edx
jne 0x5215c8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
push dword [edx + 4]
push edi
call fcn.004e6e80
add esp, 8
jmp 0x51e2d3
mov edx, dword [esp + 0x14]
push dword [edx + 0x10]
push dword [edx + 4]
push edi
call fcn.00516be0
jmp 0x51bd8e
mov edx, dword [esp + 0x14]
push dword [edx + 0x10]
push dword [edx + 4]
push edi
call fcn.00516b40
jmp 0x51bd8e
mov edx, dword [esp + 0x14]
push dword [edx + 0x10]
push dword [edx + 4]
push edi
call fcn.00516c50
jmp 0x51bd8e
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x10]
lea esi, [eax + eax*4]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea ebx, [ebx + eax*8]
lea eax, [esp + 0x110]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + esi*8]
inc eax
push eax
push dword [edx + 8]
lea eax, [ecx + 4]
movzx ecx, word [edx + 2]
push eax
mov eax, dword [edi + 0x10]
add ecx, ecx
push dword [eax + ecx*8 + 4]
push edi
call fcn.004eaa90
push ebx
mov dword [esp + 0x64], eax
call fcn.00523f50
mov eax, dword [esp + 0x12c]
add esp, 0x1c
test eax, eax
je 0x51fd27
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x5218d4
mov edi, dword [esp + 0x20]
dec eax
push fcn.00499150
push 1
cdq
sub dword [edi + esi*8], eax
mov eax, edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
sbb dword [eax + esi*8 + 4], edx
push ebx
call fcn.00524020
mov edi, dword [esp + 0x6c]
add esp, 0x18
movzx eax, byte [esp + 0x50]
push eax
push ebx
call fcn.0051a820
add esp, 8
jmp 0x51d865
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
test byte [ecx + eax*8 + 8], 0x10
lea esi, [ecx + eax*8]
mov eax, dword [edx + 8]
lea ebx, [eax + eax*4]
jne 0x51fd6a
push esi
call fcn.00523fd0
add esp, 4
test eax, eax
jne 0x5218d4
mov edi, dword [esp + 0x20]
push dword [edi + ebx*8 + 4]
push dword [edi + ebx*8]
push dword [esi + 0x10]
call fcn.005108c0
add esp, 0xc
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
test byte [ebx + eax*8 + 8], 0x10
lea esi, [ebx + eax*8]
je 0x51fddd
lea eax, [esp + 0x138]
push eax
push dword [esi + 0x10]
call fcn.00510950
add esp, 8
test eax, eax
je 0x51fddd
mov eax, dword [esp + 0x14]
push dword [esp + 0x13c]
push dword [esp + 0x13c]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
push eax
call fcn.00523f10
add esp, 0xc
jmp 0x51d865
push esi
call fcn.00523f50
mov esi, dword [ebp + 8]
add esp, 4
jmp 0x520dcb
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
test byte [ecx + eax*8 + 8], 0x10
lea esi, [ecx + eax*8]
mov eax, dword [edx + 0xc]
lea ebx, [eax + eax*4]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x24], eax
jne 0x51fe28
push esi
call fcn.00523fd0
add esp, 4
test eax, eax
jne 0x5218d4
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
test eax, eax
je 0x51fe51
push dword [edi + ebx*8 + 4]
push dword [edi + ebx*8]
push eax
push dword [esi + 0x10]
call fcn.005109b0
add esp, 0x10
test eax, eax
jne 0x51b737
mov eax, dword [esp + 0x24]
test eax, eax
js 0x51ee36
jmp 0x51fd6e
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 0xc]
mov esi, dword [edx + 0x10]
mov dword [esp + 0x38], esi
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*8]
mov eax, edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x2c], ecx
cmp word [eax + 2], 0
je 0x51fea5
mov eax, dword [edx + 0xd8]
mov ecx, dword [esi + 0x14]
test eax, eax
je 0x51fea1
cmp dword [eax + 0x1c], ecx
je 0x521326
mov eax, dword [eax + 4]
test eax, eax
jne 0x51fe91
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + 0xe0]
cmp eax, dword [edi + 0xa0]
jge 0x5215e3
test byte [ecx + 8], 0x10
jne 0x52007a
mov ecx, dword [esi + 0xc]
mov esi, dword [esi + 8]
add esi, ecx
test ecx, ecx
jne 0x51fece
inc esi
lea eax, [esi + esi*4]
lea ecx, [ecx + eax*2]
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [eax + ecx*4]
add eax, 0x58
mov dword [esp + 0x48], eax
cdq
push edx
push eax
push edi
call fcn.004f1000
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x5218d4
push dword [esp + 0x2c]
call fcn.00523e80
mov ecx, dword [esp + 0x30]
mov eax, 0x410
mov edx, dword [esp + 0x18]
add esp, 4
sub edx, dword [esp + 0x44]
mov word [ecx + 8], ax
mov eax, dword [esp + 0x48]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x24], 0x5225e0
mov ecx, dword [esp + 0x38]
mov dword [ebx], eax
mov dword [ebx + 0x3c], esi
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0x40], eax
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 8]
mov dword [ebx + 0x30], eax
mov eax, dword [edx + 0x60]
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 0x18]
mov dword [ebx + 0x38], eax
mov eax, dword [edx + 0x68]
mov dword [ebx + 0x14], eax
mov eax, dword [edx + 0x1c]
mov dword [ebx + 0x2c], eax
mov eax, dword [edx + 0x70]
mov dword [ebx + 8], eax
mov eax, dword [edx + 0x74]
mov dword [ebx + 0x34], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x1c], eax
lea eax, [esi*4 + 0xb]
add eax, esi
lea ecx, [ebx + eax*8]
lea eax, [ebx + 0x58]
cmp eax, ecx
je 0x51ffb2
mov esi, pe_nt_image_headers32
mov word [eax + 8], si
mov dword [eax + 0x20], edi
add eax, 0x28
cmp eax, ecx
jne 0x51ffa4
mov esi, dword [esp + 0x38]
inc dword [edx + 0xe0]
mov eax, dword [edx + 0xd8]
mov dword [ebx + 4], eax
mov eax, dword [edi + 0x28]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x24], eax
mov eax, dword [edx + 0x30]
mov dword [ebx + 0x48], eax
mov eax, dword [edx + 0x34]
mov dword [ebx + 0x4c], eax
mov ecx, dword [edx]
mov eax, dword [ecx + 0x68]
mov dword [ebx + 0x50], eax
mov eax, dword [ecx + 0x6c]
lea ecx, [ebx + 0x58]
mov dword [ebx + 0x54], eax
mov eax, dword [edx + 0xec]
mov dword [ebx + 0x28], eax
mov dword [edx + 0x60], ecx
mov dword [edx + 0xec], 0
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
mov dword [edx + 0xd8], ebx
mov eax, dword [ebx + 0x3c]
mov dword [edx + 0x18], eax
movzx eax, word [ebx + 0x40]
mov dword [edx + 0x1c], eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0x20], ecx
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*8]
mov dword [edx + 0x68], ecx
mov eax, dword [esi + 0xc]
lea ecx, [ecx + eax*4]
mov dword [ebx + 0x18], ecx
mov eax, dword [esi + 4]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
push 0
push ecx
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov ebx, dword [esi]
mov dword [esp + 0x44], ebx
mov dword [eax + 0x70], ebx
mov eax, dword [esi + 4]
lea ecx, [ebx - 0x14]
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
mov dword [esi + 0x74], eax
jmp 0x51d86c
mov ebx, dword [ecx + 0x10]
jmp 0x51ffb6
push dword [esp + 0x14]
push esi
call fcn.004d82d0
mov esi, eax
mov eax, dword [ebp + 8]
push 0x1000
mov eax, dword [eax + 0xd8]
mov ecx, dword [eax + 0x30]
lea edx, [ecx + ecx*4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [ecx + edx*4 + 4]
mov edx, dword [esp + 0x20]
add ecx, dword [edx + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*8]
push eax
push esi
call fcn.00524320
add esp, 0x14
jmp 0x51ee36
mov eax, dword [edi + 0x20]
and eax, 0x80000
or eax, 0
mov eax, dword [esp + 0x14]
je 0x520104
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x84]
cdq
add dword [edi + 0x208], eax
mov eax, dword [esp + 0x18]
adc dword [edi + 0x20c], edx
add ecx, 0x14
mov edi, dword [esp + 0x54]
jmp 0x51b6d3
cmp dword [eax + 4], 0
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x14]
cdq
je 0x520135
add dword [edi + 0x200], eax
mov eax, dword [esp + 0x18]
adc dword [edi + 0x204], edx
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
add dword [esi + 0x48], eax
mov eax, dword [esp + 0x18]
adc dword [esi + 0x4c], edx
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
cmp dword [ecx + 4], 0
je 0x520193
mov eax, dword [edi + 0x200]
or eax, dword [edi + 0x204]
jne 0x51ee3d
mov eax, dword [edi + 0x208]
or eax, dword [edi + 0x20c]
je 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov eax, dword [esi + 0x48]
or eax, dword [esi + 0x4c]
jmp 0x520164
mov edx, dword [esi + 0xd8]
test edx, edx
je 0x5201cf
mov eax, dword [edx + 4]
test eax, eax
je 0x5201b9
lea esp, [esp]
mov edx, eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x5201b0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [eax + 4]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x10]
lea edi, [eax + ecx*8]
jmp 0x5201e0
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea edi, [ebx + eax*8]
push edi
call fcn.00523c50
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
lea eax, [eax + eax*4]
lea esi, [ebx + eax*8]
push esi
call fcn.00523c50
mov ecx, dword [esi + 4]
add esp, 8
mov eax, dword [esi]
cmp dword [edi + 4], ecx
jg 0x51ee36
jl 0x520214
cmp dword [edi], eax
jae 0x51ee36
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x51ee36
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edi + 4]
lea esi, [eax + eax*4]
mov edi, dword [ebx + esi*8 + 4]
mov ecx, dword [ebx + esi*8]
test edi, edi
jl 0x51ee36
jg 0x520245
test ecx, ecx
je 0x51ee36
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
cdq
sub ecx, eax
mov dword [ebx + esi*8], ecx
sbb edi, edx
mov dword [ebx + esi*8 + 4], edi
jmp 0x51b737
mov edx, dword [esp + 0x14]
push edx
push dword [ebp + 8]
mov eax, dword [edx + 4]
lea esi, [eax + eax*4]
mov eax, dword [edx + 0xc]
lea ebx, [eax + eax*4]
call fcn.004d82d0
mov edx, dword [esp + 0x28]
add esp, 8
mov edi, eax
mov ecx, dword [edx + esi*8 + 4]
mov eax, dword [edx + esi*8]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], ecx
test ecx, ecx
jl 0x5202e1
jg 0x52029e
test eax, eax
je 0x5202e1
mov ecx, dword [edx + ebx*8 + 4]
mov eax, dword [edx + ebx*8]
test ecx, ecx
jl 0x5202af
jg 0x5202b3
test eax, eax
jne 0x5202b3
xor eax, eax
xor ecx, ecx
push ecx
push eax
lea eax, [esp + 0xf0]
push eax
call fcn.004e5990
add esp, 0xc
test eax, eax
jne 0x5202e1
mov eax, dword [esp + 0xe8]
mov dword [edi], eax
mov eax, dword [esp + 0xec]
mov dword [edi + 4], eax
jmp 0x51ee36
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea esi, [eax + eax*4]
mov ecx, dword [ebx + esi*8]
mov eax, ecx
mov edx, dword [ebx + esi*8 + 4]
or eax, edx
je 0x51ee36
test edx, edx
jl 0x51b737
jg 0x520324
test ecx, ecx
je 0x51b737
sub ecx, 1
mov dword [ebx + esi*8], ecx
sbb edx, 0
jmp 0x51b733
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea ecx, [eax + eax*4]
mov edx, dword [ebx + ecx*8 + 4]
mov eax, dword [ebx + ecx*8]
cmp edx, 0x80000000
jl 0x520362
jg 0x520355
test eax, eax
je 0x520362
sub eax, 1
mov dword [ebx + ecx*8], eax
sbb edx, 0
mov dword [ebx + ecx*8 + 4], edx
mov eax, dword [ebx + ecx*8]
or eax, dword [ebx + ecx*8 + 4]
mov ecx, dword [esp + 0x14]
je 0x51b73e
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
push 0
movzx ebx, word [edx + 2]
lea eax, [ebx*4 + 0x44]
push eax
push edi
call fcn.004f0ee0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x5218d4
mov dword [esi + 8], 0
lea ecx, [ebx + 7]
lea ecx, [esi + ecx*4]
mov eax, 1
mov dword [esi], ecx
mov word [ecx + 8], ax
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x18], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x10]
sub ecx, dword [esp + 0x44]
mov dword [esi + 4], eax
mov eax, 0x66666667
imul ecx
mov byte [esi + 0x18], 0
sar edx, 3
mov eax, edx
mov dword [esi + 0x14], 0
shr eax, 0x1f
add eax, edx
mov byte [esi + 0x19], bl
mov edx, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov word [edx], 0xf0a2
mov dword [edx + 0x10], esi
jmp 0x520419
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x20]
mov esi, dword [edx + 0x10]
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*8]
mov dword [esp + 0x48], ebx
cmp dword [esi + 8], ebx
je 0x520470
movzx ecx, byte [esi + 0x19]
dec ecx
mov dword [esi + 8], ebx
js 0x520470
mov edi, dword [esp + 0x14]
lea edx, [ecx + 7]
mov ebx, dword [esp + 0x20]
lea edx, [esi + edx*4]
lea ebx, [ebx]
mov eax, dword [edi + 8]
lea edx, [edx - 4]
add eax, ecx
dec ecx
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
mov dword [edx + 4], eax
jns 0x520450
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
inc dword [ebx + 0xc]
lea eax, [esi + 0x1c]
cmp dword [edx + 4], 0
mov ecx, dword [esi + 4]
push eax
movzx eax, byte [esi + 0x19]
push eax
push esi
je 0x52048b
mov eax, dword [ecx + 0x1c]
jmp 0x52048e
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esi + 0x14]
add esp, 0xc
test eax, eax
je 0x521132
jle 0x5204bf
push dword [esi]
call fcn.004903d0
push eax
push 0x562f9c
push dword [ebp + 8]
call fcn.0051b5d0
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp byte [esi + 0x18], 0
je 0x5204eb
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0x10]
test eax, eax
je 0x5204e7
mov ecx, dword [esp + 0x20]
lea eax, [eax + eax*4]
push 0
push 1
lea eax, [ecx + eax*8]
push eax
call fcn.00523f10
add esp, 0xc
mov byte [esi + 0x18], 0
push dword [esi]
call fcn.00523e80
mov eax, dword [esi]
mov ecx, 1
mov edx, dword [esp + 0x20]
add esp, 4
mov word [eax + 8], cx
mov dword [esi + 0x14], 0
test edx, edx
jne 0x51ec85
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 4]
push dword [edx + 0x10]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x520558
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
push esi
call fcn.005235e0
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
jmp 0x520563
push esi
call fcn.00523850
add esp, 8
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x521603
movzx eax, byte [esp + 0x50]
push eax
push esi
call fcn.0051a820
push esi
call fcn.00524420
mov esi, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x52167f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x100]
mov dword [esp + 0xfc], 0
push eax
push dword [edx + 8]
mov dword [esp + 0x10c], 0xffffffff
push dword [edx + 4]
mov dword [esp + 0x10c], 0xffffffff
push edi
call fcn.004eccc0
mov edx, eax
add esp, 0x14
mov dword [esp + 0x1c], edx
test edx, edx
je 0x520614
cmp edx, 5
jne 0x51ec85
mov dword [esp + 0x1c], 0
mov dword [esp + 0xf8], 1
mov eax, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
mov eax, dword [esp + esi*4 + 0xf8]
cdq
push edx
push eax
push edi
call fcn.00523f10
inc esi
add esp, 0xc
add edi, 0x28
cmp esi, 3
jl 0x520627
jmp 0x51ee36
mov ebx, dword [esp + 0x14]
push ebx
push esi
call fcn.004d82d0
mov edx, dword [ebx + 4]
add esp, 8
mov ecx, dword [edi + 0x10]
add edx, edx
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + edx*8 + 4]
mov dword [esp + 0x48], eax
mov ecx, dword [eax + 4]
mov ebx, dword [ecx]
movzx ecx, byte [ebx + 5]
mov dword [esp + 0x34], ecx
cmp esi, 0xffffffff
jne 0x520681
mov esi, ecx
cmp byte [ebx + 0x11], 3
jae 0x52069d
mov eax, dword [ebx + 0x44]
cmp dword [eax], 0
je 0x52069f
cmp dword [ebx + 0x54], 0
jl 0x52069f
jg 0x52069d
cmp dword [ebx + 0x50], 0
jbe 0x52069f
mov esi, ecx
cmp byte [ebx + 0xf], 0
mov eax, 0x573530
jne 0x5206b0
mov eax, dword [ebx + 0xb8]
cmp esi, 5
jne 0x5206de
push eax
call fcn.00515b60
add esp, 4
test eax, eax
je 0x5206cf
push ebx
call fcn.0050aa50
add esp, 4
test eax, eax
jne 0x5206da
mov eax, dword [esp + 0x34]
mov esi, eax
jmp 0x52075c
mov ecx, dword [esp + 0x34]
cmp esi, ecx
je 0x520758
cmp ecx, 5
je 0x5206ec
cmp esi, 5
jne 0x520758
cmp byte [edi + 0x55], 0
je 0x521624
cmp dword [edi + 0xc0], 1
jg 0x521624
cmp ecx, 5
jne 0x520726
push edi
push ebx
call fcn.005091e0
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x520766
push esi
push ebx
call fcn.0050a410
add esp, 8
jmp 0x52073e
cmp ecx, 4
jne 0x520736
push 2
push ebx
call fcn.0050a410
add esp, 8
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x520766
xor eax, eax
cmp esi, 5
sete al
inc eax
push eax
push dword [esp + 0x4c]
call fcn.004ec140
add esp, 8
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x52076c
jmp 0x52076a
mov eax, dword [esp + 0x34]
mov esi, eax
push esi
push ebx
call fcn.0050a410
mov ebx, dword [esp + 0x2c]
add esp, 8
mov ecx, 0xa02
mov word [ebx + 8], cx
cmp eax, 6
jne 0x52078c
xor eax, eax
jmp 0x520793
mov eax, dword [eax*4 + 0x572c14]
push eax
mov dword [ebx + 0x10], eax
call fcn.00515b60
mov dword [ebx + 0xc], eax
movzx eax, byte [esp + 0x54]
push eax
push ebx
mov byte [ebx + 0xa], 1
call fcn.0051a820
mov edx, dword [esp + 0x28]
add esp, 0xc
test edx, edx
jne 0x51ec85
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
test eax, eax
je 0x5207da
mov ecx, dword [esp + 0x20]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
jmp 0x5207dc
xor eax, eax
push eax
push dword [edx + 4]
lea eax, [esi + 0x84]
push edi
push eax
call fcn.00510ef0
add esp, 0x10
jmp 0x51e2d3
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x10]
mov ecx, dword [edx + 4]
add ecx, ecx
push dword [eax + ecx*8 + 4]
call fcn.004ea050
mov edx, eax
add esp, 4
mov dword [esp + 0x1c], edx
test edx, edx
je 0x521135
cmp edx, 0x65
jne 0x51ec85
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
jmp 0x51b73e
cmp dword [ecx + 4], 0
jne 0x520862
push dword [ecx + 8]
push edi
call fcn.004f3750
mov ecx, dword [esp + 0x1c]
add esp, 8
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov eax, dword [ecx + 8]
mov edi, dword [esp + 0x54]
inc eax
xor eax, dword [esi + 0xa0]
mov ebx, dword [esp + 0x84]
and eax, 3
xor dword [esi + 0xa0], eax
add ecx, 0x14
mov eax, dword [esp + 0x18]
jmp 0x51b6d3
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 0x68]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x2c]
or byte [eax + 1], 0x40
add ecx, 0x14
mov eax, dword [esp + 0x18]
jmp 0x51b6d3
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 0x68]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x2c]
and byte [eax + 1], 0xbf
add ecx, 0x14
mov eax, dword [esp + 0x18]
jmp 0x51b6d3
mov al, byte [ecx + 0xc]
mov byte [esp + 0x114], al
test al, al
jne 0x52090f
mov eax, dword [edi + 0x20]
and eax, 0x400
mov dword [esp + 0x48], eax
mov eax, 0
jne 0x51ee3d
test eax, eax
jne 0x51ee3d
mov eax, dword [esp + 0x14]
push dword [esp + 0x114]
mov ecx, dword [eax + 4]
push dword [eax + 8]
mov eax, dword [edi + 0x10]
add ecx, ecx
push dword [eax + ecx*8 + 4]
call fcn.004eb0a0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
je 0x51bd91
mov esi, dword [esp + 0x14]
mov ebx, dword [ebp + 8]
cmp dl, 6
jne 0x51ec8c
push dword [esi + 0x10]
push str.database_table_is_locked:__s
push ebx
call fcn.0051b5d0
mov edx, dword [esp + 0x28]
add esp, 0xc
jmp 0x51ec8c
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 0x10]
push esi
push edi
call fcn.00526790
add esp, 8
mov edx, eax
mov dword [esp + 0x1c], edx
test esi, esi
je 0x52099c
push dword [esi + 8]
mov esi, dword [ebp + 8]
push esi
call fcn.005271a0
mov edx, dword [esp + 0x24]
add esp, 8
jmp 0x51e2d9
mov esi, dword [ebp + 8]
jmp 0x51e2d9
mov edx, dword [esp + 0x14]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x190], eax
mov dword [esp + 0x194], eax
mov dword [esp + 0x198], eax
mov dword [esp + 0x19c], eax
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x1a4], eax
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b4], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x1b0], edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
lea eax, [esp + 0x194]
push eax
call fcn.00523770
mov dword [esp + 0x24], eax
lea eax, [esp + 0x198]
push eax
call fcn.004903d0
add esp, 0xc
test eax, eax
je 0x520a46
lea ecx, [esi + 0x84]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
push edi
call fcn.00526a30
add esp, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x190]
push eax
call fcn.00523e80
mov edx, dword [esp + 0x20]
add esp, 4
jmp 0x51e2d9
mov edx, dword [esp + 0x14]
inc dword [edi + 0xcc]
push dword [edx + 0x10]
push dword [edx + 4]
push edi
call fcn.00526b10
add esp, 0xc
dec dword [edi + 0xcc]
jmp 0x51e2d3
mov edx, dword [esp + 0x14]
mov dword [esp + 0x98], 0
mov eax, dword [edx + 0x10]
mov esi, dword [eax + 8]
test esi, esi
je 0x52166a
mov ebx, dword [esi]
test ebx, ebx
je 0x52166a
lea eax, [esp + 0x98]
push eax
mov eax, dword [ebx + 0x18]
push esi
call eax
push esi
push dword [ebp + 8]
mov dword [esp + 0x2c], eax
call fcn.005271a0
mov edx, dword [esp + 0x2c]
add esp, 0x10
test edx, edx
jne 0x51ec85
mov eax, dword [esp + 0x98]
push 2
push edx
mov dword [eax], esi
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
push dword [ebp + 8]
call fcn.004a88e0
add esp, 0x10
test eax, eax
je 0x521656
mov ecx, dword [esp + 0x98]
mov dword [eax + 0x2c], ecx
inc dword [esi + 4]
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
push 0
push 8
mov ecx, dword [edx + 4]
mov ebx, dword [eax + ecx*4]
call fcn.00498ff0
mov esi, eax
add esp, 8
test esi, esi
je 0x5218d4
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x2c]
mov edx, dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [eax + 0xc]
push eax
push dword [ebp + 8]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*8]
mov dword [esi + 4], ecx
call fcn.004d82d0
push fcn.00499150
push str.ValueList
mov ecx, 1
push esi
push eax
mov word [eax + 8], cx
call fcn.00523f80
jmp 0x51ee33
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 4]
lea ebx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esi + 0x64]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 0x2c]
mov edx, dword [ecx + ebx*8 + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov dword [esp + 0x40], eax
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + ebx*8]
mov dword [esp + 0x48], eax
xor eax, eax
test edx, edx
jle 0x520bc3
lea ecx, [ecx + ebx*8]
add ecx, 0x50
mov dword [esi + eax*4], ecx
inc eax
add ecx, 0x28
cmp eax, edx
jl 0x520bb8
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x28]
push edx
push dword [eax + 0x10]
mov eax, dword [ebx + 0x20]
push dword [esp + 0x54]
push esi
call eax
push dword [esp + 0x54]
mov dword [esp + 0x34], eax
push dword [ebp + 8]
call fcn.005271a0
mov edx, dword [esp + 0x38]
add esp, 0x1c
test edx, edx
jne 0x51ec85
mov eax, dword [ebx + 0x28]
push esi
call eax
mov ecx, dword [esp + 0x30]
add esp, 4
mov esi, dword [ebp + 8]
mov byte [ecx + 2], 0
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x51ee3d
jmp 0x51b73e
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [edx + 4]
mov ebx, dword [eax + ecx*4]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x20]
cmp byte [ebx + 2], 0
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
je 0x520c50
push esi
call fcn.00523f50
add esp, 4
jmp 0x51ee36
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov dword [esp + 0x48], eax
xor eax, eax
test byte [edx + 2], 1
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], eax
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], eax
mov dword [esp + 0x154], eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], eax
mov dword [esp + 0x140], esi
je 0x520cc0
push esi
call fcn.00523f50
mov edx, dword [esp + 0x18]
add esp, 4
mov eax, 0x4001
mov dword [esi], 0
jmp 0x520cd0
mov ax, word [esi + 8]
mov ecx, 0x3e40
and ax, cx
or ax, 1
mov word [esi + 8], ax
lea eax, [esp + 0x140]
push dword [edx + 8]
push eax
mov eax, dword [esp + 0x50]
push dword [ebx + 0x2c]
mov eax, dword [eax + 0x2c]
call eax
push dword [esp + 0x30]
mov ebx, dword [ebp + 8]
push ebx
mov dword [esp + 0x30], eax
call fcn.005271a0
add esp, 0x14
cmp dword [esp + 0x154], 0
jle 0x520d29
push esi
call fcn.004903d0
push eax
push 0x562f9c
push ebx
call fcn.0051b5d0
mov eax, dword [esp + 0x164]
add esp, 0x10
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x50]
push eax
push esi
call fcn.0051a820
push esi
call fcn.00524420
add esp, 0xc
test eax, eax
jne 0x52169b
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x51ec88
mov ecx, dword [esp + 0x14]
mov esi, ebx
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [ebx + 4]
mov ebx, dword [eax + ecx*4]
cmp byte [ebx + 2], 0
jne 0x51b941
mov eax, dword [ebx + 0x2c]
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
mov dword [esp + 0x4c], ecx
mov eax, dword [ecx + 0x24]
call eax
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [esp + 0x28], eax
call fcn.005271a0
mov edx, dword [esp + 0x28]
add esp, 0xc
test edx, edx
jne 0x51ec85
mov eax, dword [esp + 0x48]
push dword [ebx + 0x2c]
mov eax, dword [eax + 0x28]
call eax
add esp, 4
test eax, eax
jne 0x51d868
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x44]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
add ecx, 0xffffffec
mov dword [esp + 0x14], ecx
jmp 0x51d86c
mov edx, dword [esp + 0x14]
mov ebx, dword [edi + 0x20]
or dword [edi + 0x20], 0x4000000
and ebx, 0x4000000
mov eax, dword [edi + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x24], eax
mov eax, dword [edx + 0x10]
push 1
mov esi, dword [eax + 8]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
mov dword [esp + 0x50], eax
call fcn.0051a820
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x51ec85
mov ecx, dword [esp + 0x48]
mov eax, dword [esi]
push dword [ecx + 0x10]
mov eax, dword [eax + 0x4c]
push esi
call eax
add esp, 8
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x520e59
mov eax, dword [edi + 0x24]
and dword [edi + 0x20], 0xfbffffff
mov dword [edi + 0x24], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.005271a0
mov edx, dword [esp + 0x24]
add esp, 8
and dword [esi + 0xa0], 0xfffffffc
jmp 0x51e2d9
cmp byte [edi + 0x57], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
jne 0x5218d7
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x52166a
mov eax, dword [ebx]
mov dword [esp + 0x48], eax
test eax, eax
je 0x52166a
cmp dword [eax + 0x34], 0
mov edx, dword [edx + 8]
je 0x51b941
mov al, byte [edi + 0x5c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esi + 0x64]
mov byte [esp + 0x77], al
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*8]
xor eax, eax
test edx, edx
jle 0x520eef
mov dword [esi + eax*4], ecx
inc eax
add ecx, 0x28
cmp eax, edx
jl 0x520ee4
mov eax, dword [esp + 0x14]
mov al, byte [eax + 2]
mov byte [edi + 0x5c], al
lea eax, [esp + 0xf0]
push eax
mov eax, dword [esp + 0x4c]
push esi
push edx
push ebx
mov eax, dword [eax + 0x34]
call eax
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x87]
push ebx
push esi
mov byte [edi + 0x5c], al
call fcn.005271a0
mov edx, dword [esp + 0x34]
add esp, 0x18
mov eax, dword [esp + 0x14]
test edx, edx
jne 0x520f51
cmp dword [eax + 4], edx
je 0x520f51
mov eax, dword [esp + 0xf0]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0xf4]
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x14]
cmp dl, 0x13
jne 0x520fa4
mov eax, dword [eax + 0x10]
cmp byte [eax + 0x10], 0
je 0x520fa4
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 2]
cmp eax, 4
jne 0x520f8f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x1c], 0
jmp 0x51b6d3
cmp eax, 5
jne 0x520f99
mov eax, 2
mov byte [esi + 0x9a], al
jmp 0x51e2d9
add dword [esi + 0x30], 1
adc dword [esi + 0x34], 0
jmp 0x51e2d9
push dword [esp + 0x14]
push esi
call fcn.004d82d0
mov ecx, dword [esp + 0x1c]
add esp, 8
mov ebx, dword [esp + 0x84]
mov edx, dword [ecx + 4]
mov ecx, dword [edi + 0x10]
mov edi, dword [esp + 0x54]
shl edx, 4
mov ecx, dword [edx + ecx + 4]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + 0x30]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], 0
add ecx, 0x14
mov eax, dword [esp + 0x18]
jmp 0x51b6d3
push dword [esp + 0x14]
push esi
call fcn.004d82d0
mov ecx, dword [edi + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x1c]
add esp, 8
mov edx, dword [eax + 4]
add edx, edx
mov esi, dword [ecx + edx*8 + 4]
xor ecx, ecx
mov edx, dword [eax + 0xc]
test edx, edx
je 0x52102d
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x30]
cmp ecx, edx
jae 0x52102d
mov ecx, edx
push ecx
push esi
call fcn.004eb110
add esp, 8
mov dword [ebx], eax
mov dword [ebx + 4], 0
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 0xc]
mov esi, dword [edx + 0x10]
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*8]
mov dword [esp + 0x48], ebx
cmp dword [esi], ebx
je 0x52109b
movzx ecx, byte [esi + 0x19]
dec ecx
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov dword [esi], ebx
js 0x52109b
mov edi, dword [esp + 0x14]
lea edx, [esi + 0x1c]
mov ebx, dword [esp + 0x20]
lea edx, [edx + ecx*4]
mov edi, edi
mov eax, dword [edi + 8]
add eax, ecx
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
mov dword [edx], eax
sub edx, 4
dec ecx
jns 0x521080
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x48]
mov ax, word [ebx + 8]
mov ecx, 0x3e40
and ax, cx
or ax, 1
mov word [ebx + 8], ax
lea eax, [esi + 0x1c]
mov ecx, dword [esi + 4]
push eax
movzx eax, byte [esi + 0x19]
push eax
mov eax, dword [ecx + 0x10]
push esi
call eax
mov eax, dword [esi + 0x14]
add esp, 0xc
test eax, eax
je 0x52111a
jle 0x5210eb
push ebx
call fcn.004903d0
push eax
push 0x562f9c
push dword [ebp + 8]
call fcn.0051b5d0
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
push dword [eax + 4]
mov eax, dword [ebp + 8]
push dword [esi + 0x10]
add eax, 0xec
push eax
push edi
call fcn.0051b000
mov edx, dword [esp + 0x2c]
add esp, 0x10
mov dword [esi + 0x14], 0
test edx, edx
jne 0x51ec85
test byte [ebx + 8], 0x12
je 0x521132
movzx eax, byte [esp + 0x50]
push eax
push ebx
call fcn.0051a820
push ebx
jmp 0x52057c
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x54]
add ecx, 0x14
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
push edx
push ebx
mov eax, dword [edx + 4]
lea edi, [eax + eax*4]
call fcn.004b92f0
add esp, 8
mov esi, eax
mov eax, dword [ebx + edi*8 + 0xc]
mov ecx, edx
cdq
push edx
push eax
push ecx
push esi
call fcn.004155a0
mov ecx, eax
mov al, 1
mov esi, ecx
and ecx, 7
shrd esi, edx, 3
shl al, cl
shr edx, 3
mov edx, dword [ebx + edi*8 + 0x10]
or byte [esi + edx], al
jmp 0x51ee36
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
push edx
push edi
mov eax, dword [edx + 4]
lea ebx, [eax + eax*4]
call fcn.004b92f0
add esp, 8
mov esi, eax
mov eax, dword [edi + ebx*8 + 0xc]
mov ecx, edx
cdq
push edx
push eax
push ecx
push esi
call fcn.004155a0
mov edi, eax
mov eax, dword [esp + 0x20]
mov esi, edi
and edi, 7
shrd esi, edx, 3
mov ecx, dword [eax + ebx*8 + 0x10]
mov eax, 1
shr edx, 3
movsx edx, byte [esi + ecx]
mov ecx, edi
mov esi, dword [ebp + 8]
shl eax, cl
mov ecx, dword [esp + 0x14]
test eax, edx
jne 0x5211fb
inc dword [esi + 0xcc]
jmp 0x51b73e
inc dword [esi + 0xc8]
add ecx, 0x14
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov cl, byte [edi + 0x5e]
test cl, 0x41
je 0x5212cc
cmp byte [esi + 0x9d], 0
jne 0x5212cc
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x52124d
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x5212cc
push eax
test cl, 0x40
je 0x521278
push esi
call fcn.00521dd0
mov ecx, dword [edi + 0xd8]
mov esi, eax
push esi
push dword [edi + 0xdc]
call ecx
push esi
call fcn.00499150
mov esi, dword [ebp + 8]
add esp, 0x14
jmp 0x5212cc
cmp dword [edi + 0xc8], 1
jle 0x5212b8
push str.____s
push edi
call fcn.00507770
mov ecx, dword [edi + 0xd8]
mov esi, eax
push esi
push dword [ebp + 8]
push dword [edi + 0xdc]
push 1
call ecx
add esp, 0x1c
test esi, esi
je 0x5212b3
push esi
push edi
call fcn.004f0e00
add esp, 8
mov esi, dword [ebp + 8]
jmp 0x5212cc
mov eax, dword [edi + 0xd8]
push esi
push dword [edi + 0xdc]
push 1
call eax
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
cmp eax, dword [0x69bfdc]
jl 0x521318
cmp byte [ecx], 0xb3
je 0x51ee3d
mov edx, 1
cmp dword [esi + 0x74], edx
jle 0x521311
mov eax, 0x14
mov ecx, dword [esi + 0x70]
cmp byte [eax + ecx], 0x11
jne 0x521304
mov dword [eax + ecx + 4], 0
inc edx
add eax, 0x14
cmp edx, dword [esi + 0x74]
jl 0x5212f3
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], 0
inc dword [ecx + 4]
inc dword [esi + 0xc4]
jmp 0x51b73e
mov ecx, dword [esp + 0x14]
mov esi, edx
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
jmp 0x51b6d3
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov dword [ebx + 0x28], ecx
mov al, byte [edx + 8]
mov byte [ebx + 0x9a], al
mov dword [ebx + 0x24], esi
test ecx, ecx
je 0x5213d5
movzx eax, word [edx + 2]
test ax, ax
je 0x5213a3
push dword [eax*4 + 0x573cb0]
push str._s_constraint_failed
push ebx
call fcn.0051b5d0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [eax + 0x10]
test eax, eax
je 0x5213b4
push eax
push dword [ebx + 0x84]
push str._z:__s
push edi
call fcn.00507770
add esp, 0x10
mov dword [ebx + 0x84], eax
jmp 0x5213b4
push dword [edx + 0x10]
push 0x562f9c
push ebx
call fcn.0051b5d0
add esp, 0xc
push dword [ebx + 0x84]
mov eax, dword [esp + 0x18]
push dword [ebx + 0xd0]
push esi
push str.abort_at__d_in___s_:__s
push dword [eax + 4]
call fcn.004a3470
add esp, 0x14
push ebx
call fcn.005227c0
mov esi, eax
add esp, 4
cmp esi, 5
jne 0x5213ed
mov dword [ebx + 0x28], eax
jmp 0x521810
mov ecx, dword [ebx + 0x28]
neg ecx
sbb ecx, ecx
and ecx, 0xffffff9c
add ecx, 0x65
mov dword [esp + 0x1c], ecx
mov esi, ecx
jmp 0x521810
push 0x160ef
call fcn.004ef5d0
mov edx, eax
add esp, 4
mov dword [esp + 0x1c], edx
jmp 0x51ec85
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x48]
add eax, eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ebp + 8]
push dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
push dword [ecx]
shr eax, 4
and eax, 0xf
push dword [eax*4 + 0x69bfe4]
movzx eax, word [esi + 8]
and eax, 0x3f
movzx eax, byte [eax + 0x5737e8]
push dword [eax*4 + 0x69c624]
push str.cannot_store__s_value_in__s_column__s._s
push ebx
call fcn.0051b5d0
mov edx, 0xc13
add esp, 0x18
mov dword [esp + 0x1c], edx
jmp 0x51ec88
push str.cannot_open_savepoint___SQL_statements_in_progress
push esi
call fcn.0051b5d0
mov edx, 5
add esp, 8
mov dword [esp + 0x1c], edx
jmp 0x51ec85
mov ebx, dword [ebp + 8]
push str.cannot_release_savepoint___SQL_statements_in_progress
push ebx
call fcn.0051b5d0
mov edx, 5
add esp, 8
mov dword [esp + 0x1c], edx
jmp 0x51ec88
mov ecx, dword [esp + 0x14]
mov eax, 0x66666667
sub ecx, dword [esp + 0x44]
mov esi, 5
mov ebx, dword [ebp + 8]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebx + 0x24], eax
mov byte [edi + 0x55], 0
mov dword [ebx + 0x28], esi
jmp 0x521810
mov ebx, dword [ebp + 8]
push str.no_such_savepoint:__s
push ebx
call fcn.0051b5d0
mov edx, 1
add esp, 0xc
mov dword [esp + 0x1c], edx
jmp 0x51ec88
mov eax, dword [edi + 0x20]
mov esi, dword [esp + 0x14]
and eax, 0x100000
or eax, 0
mov ebx, dword [ebp + 8]
je 0x521521
mov edx, 8
mov dword [esp + 0x1c], edx
jmp 0x51ec8c
mov edx, 0xb
mov dword [esp + 0x1c], edx
jmp 0x51ec8c
cmp dl, 5
jne 0x51ec88
mov ecx, dword [esp + 0x14]
mov eax, 0x66666667
sub ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x1c]
imul ecx
mov dword [ebx + 0x28], esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebx + 0x24], eax
jmp 0x521810
mov edx, 0x204
mov dword [esp + 0x1c], edx
jmp 0x51ec85
push str.index_corruption
push 0x16d72
push 0x30b
call fcn.0050fcd0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
jmp 0x51ec85
push 0x16e3e
call fcn.004ef5d0
mov edx, eax
add esp, 4
mov dword [esp + 0x1c], edx
jmp 0x51ec85
mov ebx, dword [ebp + 8]
mov edx, 6
mov dword [esp + 0x1c], edx
mov byte [ebx + 0x9a], 2
jmp 0x51ec88
mov dword [esp + 0x1c], 7
push edi
call fcn.0050fd80
mov edx, dword [esp + 0x20]
add esp, 4
cmp edx, 7
je 0x5218d4
jmp 0x51ec85
push str.too_many_levels_of_trigger_recursion
push edx
mov dword [esp + 0x24], 1
call fcn.0051b5d0
add esp, 8
mov edx, 1
jmp 0x51ec85
push esi
call fcn.004903d0
mov ebx, dword [ebp + 8]
push eax
push 0x562f9c
push ebx
call fcn.0051b5d0
mov edx, dword [esp + 0x2c]
add esp, 0x10
jmp 0x51ec88
mov dword [esp + 0x1c], 1
mov eax, str.into
cmp esi, 5
je 0x52163b
mov eax, str.out_of
mov ebx, dword [ebp + 8]
push eax
push str.cannot_change__s_wal_mode_from_within_a_transaction
push ebx
call fcn.0051b5d0
mov edx, dword [esp + 0x28]
add esp, 0xc
jmp 0x51ec88
push dword [esp + 0x98]
mov eax, dword [ebx + 0x1c]
call eax
add esp, 4
jmp 0x5218d4
mov edx, 6
mov dword [esp + 0x1c], edx
jmp 0x51ec85
mov edi, dword [esp + 0x54]
mov esi, dword [ebp + 8]
push str.string_or_blob_too_big
push esi
call fcn.0051b5d0
mov edx, 0x12
add esp, 8
mov dword [esp + 0x1c], edx
jmp 0x51ec85
mov esi, ebx
jmp 0x52167f
mov eax, dword [esi + 0x20]
xor ebx, ebx
mov edx, dword [esp + 0x14]
add eax, 2
mov ecx, dword [esp + 0x20]
or eax, 1
mov dword [esi + 0x20], eax
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x80], esi
cmp dword [edx + 8], ebx
jle 0x521702
lea esp, [esp]
mov eax, 0x1000
test word [esi + 8], ax
je 0x5216ec
push esi
call fcn.00523cb0
add esp, 4
test eax, eax
jne 0x5218d4
push esi
call fcn.00523d40
mov eax, dword [esp + 0x18]
inc ebx
add esp, 4
add esi, 0x28
cmp ebx, dword [eax + 8]
jl 0x5216d0
cmp byte [edi + 0x57], 0
jne 0x5218d4
test byte [edi + 0x5e], 4
mov ebx, dword [ebp + 8]
je 0x52172b
mov eax, dword [edi + 0xd8]
push 0
push ebx
push dword [edi + 0xdc]
push 4
call eax
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov eax, 0x66666667
sub ecx, dword [esp + 0x44]
mov esi, 0x64
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc eax
add eax, edx
mov dword [ebx + 0x24], eax
jmp 0x521810
mov edx, dword [esp + 0x14]
movzx eax, byte [edi + 0x55]
mov ebx, dword [edx + 4]
mov ecx, dword [edx + 8]
cmp ebx, eax
je 0x52187b
test ecx, ecx
je 0x521780
push 0x204
push edi
call fcn.00510570
add esp, 8
mov byte [edi + 0x55], 1
jmp 0x5217ae
test ebx, ebx
je 0x521797
cmp dword [edi + 0xc4], 0
jle 0x521797
push str.cannot_commit_transaction___SQL_statements_in_progress
jmp 0x52147a
push 1
push esi
call fcn.0051aa40
mov esi, eax
add esp, 8
test esi, esi
jne 0x52180a
mov esi, dword [ebp + 8]
mov byte [edi + 0x55], bl
push esi
call fcn.005227c0
add esp, 4
cmp eax, 5
jne 0x5217ec
mov ecx, dword [esp + 0x14]
mov eax, 0x66666667
sub ecx, dword [esp + 0x44]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi + 0x24], eax
mov al, 1
sub al, bl
mov esi, 5
mov ebx, dword [ebp + 8]
mov byte [edi + 0x55], al
mov dword [ebx + 0x28], esi
jmp 0x521810
push edi
call fcn.004ed320
mov ecx, dword [esi + 0x28]
add esp, 4
neg ecx
sbb ecx, ecx
and ecx, 0xffffff9c
add ecx, 0x65
mov dword [esp + 0x1c], ecx
mov esi, dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
lea ecx, [ecx]
mov edx, dword [esp + 0x6c]
cmp dword [esp + 0x18], edx
jb 0x521a98
mov ecx, dword [esp + 0x68]
ja 0x521831
cmp dword [esp + 0x84], ecx
jb 0x521a98
mov eax, dword [edi + 0x170]
test eax, eax
je 0x521a98
add ecx, dword [edi + 0x178]
push dword [edi + 0x174]
adc edx, 0
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
call eax
add esp, 4
test eax, eax
je 0x521810
or ecx, 0xffffffff
mov edx, 9
or eax, 0xffffffff
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x1c], edx
jmp 0x51ec85
test ebx, ebx
jne 0x52189c
mov eax, str.cannot_start_a_transaction_within_a_transaction
push eax
push esi
call fcn.0051b5d0
mov edx, 1
add esp, 8
mov dword [esp + 0x1c], edx
jmp 0x51ec85
mov eax, str.cannot_rollback___no_transaction_is_active
test ecx, ecx
jne 0x5218aa
mov eax, str.cannot_commit___no_transaction_is_active
push eax
push esi
call fcn.0051b5d0
mov edx, 1
add esp, 8
mov dword [esp + 0x1c], edx
jmp 0x51ec85
mov edx, 9
mov dword [esp + 0x1c], edx
jmp 0x51ec85
mov edi, dword [esp + 0x54]
mov esi, dword [ebp + 8]
push edi
call fcn.00508310
push 0x567410
push esi
call fcn.0051b5d0
mov edx, 7
add esp, 0xc
mov dword [esp + 0x1c], edx
jmp 0x51ec85
cmp edx, 0x210a
jne 0x521928
push 0x57fe2c
push 0x176cb
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004a3470
add esp, 0x14
mov edx, 0xb
mov dword [esp + 0x1c], edx
cmp dword [ebx + 0x84], 0
jne 0x521988
cmp edx, 0xc0a
je 0x521988
mov eax, edx
mov ecx, str.unknown_error
sub eax, 0x64
je 0x521974
dec eax
je 0x52196d
sub eax, 0x19f
je 0x521966
movzx eax, dl
cmp eax, 0x1c
ja 0x521979
mov eax, dword [eax*4 + 0x573708]
test eax, eax
je 0x521979
mov ecx, eax
jmp 0x521979
mov ecx, str.abort_due_to_ROLLBACK
jmp 0x521979
mov ecx, str.no_more_rows_available
jmp 0x521979
mov ecx, str.another_row_available
push ecx
push 0x562f9c
push ebx
call fcn.0051b5d0
add esp, 0xc
mov edx, dword [ebp + 8]
mov ebx, dword [esp + 0x1c]
mov dword [edx + 0x28], ebx
cmp ebx, 0xc0a
je 0x5219c4
movzx eax, bl
cmp eax, 0xe
je 0x5219a7
cmp eax, 0xa
jne 0x5219c4
mov eax, dword [edi]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x5219bf
push 0
push 0
push eax
call ecx
mov edx, dword [ebp + 8]
add esp, 0xc
jmp 0x5219c1
xor eax, eax
mov dword [edi + 0x4c], eax
push dword [edx + 0x84]
mov ecx, esi
mov eax, 0x66666667
push dword [edx + 0xd0]
sub ecx, dword [esp + 0x4c]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push str.statement_aborts_at__d:___s___s
push ebx
call fcn.004a3470
push dword [ebp + 8]
call fcn.005227c0
add esp, 0x18
cmp ebx, 0xc0a
jne 0x521a5f
cmp byte [edi + 0x57], 0
jne 0x521a74
cmp byte [edi + 0x58], 0
jne 0x521a74
cmp dword [edi + 0xc8], 0
mov byte [edi + 0x57], 1
jle 0x521a29
mov dword [edi + 0x128], 1
inc dword [edi + 0x130]
xor eax, eax
mov word [edi + 0x134], ax
mov eax, dword [edi + 0x10c]
test eax, eax
je 0x521a74
push 0x567410
push eax
call fcn.004f3220
mov eax, dword [edi + 0x10c]
add esp, 8
mov dword [eax + 0xc], 7
jmp 0x521a74
cmp ebx, 0xb
jne 0x521a74
cmp byte [edi + 0x55], 0
jne 0x521a74
mov eax, dword [edi + 0x20]
or dword [edi + 0x24], 2
mov dword [edi + 0x20], eax
mov al, byte [esp + 0x67]
mov esi, 1
test al, al
je 0x52180a
movzx eax, al
dec eax
push eax
push edi
call fcn.0050fe00
add esp, 8
jmp 0x52180a
mov ecx, dword [esp + 0x84]
add dword [ebx + 0xbc], ecx
cmp dword [ebx + 0xa8], 0
je 0x521ab7
push ebx
call fcn.00534e10
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret