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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov eax, dword [ebx + 0x68]
mov edi, dword [ebx]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
xor al, al
mov byte [ebp - 0x59], al
mov al, byte [edi + 0x4e]
mov byte [ebp - 0x4c], al
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], edi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], eax
call fcn.005080c0
add esp, 4
cmp dword [edi + 0x158], 0
je 0x5081d9
mov esi, dword [edi + 0x160]
xor edx, edx
mov eax, dword [ebx + 0xb4]
div esi
sub esi, edx
jmp 0x5081dc
or esi, 0xffffffff
mov edx, ebx
mov dword [ebp - 0x14], esi
cmp dword [edx + 0x28], 7
je 0x50e6fe
mov dword [edx + 0x38], 0
mov dword [edx + 0x3c], 0
mov dword [edx + 0x78], 0
cmp dword [edi + 0x110], 0
mov dword [edi + 0x1ac], 0
jne 0x50e93e
mov eax, dword [edx + 0x24]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x18]
mov ecx, 4
movsd qword [ebp - 0x178], xmm0
lea eax, [eax + eax*4]
lea esi, [edx + eax*4]
xor eax, eax
mov dl, byte [esi]
inc eax
movzx ebx, dl
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], eax
cmp ebx, 0xaa
ja case.0x50824d.85
jmp dword [ebx*4 + 0x50eb00]
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
lea esi, [eax + eax*4]
mov eax, 0x66666667
mov word [ebx + esi*8 + 8], cx
mov ecx, edx
sub ecx, dword [ebp - 0x18]
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 edi, dword [ebp - 4]
mov eax, dword [edi + 8]
mov ecx, 4
mov edx, dword [ebp - 0x18]
lea eax, [eax + eax*4]
lea eax, [eax - 5]
lea edi, [edx + eax*4]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
mov edx, dword [ebp - 0x18]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + ecx*8]
lea eax, [eax + eax*4]
lea esi, [edx + eax*4]
mov eax, 0x80
mov word [ebx + ecx*8 + 8], ax
lea ecx, [eax - 0x7c]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 4]
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
cmp dword [esi + 8], 0
jne 0x508283
mov ecx, eax
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
mov edx, dword [ebp - 0x18]
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, 0x80
mov word [ebx + ecx*8 + 8], ax
lea ecx, [eax - 0x7c]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
sub edx, dword [ebp - 0x18]
lea esi, [eax + eax*4]
mov eax, 0x66666667
imul edx
mov word [ebx + esi*8 + 8], cx
mov ecx, dword [ebx + esi*8]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
mov dword [ebx + esi*8 + 4], edx
mov edx, dword [ebp - 0x18]
mov dword [ebx + esi*8], eax
lea eax, [ecx + ecx*4]
mov ecx, 4
lea esi, [edx + eax*4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
test byte [ecx + eax*8 + 8], 1
je 0x50845a
mov ebx, dword [ebp + 8]
mov ecx, esi
sub ecx, dword [ebp - 0x18]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x50e3f9
mov edx, dword [ebx + 0xc8]
test edx, edx
je 0x50e3f6
mov eax, dword [edx + 4]
dec dword [ebx + 0xd0]
mov dword [ebx + 0xc8], eax
mov eax, dword [ebx + 0x2c]
add dword [edi + 0x68], eax
push edx
mov dword [edi + 0x64], eax
call fcn.0050f3d0
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 4]
add esp, 4
mov ebx, dword [edx + 0x68]
cmp dword [eax + 8], 4
mov dword [ebp - 0x18], ebx
jne 0x50841f
lea eax, [ecx + ecx*4]
mov ecx, dword [ebx + eax*4 + 8]
dec ecx
mov eax, dword [edx + 0x58]
mov dword [ebp - 0x1c], eax
lea eax, [ecx + ecx*4]
lea esi, [ebx + eax*4]
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d4bd0
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov esi, dword [ebp - 4]
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d4bd0
mov esi, dword [ebp - 4]
mov edx, eax
mov eax, dword [ebp - 4]
add esp, 8
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov ecx, 4
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d4bd0
mov esi, dword [ebp - 4]
mov ecx, eax
mov eax, 8
add esp, 8
mov word [ecx + 8], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
movsd xmm0, qword [eax]
mov eax, dword [ebp - 0x10]
movsd qword [ecx], xmm0
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov ebx, dword [ebp - 4]
push ebx
push dword [ebp + 8]
call fcn.004d4bd0
mov edi, dword [ebx + 0x10]
mov esi, eax
push edi
call fcn.00504390
mov edx, ebx
add esp, 0xc
mov bl, byte [ebp - 0x4c]
mov dword [edx + 4], eax
cmp bl, 1
je 0x508569
push 0
push 1
push 0xffffffffffffffff
push edi
push esi
call fcn.00510cb0
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50d238
movzx eax, bl
push eax
push esi
call fcn.00507a00
add esp, 8
test eax, eax
jne 0x50e6f5
mov edx, dword [ebp - 4]
mov dword [esi + 0x18], eax
mov eax, 0x800
or word [esi + 8], ax
cmp byte [edx + 1], 0xf9
jne 0x508559
mov eax, dword [edx + 0x10]
test eax, eax
je 0x508559
push eax
push dword [ebp - 8]
call fcn.004e85c0
mov edx, dword [ebp - 4]
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 edi, dword [ebp - 8]
cmp eax, dword [edi + 0x6c]
jg 0x50d238
mov byte [edx], 0x47
jmp 0x508580
mov edx, dword [ebp - 4]
mov bl, byte [ebp - 0x4c]
push edx
push dword [ebp + 8]
call fcn.004d4bd0
mov edx, dword [ebp - 4]
mov ecx, eax
mov eax, 0xa02
add esp, 8
mov word [ecx + 8], ax
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [edx + 4]
mov dword [ecx + 0xc], eax
mov eax, edx
mov byte [ecx + 0xa], bl
mov eax, dword [eax + 0xc]
test eax, eax
jle 0x508457
mov ebx, dword [ebp - 0x1c]
lea esi, [eax + eax*4]
mov eax, edx
movzx eax, word [eax + 2]
cdq
cmp dword [ebx + esi*8], eax
jne 0x508457
cmp dword [ebx + esi*8 + 4], edx
mov esi, dword [ebp - 4]
jne 0x50845a
mov eax, 0xa10
mov word [ecx + 8], ax
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov ebx, dword [ebp - 4]
push ebx
push dword [ebp + 8]
call fcn.004d4bd0
mov edi, dword [ebx + 0xc]
add esp, 8
cmp dword [ebx + 4], 0
mov ecx, 1
mov edx, dword [ebx + 8]
mov ebx, 0x101
cmovne ecx, ebx
mov dword [eax + 0xc], 0
sub edi, edx
movzx ebx, cx
mov word [eax + 8], bx
lea esi, [eax + 0xc]
test edi, edi
jle 0x50864e
nop
lea esi, [esi + 0x28]
lea eax, [esi - 0xc]
push eax
call fcn.00510ba0
dec edi
mov word [esi - 4], bx
add esp, 4
mov dword [esi], 0
test edi, edi
jg 0x508630
mov edi, dword [ebp - 8]
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [esi + 4]
mov edx, 0xff41
mov ebx, dword [ebp - 0x1c]
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, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d4bd0
mov esi, eax
mov eax, dword [ebp - 4]
push 0
push 0
push dword [eax + 4]
push dword [eax + 0x10]
push esi
call fcn.00510cb0
mov al, byte [ebp - 0x4c]
add esp, 0x1c
mov byte [esi + 0xa], al
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
lea ecx, [eax + eax*4]
mov eax, dword [ebp + 8]
lea ecx, [ecx - 5]
mov eax, dword [eax + 0x64]
lea edi, [eax + ecx*8]
push edi
call fcn.005110b0
add esp, 4
test eax, eax
jne 0x50d238
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
mov eax, 0x2400
test word [esi + 8], ax
je 0x508718
push esi
call fcn.00510ba0
add esp, 4
movups xmm0, xmmword [edi]
mov ecx, 0xebff
movups xmmword [esi], xmm0
mov eax, dword [edi + 0x10]
mov edi, dword [ebp - 8]
mov dword [esi + 0x10], eax
mov ax, word [esi + 8]
and ax, cx
mov ecx, 0x840
or ax, cx
mov ecx, 4
mov word [esi + 8], ax
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
mov ebx, dword [edx + 0xc]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
mov eax, dword [edx + 8]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
nop dword [eax]
push edi
push esi
call fcn.00510920
mov eax, 0x1000
add esp, 8
test word [esi + 8], ax
je 0x508796
push esi
call fcn.005108c0
add esp, 4
test eax, eax
jne 0x50e6f5
add edi, 0x28
add esi, 0x28
sub ebx, 1
jne 0x508770
mov edi, dword [ebp - 8]
lea ecx, [ebx + 4]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
mov ebx, dword [edx + 0xc]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
mov eax, dword [edx + 8]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
push 0x1000
push edi
push esi
call fcn.00510f50
mov eax, 0x1000
add esp, 0xc
test word [esi + 8], ax
je 0x5087fb
push esi
call fcn.005108c0
add esp, 4
test eax, eax
jne 0x50e6f5
mov eax, ebx
dec ebx
test eax, eax
je 0x50864e
add esi, 0x28
add edi, 0x28
jmp 0x5087d0
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
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.00510f50
mov esi, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
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.00510b60
mov esi, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
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]
mov eax, dword [edx + 0xc]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
movzx ecx, word [ebx + 8]
mov al, byte [esi + 8]
or al, cl
mov dword [ebp - 0x50], ecx
test al, 1
je 0x5088d0
push edi
call fcn.00510ba0
mov edi, dword [ebp - 8]
add esp, 4
mov esi, dword [ebp - 4]
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
test cl, 0x12
jne 0x5088e5
push 0
push dword [ebp - 0x4c]
push ebx
call fcn.00510fa0
add esp, 0xc
jmp 0x5088f6
test ecx, 0x4000
je 0x508910
push ebx
call fcn.00510580
add esp, 4
test eax, eax
jne 0x50e6f5
mov ax, word [ebx + 8]
mov ecx, 0xfffd
and ax, cx
movzx eax, ax
mov dword [ebp - 0x50], eax
movzx edx, word [esi + 8]
mov dword [ebp - 0x20], edx
test dl, 0x12
jne 0x508946
push 0
push dword [ebp - 0x4c]
push esi
call fcn.00510fa0
add esp, 0xc
test eax, eax
jne 0x50e6f5
mov ax, word [esi + 8]
mov ecx, 0xfffd
and ax, cx
movzx edx, ax
mov dword [ebp - 0x20], edx
jmp 0x508971
test edx, 0x4000
je 0x508971
push esi
call fcn.00510580
add esp, 4
test eax, eax
jne 0x50e6f5
mov ax, word [esi + 8]
mov ecx, 0xfffd
and ax, cx
movzx eax, ax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0xc]
add ecx, dword [esi + 0xc]
mov dword [ebp - 0x3c], ecx
cmp ecx, dword [eax + 0x6c]
jg 0x50d238
xor eax, eax
cmp edi, esi
sete al
push eax
lea eax, [ecx + 3]
push eax
push edi
call fcn.005106e0
add esp, 0xc
test eax, eax
jne 0x50e6f5
mov ax, word [edi + 8]
mov ecx, 0x3e40
and ax, cx
or ax, 2
mov word [edi + 8], ax
cmp edi, esi
je 0x5089d3
push dword [esi + 0xc]
push dword [esi + 0x10]
push dword [edi + 0x10]
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov word [esi + 8], ax
push dword [ebx + 0xc]
mov eax, dword [edi + 0x10]
push dword [ebx + 0x10]
add eax, dword [esi + 0xc]
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
mov eax, dword [ebp - 0x50]
mov word [ebx + 8], ax
mov eax, dword [edi + 0x10]
mov esi, dword [ebp - 4]
mov byte [ecx + eax], 0
mov eax, dword [edi + 0x10]
mov byte [ecx + eax + 1], 0
mov eax, dword [edi + 0x10]
mov byte [ecx + eax + 2], 0
mov eax, 0x200
or word [edi + 8], ax
mov al, byte [ebp - 0x4c]
mov dword [edi + 0xc], ecx
mov ecx, 4
mov byte [edi + 0xa], al
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 0x1c]
mov eax, dword [edi + 4]
lea eax, [eax + eax*4]
lea eax, [esi + eax*8]
push eax
mov dword [ebp - 0x28], eax
call fcn.004d4330
movzx ebx, ax
mov eax, dword [edi + 8]
lea eax, [eax + eax*4]
lea esi, [esi + eax*8]
push esi
mov dword [ebp - 0x34], esi
call fcn.004d4330
movzx ecx, ax
mov edx, edi
mov edi, dword [ebp - 0x1c]
and cl, bl
add esp, 8
mov eax, dword [edx + 0xc]
lea eax, [eax + eax*4]
lea eax, [edi + eax*8]
mov dword [ebp - 0x20], eax
mov ax, word [esi + 8]
mov esi, dword [ebp - 0x28]
or ax, word [esi + 8]
movzx eax, ax
test cl, 4
je 0x508cc3
mov eax, esi
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
movzx eax, byte [edx]
add eax, 0xffffff97
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ecx
cmp eax, 3
ja case.default.0x508ab5
jmp dword [eax*4 + 0x50edac]
push esi
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.004dfa00
add esp, 0xc
test eax, eax
je 0x508c88
mov esi, dword [ebp - 0x28]
push esi
call fcn.00511770
mov ebx, dword [ebp - 0x34]
fstp qword [ebp - 0x30]
push ebx
call fcn.00511770
mov eax, dword [ebp - 4]
add esp, 8
fstp qword [ebp - 0x40]
movzx eax, byte [eax]
add eax, 0xffffff97
cmp eax, 3
ja case.default.0x508aff
jmp dword [eax*4 + 0x50edbc]
test edi, edi
jne 0x508b30
cmp esi, 0x80000000
jne 0x508b30
test ecx, ecx
jg 0x508ad2
jl 0x508b1c
test ebx, ebx
jae 0x508ad2
add ebx, 0
mov dword [ebp - 0x70], ebx
adc ecx, 0x80000000
mov dword [ebp - 0x6c], ecx
jmp 0x508c88
neg edi
adc esi, 0
neg esi
jmp case.0x508ab5.105
test esi, esi
jl 0x508ba2
jg 0x508b43
test edi, edi
je 0x508b90
push esi
push edi
push 0x7fffffff
push 0xffffffffffffffff
call fcn.005319a0
cmp dword [ebp - 0x24], edx
jg 0x508ad2
jl 0x508b64
cmp ebx, eax
ja 0x508ad2
push esi
push edi
push 0x80000000
push 0
call fcn.005319a0
mov ecx, dword [ebp - 0x24]
cmp ecx, edx
jg 0x508c2a
jl 0x508ad2
cmp ebx, eax
jae 0x508c2a
jmp 0x508ad2
test esi, esi
jg 0x508c2a
jl 0x508ba2
test edi, edi
jae 0x508c2a
test ecx, ecx
jl 0x508bd7
jg 0x508bac
test ebx, ebx
je 0x508bcd
push ecx
push ebx
push 0x80000000
push 0
call fcn.005319a0
cmp esi, edx
jg 0x508c27
jl 0x508ad2
cmp edi, eax
jae 0x508c27
jmp 0x508ad2
test ecx, ecx
jg 0x508c2a
jl 0x508bd7
test ebx, ebx
jae 0x508c2a
test edi, edi
jne 0x508be7
cmp esi, 0x80000000
je 0x508ad2
test ebx, ebx
jne 0x508bf7
cmp ecx, 0x80000000
je 0x508ad2
push esi
push edi
push 0x80000000
push 1
call fcn.005319a0
mov ecx, ebx
neg ecx
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x24]
adc ecx, 0
neg ecx
cmp ecx, edx
jg 0x508ad2
jl 0x508c27
cmp dword [ebp - 0x3c], eax
ja 0x508ad2
mov ecx, dword [ebp - 0x24]
push esi
push edi
push ecx
push ebx
call fcn.00531b30
jmp 0x508c82
mov eax, edi
or eax, esi
je 0x508ccb
mov eax, edi
and eax, esi
cmp eax, 0xffffffff
jne 0x508c58
test ebx, ebx
jne 0x508c58
cmp ecx, 0x80000000
je 0x508ad2
push esi
push edi
push ecx
push ebx
call fcn.005319a0
jmp 0x508c82
mov eax, edi
or eax, esi
je 0x508ccb
mov eax, edi
and eax, esi
cmp eax, 0xffffffff
jne 0x508c79
mov edi, 1
xor esi, esi
push esi
push edi
push ecx
push ebx
call fcn.00531b70
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov ecx, dword [ebp - 0x20]
mov edx, 0x3e40
mov eax, dword [ebp - 0x70]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 0x6c]
mov dword [ecx + 4], eax
mov ax, word [ecx + 8]
and ax, dx
or ax, 4
movzx eax, ax
mov word [ecx + 8], ax
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
test al, 1
je 0x508ad5
push dword [ebp - 0x20]
call fcn.00510ba0
mov edi, dword [ebp - 8]
add esp, 4
mov esi, dword [ebp - 4]
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
movsd xmm0, qword [ebp - 0x40]
addsd xmm0, qword [ebp - 0x30]
jmp 0x508d73
movsd xmm0, qword [ebp - 0x40]
subsd xmm0, qword [ebp - 0x30]
jmp 0x508d73
movsd xmm0, qword [ebp - 0x40]
mulsd xmm0, qword [ebp - 0x30]
jmp 0x508d73
movsd xmm1, qword [ebp - 0x30]
ucomisd xmm1, qword [ebp - 0x178]
lahf
test ah, 0x44
jnp 0x508ccb
movsd xmm0, qword [ebp - 0x40]
divsd xmm0, xmm1
jmp 0x508d73
push esi
call fcn.0050f920
push ebx
mov esi, eax
mov edi, edx
call fcn.0050f920
mov ecx, eax
mov dword [ebp - 0x6c], edx
mov eax, esi
mov dword [ebp - 0x70], ecx
add esp, 8
or eax, edi
je 0x508ccb
mov eax, esi
and eax, edi
cmp eax, 0xffffffff
jne 0x508d63
mov esi, 1
xor edi, edi
push edi
push esi
push edx
push ecx
call fcn.00531b70
mov ecx, eax
call fcn.00532150
sub esp, 8
movsd qword [esp], xmm0
call fcn.004f6670
add esp, 8
test eax, eax
jne 0x508ccb
mov ecx, dword [ebp - 0x20]
mov edx, 0x3e40
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov ax, word [ecx + 8]
and ax, dx
movsd qword [ecx], xmm0
or ax, 8
movzx eax, ax
mov word [ecx + 8], ax
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [esi + 4]
test eax, eax
je 0x50845f
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
push 0
push 0
lea eax, [ecx + eax*8]
push eax
call fcn.00510b60
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*8]
mov eax, dword [edx + 8]
lea eax, [eax + eax*4]
lea ecx, [esi + eax*8]
mov eax, dword [edx + 0xc]
lea eax, [eax + eax*4]
lea edx, [esi + eax*8]
mov al, byte [ecx + 8]
or al, byte [ebx + 8]
mov dword [ebp - 0x3c], edx
test al, 1
je 0x508e3a
push edx
call fcn.00510ba0
mov esi, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
push ecx
call fcn.0050f920
mov edi, eax
mov esi, edx
push ebx
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xf4], esi
call fcn.0050f920
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 4]
mov cl, byte [eax]
cmp cl, 0x65
jne 0x508e6b
and edi, ebx
and esi, edx
jmp 0x508ece
cmp cl, 0x66
jne 0x508e76
or edi, ebx
or esi, edx
jmp 0x508ece
mov eax, ebx
or eax, edx
je 0x508ece
test edx, edx
jg 0x508eaa
jl 0x508e86
test ebx, ebx
jae 0x508e9f
mov al, 0xcf
sub al, cl
mov cl, al
cmp edx, 0xffffffff
jl 0x508eaa
jg 0x508e98
cmp ebx, 0xffffffc0
jbe 0x508eaa
neg ebx
adc edx, 0
neg edx
test edx, edx
jl 0x508f00
jg 0x508eaa
cmp ebx, 0x40
jb 0x508f00
test esi, esi
jg 0x508ec0
jl 0x508eb4
test edi, edi
jae 0x508ec0
cmp cl, 0x67
je 0x508ec0
or edi, 0xffffffff
or esi, edi
jmp 0x508ece
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
mov edx, 0x3e40
mov ax, word [ecx + 8]
and ax, dx
mov dword [ecx], edi
mov edi, dword [ebp - 8]
or ax, 4
mov dword [ecx + 4], esi
mov esi, dword [ebp - 4]
mov word [ecx + 8], ax
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
movq xmm1, qword [ebp - 0xf8]
movd xmm0, ebx
cmp cl, 0x67
jne 0x508f1c
psllq xmm1, xmm0
movq qword [ebp - 0x30], xmm1
jmp 0x508ec8
psrlq xmm1, xmm0
movq qword [ebp - 0x30], xmm1
test esi, esi
jg 0x508ec8
jl 0x508f2f
test edi, edi
jae 0x508ec8
mov ecx, 0x40
or eax, 0xffffffff
sub ecx, ebx
or edx, 0xffffffff
call fcn.00531c30
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
or edi, eax
or esi, edx
jmp 0x508ece
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
push esi
call fcn.00510840
mov eax, dword [ebp - 4]
add esp, 4
mov ecx, 4
mov eax, dword [eax + 8]
cdq
add dword [esi], eax
mov eax, dword [ebp - 0x10]
adc dword [esi + 4], edx
mov esi, dword [ebp - 4]
add esi, 0x14
jmp 0x508235
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
movzx eax, word [esi + 8]
mov ecx, eax
test al, 4
jne 0x508fd9
test al, 8
jne 0x508faf
test al, 2
je 0x508fb8
push 1
push esi
call fcn.004bda80
add esp, 8
jmp 0x508fb8
push esi
call fcn.0050f970
add esp, 4
movzx eax, word [esi + 8]
mov ecx, eax
test al, 4
jne 0x508fd9
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x508283
mov eax, 0x14
jmp 0x50a447
mov eax, dword [ebp - 0x10]
and ecx, 0x3e40
or ecx, 4
mov word [esi + 8], cx
mov ecx, 4
mov esi, dword [ebp - 4]
add esi, 0x14
jmp 0x508235
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
test byte [ecx + eax*8 + 8], 0x24
lea eax, [ecx + eax*8]
je 0x50845a
push eax
call fcn.00510a60
mov eax, dword [ebp - 0x10]
add esp, 4
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
mov eax, 0x4000
test word [esi + 8], ax
je 0x509054
push esi
call fcn.00510580
add esp, 4
test eax, eax
jne 0x50a447
mov eax, dword [ebp - 4]
push dword [ebp - 0x4c]
movzx eax, byte [eax + 8]
push eax
push esi
call fcn.005103f0
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
je 0x508457
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
jmp 0x50a450
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*8]
mov eax, dword [edx + 0xc]
lea eax, [eax + eax*4]
movzx edi, word [ecx + eax*8 + 8]
lea esi, [ecx + eax*8]
movzx eax, word [ebx + 8]
mov ecx, edi
mov edx, ecx
mov dword [ebp - 0x38], eax
or edx, eax
mov dword [ebp - 0x24], ecx
test dl, 1
je 0x509149
mov edi, dword [ebp - 4]
movzx eax, word [edi + 2]
test al, al
jns 0x5090eb
mov al, cl
and al, byte [ebp - 0x38]
test al, 1
je 0x5090da
test ecx, 0x100
jne 0x5090da
xor ecx, ecx
jmp 0x509262
not ecx
and ecx, 1
lea ecx, [ecx*2 - 1]
jmp 0x509262
test al, 0x20
je 0x50912b
mov eax, dword [edi + 8]
mov edx, 0x3e40
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
lea ecx, [eax + eax*4]
mov dword [ebp - 0x68], 1
mov ax, word [ebx + ecx*8 + 8]
and ax, dx
or ax, 1
mov word [ebx + ecx*8 + 8], ax
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
test al, 0x10
jne 0x508283
mov edi, dword [ebp - 8]
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [ebp - 4]
mov al, byte [eax + 2]
and al, 0x47
cmp al, 0x43
jb 0x5091e3
mov ecx, edi
test dl, 2
je 0x509197
mov al, byte [ebp - 0x38]
and al, 0x2e
cmp al, 2
jne 0x50917b
push 0
push ebx
call fcn.004bda80
movzx eax, word [esi + 8]
add esp, 8
mov dword [ebp - 0x24], eax
mov al, byte [ebp - 0x24]
movzx ecx, word [ebp - 0x24]
and al, 0x2e
cmp al, 2
jne 0x509197
push 0
push esi
call fcn.004bda80
movzx ecx, word [esi + 8]
add esp, 8
and cl, byte [ebx + 8]
test cl, 4
je 0x509250
mov edi, dword [esi + 4]
mov edx, dword [ebx + 4]
mov ecx, dword [esi]
mov eax, dword [ebx]
cmp edi, edx
jl 0x5091ce
jg 0x5091b7
cmp ecx, eax
jbe 0x5091c4
mov edi, dword [ebp - 4]
mov ecx, 1
jmp 0x509262
cmp edi, edx
jg 0x5091d9
jl 0x5091ce
cmp ecx, eax
jae 0x5091d9
mov edi, dword [ebp - 4]
or ecx, 0xffffffff
jmp 0x509262
mov edi, dword [ebp - 4]
xor ecx, ecx
jmp 0x509262
cmp al, 0x42
jne 0x509250
mov al, byte [ebp - 0x38]
mov edi, dword [ebp - 0x4c]
test al, 2
jne 0x509225
test al, 0x2c
je 0x509225
push 1
push edi
push ebx
call fcn.00510fa0
mov ax, word [ebx + 8]
mov ecx, 0x3e40
xor ax, word [ebp - 0x38]
add esp, 0xc
and ax, cx
xor word [ebp - 0x38], ax
cmp ebx, esi
jne 0x509225
mov eax, dword [ebp - 0x38]
or eax, 2
movzx eax, ax
mov dword [ebp - 0x24], eax
mov al, byte [ebp - 0x24]
test al, 2
jne 0x509250
test al, 0x2c
je 0x509250
push 1
push edi
push esi
call fcn.00510fa0
mov ax, word [esi + 8]
mov ecx, 0x3e40
xor ax, word [ebp - 0x24]
add esp, 0xc
and ax, cx
xor word [ebp - 0x24], ax
mov edi, dword [ebp - 4]
push dword [edi + 0x10]
push ebx
push esi
call fcn.004f82e0
add esp, 0xc
mov ecx, eax
movzx eax, byte [edi]
test ecx, ecx
jns 0x509271
mov al, byte [eax + 0x5824dc]
jmp 0x509281
jne 0x50927b
mov al, byte [eax + 0x5824e4]
jmp 0x509281
mov al, byte [eax + 0x5824ec]
movzx edx, al
movzx eax, word [ebp - 0x24]
mov word [esi + 8], ax
movzx eax, word [ebp - 0x38]
mov word [ebx + 8], ax
movzx eax, word [edi + 2]
test al, 0x20
je 0x5092f2
mov dword [ebp - 0x68], ecx
test al, 8
je 0x5092b3
xor eax, eax
cmp byte [edi], 0x35
sete al
cmp eax, edx
je 0x50864e
mov eax, dword [edi + 8]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 8]
lea esi, [eax + eax*4]
mov eax, 0x3e40
mov cx, word [ebx + esi*8 + 8]
and cx, ax
mov eax, edx
cdq
or cx, 4
mov word [ebx + esi*8 + 8], cx
mov ecx, 4
mov dword [ebx + esi*8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + esi*8 + 4], edx
mov esi, dword [ebp - 4]
add esi, 0x14
jmp 0x508235
test edx, edx
jne 0x508283
mov edi, dword [ebp - 8]
lea ecx, [edx + 4]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
cmp dword [ebp - 0x68], 0
jne 0x508283
add esi, 0x14
jmp 0x508235
mov ebx, dword [ebp - 4]
test byte [ebx + 2], 1
jne 0x50932d
xor eax, eax
jmp 0x509333
mov eax, dword [ebx - 4]
add eax, 4
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebp - 4]
mov edx, dword [ebx + 0x10]
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x20], ebx
mov ebx, dword [esi + 8]
xor esi, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x50], ebx
test ecx, ecx
jle 0x508457
lea ebx, [edx + 0x14]
nop
test eax, eax
je 0x509369
mov edi, dword [eax + esi*4]
jmp 0x50936b
mov edi, esi
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x1c]
push dword [ebx]
movzx eax, byte [eax + esi]
and eax, 1
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
add eax, edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
mov eax, dword [ebp - 0x20]
add eax, edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
call fcn.004f82e0
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x68], ecx
test ecx, ecx
jne 0x5093cb
mov eax, dword [ebp - 0x34]
inc esi
mov edx, dword [ebp - 0x60]
add ebx, 4
cmp esi, dword [ebp - 0x3c]
jl 0x509360
mov edi, dword [ebp - 8]
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0x10]
test byte [esi + eax], 2
je 0x5093fd
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
add eax, edi
lea eax, [eax + eax*4]
test byte [ebx + eax*8 + 8], 1
jne 0x5093f8
mov eax, dword [ebp - 0x50]
add eax, edi
lea eax, [eax + eax*4]
test byte [ebx + eax*8 + 8], 1
je 0x5093fd
neg ecx
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 0x54], 0
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
je 0x50845a
mov eax, dword [ebp - 0x10]
neg ecx
mov dword [ebp - 0x68], ecx
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 4]
test eax, eax
jns 0x509446
mov eax, dword [edx + 4]
mov edx, dword [ebp - 0x18]
lea eax, [eax + eax*4]
lea eax, [eax - 5]
lea esi, [edx + eax*4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
jne 0x509462
mov eax, dword [edx + 8]
mov edx, dword [ebp - 0x18]
lea eax, [eax + eax*4]
lea eax, [eax - 5]
lea esi, [edx + eax*4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 0x18]
lea eax, [eax + eax*4]
lea eax, [eax - 5]
lea esi, [edx + eax*4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
push 2
mov eax, dword [ebx + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
call fcn.005079a0
mov ecx, dword [ebx + 8]
mov esi, eax
mov ebx, dword [ebp - 0x1c]
push 2
lea ecx, [ecx + ecx*4]
lea ecx, [ebx + ecx*8]
push ecx
call fcn.005079a0
mov ecx, dword [ebp - 4]
add esp, 0x10
lea eax, [eax + esi*2]
cmp byte [ecx], 0x2c
jne 0x5094c0
mov dl, byte [esi + eax + 0x582528]
jmp 0x5094c7
mov dl, byte [esi + eax + 0x582534]
mov eax, dword [ecx + 0xc]
mov esi, 0x3e40
lea ecx, [eax + eax*4]
mov ax, word [ebx + ecx*8 + 8]
and ax, si
movzx esi, ax
cmp dl, 2
jne 0x5094ff
mov eax, 1
or esi, eax
mov word [ebx + ecx*8 + 8], si
mov esi, dword [ebp - 4]
lea ecx, [eax + 3]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
movzx eax, dl
cdq
mov dword [ebx + ecx*8], eax
mov eax, 4
or esi, eax
mov dword [ebx + ecx*8 + 4], edx
mov word [ebx + ecx*8 + 8], si
mov ecx, eax
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
push dword [edx + 0xc]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
push eax
call fcn.005079a0
mov ecx, dword [ebp - 4]
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.00510b60
mov esi, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
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 0x5095b7
push 0
push ecx
call fcn.005079a0
neg eax
push 0
sbb eax, eax
inc eax
push eax
push esi
call fcn.00510b60
mov esi, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
push esi
call fcn.00510ba0
mov esi, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
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.00510ba0
add esp, 4
test byte [edi + 8], 1
jne 0x50864e
mov eax, 4
push edi
mov word [esi + 8], ax
call fcn.0050f920
mov edi, dword [ebp - 8]
not eax
not edx
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi + 4], edx
mov ecx, 4
mov esi, dword [ebp - 4]
add esi, 0x14
jmp 0x508235
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xc8]
test edi, edi
je 0x50969c
mov ecx, dword [ebp - 4]
mov eax, 0x66666667
sub ecx, dword [esi + 0x68]
mov edi, dword [edi + 0x18]
imul ecx
mov eax, 1
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov esi, ecx
and ecx, 7
shr esi, 3
shl eax, cl
movzx edx, byte [esi + edi]
test edx, eax
jne 0x508283
mov eax, dword [ebp + 8]
bts edx, ecx
mov byte [esi + edi], dl
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
mov eax, dword [ecx + 4]
mov ecx, 4
mov dword [edi + 4], eax
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov ecx, dword [esi + 0x68]
mov edi, dword [ebp - 4]
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 4]
je 0x508286
mov esi, dword [ebp - 4]
mov ecx, 4
mov dword [edi + 4], eax
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
push dword [edx + 0xc]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
call fcn.005079a0
add esp, 8
test eax, eax
jne 0x508283
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
xor eax, eax
mov ecx, dword [ebp - 0x1c]
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.005079a0
add esp, 8
test eax, eax
je 0x508283
mov esi, dword [ebp - 4]
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
test byte [ecx + eax*8 + 8], 1
jne 0x508283
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
test byte [ecx + eax*8 + 8], 1
je 0x508283
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 2], 0
je 0x50845a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
call fcn.00510ba0
add esp, 4
jmp 0x508283
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
mov edx, dword [edx + 8]
mov dword [ebp - 0x50], edx
mov esi, dword [eax + ecx*4]
mov dword [ebp - 0x38], esi
cmp byte [esi + 3], 0
je 0x509845
mov eax, dword [esi + 0x18]
test eax, eax
je 0x50983d
mov eax, dword [eax + edx*4 + 4]
test eax, eax
jle 0x50983d
mov esi, dword [esi + 0x24]
dec eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov edi, dword [esi + 0x48]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x24], edi
lea eax, [eax + eax*4]
lea ecx, [ebx + eax*8]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x48], ecx
cmp eax, dword [edx + 0x20]
je 0x509931
cmp byte [esi + 2], 0
je 0x509882
cmp byte [esi], 3
jne 0x509863
mov eax, dword [esi + 0x20]
lea edi, [esi + 0x54]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + ecx*8 + 0xc]
mov dword [edi], eax
mov dword [esi + 0x50], eax
mov eax, dword [ebx + ecx*8 + 0x10]
mov dword [esi + 0x4c], eax
jmp 0x5098b6
push esi
call fcn.0050f340
jmp 0x509853
mov eax, dword [esi + 0x28]
cmp byte [eax], 0
je 0x5097e9
push esi
call fcn.004cf5f0
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a447
jmp 0x5097f0
push ecx
call fcn.00510ba0
mov edi, dword [ebp - 8]
add esp, 4
mov esi, dword [ebp - 4]
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov esi, dword [esi + 0x28]
push esi
call fcn.004ce7c0
mov ecx, dword [ebp - 0x38]
mov eax, dword [esi + 0x2c]
lea edi, [ecx + 0x54]
mov dword [ecx + 0x50], eax
push edi
push esi
call fcn.004e4960
mov esi, dword [ebp - 0x38]
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x50]
cmp eax, dword [edx + 0x6c]
ja 0x50d238
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x4c]
mov cl, byte [eax]
cmp cl, 0x80
jae 0x5098d5
movzx eax, cl
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov al, 1
jmp 0x5098e1
push dword [ebp - 0x24]
push eax
call fcn.004f4550
add esp, 8
movzx ecx, al
lea edx, [esi + 0x3a]
xor eax, eax
mov dword [esi + 0x30], ecx
mov word [edx], ax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov ebx, dword [eax]
cmp dword [edi], ebx
jae 0x509924
mov dword [edi], 0
mov edi, eax
mov dword [esi + 0x4c], 0
mov eax, dword [edi]
cmp eax, 0x18003
ja 0x509acd
mov dword [ebp - 0x28], edx
cmp eax, dword [esi + 0x50]
jbe 0x509937
jmp 0x509acd
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x54], eax
xor eax, eax
jmp 0x5099b6
lea edx, [esi + 0x3a]
mov dword [ebp - 0x28], edx
movzx edx, word [edx]
mov ecx, dword [ebp - 0x50]
mov eax, edx
cmp eax, ecx
jg 0x509b61
mov ecx, dword [esi + 0x30]
mov ebx, dword [edi]
cmp ecx, ebx
jae 0x509afd
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x5099ae
xorps xmm0, xmm0
lea eax, [ebp - 0x268]
push eax
movups xmmword [ebp - 0x268], xmm0
movups xmmword [ebp - 0x258], xmm0
movq qword [ebp - 0x248], xmm0
push dword [edi]
push 0
push dword [esi + 0x28]
call fcn.00510670
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a444
mov eax, dword [ebp - 0x258]
mov ecx, dword [esi + 0x30]
mov ebx, dword [edi]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x28]
movzx eax, word [eax]
jmp 0x5099b6
mov eax, edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x28], edx
mov esi, dword [ebp - 0x54]
xor edx, edx
add esi, ecx
movzx edi, ax
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x24]
add ecx, ebx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x38]
add ecx, 0x58
mov dword [ebp - 0x34], edi
mov eax, dword [eax + edi*4]
lea edi, [ecx + edi*4]
nop word [eax + eax]
movzx ebx, byte [esi]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x7c], ebx
mov dword [edi], ebx
cmp ebx, 0x80
jae 0x509a05
movzx eax, byte [ebx + 0x582440]
mov ecx, 1
cdq
jmp 0x509a22
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.004f4550
mov ebx, dword [ebp - 0x7c]
push ebx
movzx ecx, al
mov dword [edi], ebx
call fcn.005123d0
add esp, 0xc
xor edx, edx
add eax, dword [ebp - 0x3c]
adc edx, dword [ebp - 0x60]
add esi, ecx
mov ecx, dword [ebp - 0x34]
add edi, 4
mov dword [ebp - 0x3c], edx
inc ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x34], ecx
mov dword [edx + ecx*4], eax
mov edx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x50]
jg 0x509a4f
cmp esi, dword [ebp - 0x20]
jb 0x5099e0
mov edi, dword [ebp - 0x20]
jmp 0x509a56
mov edi, dword [ebp - 0x20]
cmp esi, edi
jb 0x509a68
cmp esi, edi
mov edi, dword [ebp - 0x38]
ja 0x509a76
cmp eax, dword [edi + 0x50]
jne 0x509a76
test edx, edx
jne 0x509a76
jmp 0x509a6b
mov edi, dword [ebp - 0x38]
test edx, edx
jb 0x509a83
ja 0x509a76
cmp eax, dword [edi + 0x50]
jbe 0x509a83
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
jne 0x509ab8
mov esi, dword [ebp - 0x20]
xor ecx, ecx
sub esi, dword [ebp - 0x54]
movzx eax, cx
mov ecx, dword [ebp - 0x28]
mov dword [edi + 0x30], esi
mov esi, dword [ebp - 0x38]
mov word [ecx], ax
cmp dword [esi + 0x4c], 0
jne 0x509ab0
lea eax, [ebp - 0x268]
push eax
call fcn.00510ad0
mov eax, dword [ebp - 0x28]
add esp, 4
movzx eax, word [eax]
mov edi, dword [ebp - 0x24]
movzx eax, ax
jmp 0x509b04
cmp dword [edi + 0x4c], 0
jne 0x509acd
lea eax, [ebp - 0x268]
push eax
call fcn.00510ad0
add esp, 4
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x50e4b4
lea eax, [eax + eax*4]
mov ecx, 4
lea eax, [eax - 5]
lea edi, [ebx + eax*4]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
add esi, 0x14
jmp 0x508235
xor ebx, ebx
mov eax, edx
mov dword [ebp - 0x7c], ebx
movzx eax, ax
cmp eax, dword [ebp - 0x50]
jg 0x509b68
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0xf5
jne 0x509b3f
push 0x800
push dword [eax + 0x10]
mov eax, dword [ebp - 0x48]
push eax
call fcn.00510f50
mov edi, dword [ebp - 8]
add esp, 0xc
mov esi, dword [ebp - 4]
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [ebp - 0x48]
push eax
call fcn.00510ba0
mov edi, dword [ebp - 8]
add esp, 4
mov esi, dword [ebp - 4]
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov ebx, dword [esi + ecx*4 + 0x58]
mov dword [ebp - 0x7c], ebx
mov ecx, dword [ebp - 0x48]
mov eax, 0x2400
test word [ecx + 8], ax
je 0x509b82
push ecx
call fcn.00510ba0
mov ecx, dword [ebp - 0x48]
add esp, 4
mov edx, dword [ebp - 0x50]
mov eax, dword [esi + 0x54]
cmp eax, dword [edi + edx*4 + 4]
jb 0x509c44
mov eax, dword [ebp - 0x24]
mov edi, dword [esi + 0x4c]
add edi, dword [eax + edx*4]
cmp ebx, 0xc
jae 0x509bc1
push ecx
push ebx
push edi
call fcn.00512120
mov edi, dword [ebp - 8]
add esp, 0xc
mov esi, dword [ebp - 4]
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov al, byte [ebp - 0x4c]
lea esi, [ebx - 0xc]
shr esi, 1
mov byte [ecx + 0xa], al
mov dword [ecx + 0xc], esi
lea eax, [esi + 2]
cmp dword [ecx + 0x18], eax
jge 0x509bfc
push 0
push eax
mov edx, 1
push ecx
mov word [ecx + 8], dx
call fcn.005106e0
add esp, 0xc
test eax, eax
jne 0x50e6f5
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x10]
jmp 0x509c02
mov eax, dword [ecx + 0x14]
mov dword [ecx + 0x10], eax
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x48]
add esp, 0xc
mov edi, dword [ebp - 8]
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 + 0x582540]
mov esi, dword [ebp - 4]
mov word [ecx + 8], ax
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov al, byte [ebp - 0x4c]
mov byte [ecx + 0xa], al
mov eax, dword [ebp - 4]
movzx eax, word [eax + 2]
test al, 0xc0
je 0x509c63
cmp ebx, 0xc
jb 0x509c5f
test bl, 1
je 0x509c70
test al, al
js 0x509c70
push ebx
call fcn.005123d0
add esp, 4
test eax, eax
jne 0x509c95
push ecx
push ebx
push 0x581a60
call fcn.00512120
mov edi, dword [ebp - 8]
add esp, 0xc
mov esi, dword [ebp - 4]
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
push ecx
push eax
push dword [edi + edx*4]
push dword [esi + 0x28]
call fcn.00510670
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a444
mov esi, dword [ebp - 0x48]
push esi
push ebx
push dword [esi + 0x10]
call fcn.00512120
mov edi, dword [ebp - 8]
mov eax, 0xefff
add esp, 0xc
mov ecx, 4
and word [esi + 8], ax
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
mov edi, dword [edx + 0x10]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
mov al, byte [edi]
push dword [ebp - 0x4c]
mov byte [ebp - 0xb8], al
push dword [ebp - 0xb8]
push esi
call fcn.004bda10
add esp, 0xc
cmp byte [edi], 0x45
jne 0x509d59
movzx ebx, word [esi + 8]
test bl, 4
je 0x509d59
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add ecx, 0
mov eax, edx
adc eax, 0x8000
cmp eax, 0xffff
ja 0x509d41
jb 0x509d36
cmp ecx, 0xffffffff
ja 0x509d41
and ebx, 0xfffb
or ebx, 0x20
jmp 0x509d55
mov ecx, dword [esi]
call fcn.00532150
and ebx, 0xfffb
movsd qword [esi], xmm0
or ebx, 8
mov word [esi + 8], bx
mov al, byte [edi + 1]
inc edi
test al, al
je 0x50864e
add esi, 0x28
jmp 0x509cf3
mov ebx, dword [ebp - 4]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x1c]
xor ecx, ecx
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], ecx
mov eax, dword [ebx + 4]
mov edi, dword [ebx + 0x10]
movlpd qword [ebp - 0x64], xmm0
lea eax, [eax + eax*4]
lea edx, [esi + eax*8]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x48], edx
lea eax, [eax + eax*4]
lea eax, [eax - 5]
lea ebx, [edx + eax*8]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], ebx
mov al, byte [eax + 0x93]
mov byte [ebp - 0x41], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea eax, [esi + eax*8]
mov dword [ebp - 0x20], eax
test edi, edi
je 0x509e11
mov al, byte [edi]
lea esi, [edx + 8]
mov ebx, dword [ebp - 0x4c]
mov byte [ebp - 0xbc], al
nop dword [eax]
push ebx
push dword [ebp - 0xbc]
lea eax, [esi - 8]
push eax
call fcn.004bda10
add esp, 0xc
cmp byte [edi], 0x45
jne 0x509dfa
movzx eax, word [esi]
test al, 4
je 0x509dfa
and eax, 0xfffb
or eax, 0x20
mov word [esi], ax
mov al, byte [edi + 1]
inc edi
add esi, 0x28
mov byte [ebp - 0xbc], al
test al, al
jne 0x509dd0
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x60]
lea edx, [ebx + 0x1c]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x50], eax
movzx ebx, word [edx - 0x14]
mov dword [ebp - 0x34], edx
test bl, 1
je 0x509e4d
and ebx, 0x4000
neg ebx
sbb ebx, ebx
and ebx, 0xa
inc ecx
mov dword [edx], ebx
jmp 0x50a05c
test bl, 0x24
je 0x509fc9
mov ecx, dword [edx - 0x18]
mov eax, dword [edx - 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x60], ecx
test ecx, ecx
jg 0x509e77
jl 0x509e6c
test eax, eax
jae 0x509e77
mov ecx, eax
mov eax, dword [edx - 0x18]
not ecx
not eax
jmp 0x509e7c
mov ecx, eax
mov eax, dword [edx - 0x18]
inc dword [ebp - 0x28]
test eax, eax
ja 0x509f51
jb 0x509e8e
cmp ecx, 0x7f
ja 0x509ed6
mov eax, dword [edx - 0x1c]
and eax, 1
mov dword [ebp - 0x34], 0
cmp eax, dword [edx - 0x1c]
jne 0x509ebb
mov eax, dword [ebp - 0x34]
cmp eax, dword [edx - 0x18]
jne 0x509ebb
cmp byte [ebp - 0x41], 4
jb 0x509ebb
lea eax, [ecx + 8]
mov ecx, dword [ebp - 0x28]
mov dword [edx], eax
jmp 0x50a05f
mov ecx, dword [ebp - 0x28]
add edi, 1
mov eax, 1
mov dword [ebp - 0x24], edi
adc esi, 0
mov dword [edx], eax
mov dword [ebp - 0x38], esi
jmp 0x50a05f
test eax, eax
ja 0x509f51
jb 0x509ee4
cmp ecx, 0x7fff
ja 0x509eff
mov ecx, dword [ebp - 0x28]
add edi, 2
mov eax, 2
mov dword [ebp - 0x24], edi
adc esi, 0
mov dword [edx], eax
mov dword [ebp - 0x38], esi
jmp 0x50a05f
test eax, eax
ja 0x509f51
jb 0x509f0d
cmp ecx, 0x7fffff
ja 0x509f28
mov ecx, dword [ebp - 0x28]
add edi, 3
mov eax, 3
mov dword [ebp - 0x24], edi
adc esi, 0
mov dword [edx], eax
mov dword [ebp - 0x38], esi
jmp 0x50a05f
test eax, eax
ja 0x509f51
jb 0x509f36
cmp ecx, 0x7fffffff
ja 0x509f51
mov ecx, dword [ebp - 0x28]
add edi, 4
mov eax, 4
mov dword [ebp - 0x24], edi
adc esi, 0
mov dword [edx], eax
mov dword [ebp - 0x38], esi
jmp 0x50a05f
cmp eax, 0x7fff
ja 0x509f7a
jb 0x509f5f
cmp ecx, 0xffffffff
ja 0x509f7a
mov ecx, dword [ebp - 0x28]
add edi, 6
mov eax, 5
mov dword [ebp - 0x24], edi
adc esi, 0
mov dword [edx], eax
mov dword [ebp - 0x38], esi
jmp 0x50a05f
add edi, 8
mov dword [ebp - 0x24], edi
adc esi, 0
mov dword [ebp - 0x38], esi
test bl, 0x20
je 0x509fba
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x2c]
call fcn.00532150
mov edx, dword [ebp - 0x34]
and ebx, 0xffdf
mov ecx, dword [ebp - 0x28]
or ebx, 8
mov eax, 7
movsd qword [edx - 0x1c], xmm0
mov word [edx - 0x14], bx
mov dword [edx], eax
jmp 0x50a05f
mov ecx, dword [ebp - 0x28]
mov eax, 6
mov dword [edx], eax
jmp 0x50a05f
test bl, 8
je 0x509fe3
inc ecx
mov dword [edx], 7
add edi, 8
mov dword [ebp - 0x24], edi
adc esi, 0
mov dword [ebp - 0x38], esi
jmp 0x50a05c
mov edi, dword [edx - 0x10]
mov eax, ebx
shr eax, 1
and eax, 1
test ebx, 0x4000
mov ebx, dword [ebp - 0x24]
lea ecx, [edi + 6]
lea ecx, [eax + ecx*2]
mov dword [ebp - 0x60], ecx
je 0x50a037
lea esi, [edx - 0x1c]
mov eax, ebx
or eax, dword [ebp - 0x38]
mov edx, dword [esi]
lea ecx, [ecx + edx*2]
mov dword [ebp - 0x60], ecx
je 0x50a02b
push esi
call fcn.00510580
add esp, 4
test eax, eax
jne 0x50e6f5
add edi, dword [esi]
mov ecx, dword [ebp - 0x60]
jmp 0x50a034
mov eax, edx
cdq
add dword [ebp - 0x50], eax
adc dword [ebp - 0x54], edx
mov esi, dword [ebp - 0x38]
add ebx, edi
push 0
adc esi, 0
mov dword [ebp - 0x24], ebx
push ecx
mov dword [ebp - 0x38], esi
call fcn.00507470
mov edx, dword [ebp - 0x34]
add esp, 8
mov ecx, dword [ebp - 0x28]
mov edi, ebx
add ecx, eax
mov eax, dword [ebp - 0x60]
mov dword [edx], eax
mov dword [ebp - 0x28], ecx
lea eax, [edx - 0x1c]
cmp eax, dword [ebp - 0x48]
je 0x50a06f
sub edx, 0x28
jmp 0x509e2c
cmp ecx, 0x7e
jle 0x50a09d
mov eax, ecx
cdq
push edx
push eax
call fcn.00507470
mov esi, eax
mov eax, dword [ebp - 0x28]
add eax, esi
mov dword [ebp - 0x28], eax
cdq
push edx
push eax
call fcn.00507470
mov ecx, dword [ebp - 0x28]
add esp, 0x10
cmp esi, eax
mov esi, dword [ebp - 0x38]
jge 0x50a0a1
inc ecx
mov dword [ebp - 0x28], ecx
mov eax, ecx
cdq
add edi, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, edx
adc esi, ebx
mov ecx, edi
add ecx, dword [ebp - 0x50]
mov eax, dword [eax + 0x18]
adc esi, dword [ebp - 0x54]
cdq
cmp esi, edx
jg 0x50a0d1
jl 0x50a0c6
cmp ecx, eax
ja 0x50a0d1
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x14]
mov dword [edx + 0x10], eax
jmp 0x50a103
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x6c]
cdq
cmp esi, edx
jg 0x50d238
jl 0x50a0ea
cmp ecx, eax
ja 0x50d238
mov eax, edi
push eax
push dword [ebp - 0x20]
call fcn.005104e0
add esp, 8
test eax, eax
jne 0x50e6f5
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x50]
mov eax, 0x10
mov word [edx + 8], ax
mov eax, ecx
or eax, dword [ebp - 0x54]
mov dword [edx + 0xc], edi
je 0x50a124
mov eax, 0x4010
mov dword [edx], ecx
mov word [edx + 8], ax
mov eax, dword [ebp - 0x28]
mov esi, dword [edx + 0x10]
lea edi, [esi + eax]
cmp eax, 0x80
jae 0x50a13d
mov byte [esi], al
mov eax, 1
jmp 0x50a14a
push ebx
push dword [ebp - 0x2c]
push esi
call fcn.004fdf20
add esp, 0xc
mov edx, dword [ebp - 0x48]
movzx eax, al
add esi, eax
mov ebx, dword [edx + 0x1c]
cmp ebx, 0x80
jae 0x50a166
mov byte [esi], bl
mov eax, 1
jmp 0x50a175
push 0
push ebx
push esi
call fcn.004fdf20
mov edx, dword [ebp - 0x48]
add esp, 0xc
movzx eax, al
add esi, eax
lea eax, [ebx - 1]
mov dword [ebp - 0x2c], esi
cmp eax, 6
ja 0x50a1a7
mov ecx, dword [edx]
mov eax, dword [edx + 4]
movzx edx, byte [ebx + 0x582440]
mov esi, edx
dec edx
mov byte [edi + edx], cl
shrd ecx, eax, 8
shr eax, 8
test edx, edx
jne 0x50a193
mov edx, dword [ebp - 0x48]
jmp 0x50a1c7
cmp ebx, 0xc
jb 0x50a1c5
mov esi, dword [edx + 0xc]
test esi, esi
je 0x50a1c7
push esi
push dword [edx + 0x10]
push edi
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x48]
add esp, 0xc
jmp 0x50a1c7
xor esi, esi
add edx, 0x28
add edi, esi
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x48], edx
cmp edx, dword [ebp - 0x3c]
jbe 0x50a152
mov edi, dword [ebp - 8]
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x40], xmm0
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + ecx*4]
mov esi, dword [eax + 0x28]
push esi
call fcn.004d2740
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
cmp ebx, 0x10
jne 0x50a23d
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
movlpd qword [ebp - 0x30], xmm0
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
jmp 0x50a313
test ebx, ebx
jne 0x50a2ff
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
nop
cmp dword [edi + 0x110], 0
jne 0x50a2ff
mov edi, dword [esi + 0x74]
mov cl, byte [edi + 8]
test cl, cl
jne 0x50a26c
cmp byte [edi + 2], cl
jne 0x50a2a1
movzx eax, word [edi + 0x18]
cdq
add dword [ebp - 0x34], eax
adc ebx, edx
test cl, cl
je 0x50a2a1
nop word [eax + eax]
cmp byte [esi + 0x44], 0
push esi
je 0x50a2ef
call fcn.004d2600
mov edi, dword [esi + 0x74]
add esp, 4
movzx eax, word [esi + 0x46]
cmp ax, word [edi + 0x18]
jae 0x50a280
inc eax
mov word [esi + 0x46], ax
movzx ecx, word [esi + 0x46]
movzx eax, word [edi + 0x18]
cmp ecx, eax
jne 0x50a2ba
movzx ecx, byte [edi + 9]
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax + 8]
jmp 0x50a2d4
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax]
bswap eax
push eax
push esi
call fcn.004d24c0
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a2ff
mov edi, dword [ebp - 8]
jmp 0x50a250
call fcn.004d2740
mov esi, dword [ebp - 0x34]
add esp, 4
mov dword [ebp - 0xc], eax
jmp 0x50a308
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test eax, eax
jne 0x50a447
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d4bd0
add esp, 8
mov dword [eax], esi
mov dword [eax + 4], ebx
jmp 0x50bdf7
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov edi, dword [edx + 0x10]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x50a404
mov esi, dword [ebp - 8]
cmp dword [esi + 0xb8], eax
jg 0x50e4c9
push edi
call fcn.00504390
mov ecx, dword [esi + 0x1e0]
mov ebx, eax
add ecx, dword [esi + 0x1dc]
push ecx
push 0
push esi
call fcn.00513730
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50e4de
lea eax, [ebx + 0x21]
push 0
push eax
push esi
call fcn.004e8630
mov esi, eax
add esp, 0xc
test esi, esi
je 0x50864e
lea ecx, [ebx + 1]
push ecx
lea edx, [esi + 0x20]
push edi
push edx
mov dword [esi], edx
call sub.msvcrt.dll_memcpy
mov edi, dword [ebp - 8]
add esp, 0xc
cmp byte [edi + 0x4f], 0
je 0x50a3b8
mov byte [edi + 0x4f], 0
mov byte [edi + 0x57], 1
jmp 0x50a3be
inc dword [edi + 0x1dc]
mov eax, dword [edi + 0x1d4]
mov ecx, 4
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1e8]
mov dword [edi + 0x1d4], esi
mov dword [esi + 8], eax
mov eax, dword [edi + 0x1ec]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x1f0]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x1f4]
mov dword [esi + 0x14], eax
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [ebp - 8]
xor ebx, ebx
mov esi, dword [eax + 0x1d4]
test esi, esi
je 0x50a42e
push edi
push dword [esi]
call fcn.00504330
add esp, 8
test eax, eax
je 0x50a4bb
mov esi, dword [esi + 0x18]
inc ebx
test esi, esi
jne 0x50a413
push edi
push str.no_such_savepoint:__s
push dword [ebp + 8]
call fcn.00508140
add esp, 0xc
mov eax, 1
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
cmp byte [edi + 0x51], 0
mov edx, 7
cmovne eax, edx
cmp dword [ecx + 0x7c], 0
mov dword [ebp - 0xc], eax
jne 0x50e9b2
cmp eax, 0xc0a
je 0x50e9b2
mov ecx, str.unknown_error
sub eax, 0x64
je 0x50e996
sub eax, 1
je 0x50e98f
sub eax, 0x19f
je 0x50e988
mov eax, dword [ebp - 0xc]
movzx eax, al
cmp eax, 0x1d
jae 0x50e99b
mov eax, dword [eax*4 + 0x585c60]
test eax, eax
je 0x50e99b
mov ecx, eax
jmp 0x50e99b
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0x48]
cmp dword [edx + 0xb8], 0
jle 0x50a4d3
cmp edi, 1
je 0x50e4e5
cmp dword [esi + 0x18], 0
jne 0x50a541
cmp byte [edx + 0x57], 0
je 0x50a541
mov dword [ebp - 0x60], 1
cmp edi, 1
jne 0x50a548
push edi
push dword [ebp + 8]
call fcn.00507be0
mov ecx, eax
add esp, 8
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x50ea8b
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov byte [eax + 0x4f], 1
call fcn.0050f5d0
add esp, 4
cmp eax, 5
je 0x50e4ff
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x50a538
mov byte [edx + 0x4f], 0
jmp 0x50a624
mov byte [edx + 0x57], 0
jmp 0x50a62c
mov dword [ebp - 0x60], 0
mov ecx, dword [edx + 0x1dc]
mov eax, dword [edx + 0x14]
sub ecx, ebx
dec ecx
mov dword [ebp - 0x20], ecx
cmp edi, 2
jne 0x50a5b1
mov edx, dword [edx + 0x18]
xor ebx, ebx
and edx, 1
mov dword [ebp - 0x34], edx
test eax, eax
jle 0x50a5b6
mov ecx, edx
xor ecx, 1
xor edi, edi
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 8]
push ecx
push 0x204
mov eax, dword [eax + 0x10]
push dword [edi + eax + 4]
call fcn.004e50b0
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a444
mov eax, dword [ebp - 8]
inc ebx
mov ecx, dword [ebp - 0x2c]
add edi, 0x10
mov eax, dword [eax + 0x14]
cmp ebx, eax
jl 0x50a575
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x34]
jmp 0x50a5b6
xor edx, edx
mov dword [ebp - 0x34], edx
xor ebx, ebx
test eax, eax
jle 0x50a5f5
xor edi, edi
nop
mov eax, dword [ebp - 8]
push ecx
push dword [ebp - 0x48]
mov eax, dword [eax + 0x10]
push dword [edi + eax + 4]
call fcn.004e4b80
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a444
mov edx, dword [ebp - 8]
inc ebx
mov ecx, dword [ebp - 0x20]
add edi, 0x10
cmp ebx, dword [edx + 0x14]
jl 0x50a5c0
mov edx, dword [ebp - 0x34]
jmp 0x50a5f8
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x50a61b
mov ebx, dword [ebp - 8]
push 0
push ebx
call fcn.004ea3e0
push ebx
call fcn.004feac0
mov eax, dword [ebp - 0xc]
mov edx, ebx
add esp, 0xc
or dword [edx + 0x18], 1
jmp 0x50a61e
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x20]
test eax, eax
jne 0x50a444
mov ecx, dword [edx + 0x1d4]
cmp ecx, esi
je 0x50a669
mov edi, dword [ebp - 8]
nop dword [eax]
mov eax, dword [ecx + 0x18]
push ecx
push edi
mov dword [edi + 0x1d4], eax
call fcn.004e85c0
mov ecx, dword [edi + 0x1d4]
add esp, 8
dec dword [edi + 0x1dc]
cmp ecx, esi
jne 0x50a640
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 8]
cmp edi, 1
jne 0x50a696
mov eax, dword [esi + 0x18]
push esi
push edx
mov dword [edx + 0x1d4], eax
call fcn.004e85c0
add esp, 8
cmp dword [ebp - 0x60], 0
jne 0x50864e
mov eax, dword [ebp - 8]
dec dword [eax + 0x1dc]
jmp 0x50a6c9
cmp dword [ebp - 0x60], 0
mov eax, dword [esi + 8]
mov dword [edx + 0x1e8], eax
mov eax, dword [esi + 0xc]
mov dword [edx + 0x1ec], eax
mov eax, dword [esi + 0x10]
mov dword [edx + 0x1f0], eax
mov eax, dword [esi + 0x14]
mov dword [edx + 0x1f4], eax
je 0x50a6c9
cmp edi, 2
jne 0x50864e
push ebx
push edi
mov edi, dword [ebp - 8]
push edi
call fcn.00513730
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov dword [ebp - 0x8c], 0
mov edx, dword [edx + 8]
test edx, edx
je 0x50a718
mov eax, dword [edi + 0x20]
and eax, 0x100000
or eax, 0
jne 0x50e537
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0x10]
add ecx, ecx
mov esi, dword [eax + ecx*8 + 4]
test esi, esi
je 0x50a82e
lea eax, [ebp - 0x8c]
push eax
push edx
push esi
call fcn.004e23d0
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50e541
mov edx, dword [ebp + 8]
test byte [edx + 0x98], 0x80
je 0x50a834
mov ebx, dword [ebp - 4]
cmp dword [ebx + 8], eax
je 0x50a834
cmp byte [edi + 0x4f], al
je 0x50a779
cmp dword [edi + 0xb4], 1
jle 0x50a834
mov eax, dword [edx + 0x30]
test eax, eax
jne 0x50a795
mov eax, dword [edi + 0x1dc]
inc dword [edi + 0x1e0]
add eax, dword [edi + 0x1e0]
mov dword [edx + 0x30], eax
dec eax
push eax
push 0
push edi
call fcn.00513730
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a805
cmp byte [esi + 9], 0
mov eax, dword [ebp + 8]
mov ebx, dword [esi + 4]
mov edi, dword [eax + 0x30]
je 0x50a7ca
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x50a7ca
push esi
call fcn.004c0c40
add esp, 4
mov eax, dword [ebx]
cmp edi, dword [eax + 0x60]
jle 0x50a7e6
cmp byte [eax + 6], 0
je 0x50a7e6
push edi
push eax
call fcn.004d5600
add esp, 8
mov dword [ebp - 0xc], eax
jmp 0x50a7ed
mov dword [ebp - 0xc], 0
cmp byte [esi + 9], 0
je 0x50a802
add dword [esi + 0xc], 0xffffffff
jne 0x50a802
push esi
call fcn.0051ce20
add esp, 4
mov edi, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x1e8]
mov dword [edx + 0x48], eax
mov eax, dword [edi + 0x1ec]
mov dword [edx + 0x4c], eax
mov eax, dword [edi + 0x1f0]
mov dword [edx + 0x50], eax
mov eax, dword [edi + 0x1f4]
mov dword [edx + 0x54], eax
jmp 0x50a831
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
cmp word [esi + 2], 0
je 0x50a86a
mov eax, dword [ebp - 0x8c]
cmp eax, dword [esi + 0xc]
jne 0x50e576
mov eax, esi
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 0xc]
mov eax, dword [eax + 4]
cmp eax, dword [esi + 0x10]
jne 0x50e576
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x50a447
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xe4]
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.004e3340
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d4bd0
mov ecx, eax
add esp, 0x14
mov eax, dword [ebp - 0xe4]
jmp 0x508451
mov edx, dword [ebp - 4]
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.004e5210
mov edx, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 8]
cmp eax, 1
jne 0x50a8f2
mov ecx, dword [esi + 0xc]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
or dword [edi + 0x18], 1
jmp 0x50a900
cmp eax, 2
jne 0x50a900
mov ecx, dword [esi + 0xc]
mov al, byte [edx + 0xc]
mov byte [ecx + 0x4c], al
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 1
jne 0x50a91e
push 0
push edi
call fcn.004ea3e0
mov edx, dword [ebp + 8]
add esp, 8
and dword [edx + 0x98], 0xfffffffc
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov eax, dword [eax + 0x60]
mov esi, dword [eax + ecx*4]
test esi, esi
je case.0x50824d.96
mov eax, dword [esi + 0x34]
cmp eax, dword [ebx + 8]
je 0x50aa53
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x98]
and al, 3
cmp al, 1
je 0x50e5fa
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 8]
mov eax, ecx
shl eax, 4
add eax, dword [edi + 0x10]
cmp dl, 0x61
mov edx, dword [ebp - 4]
mov dword [ebp - 0x2c], ecx
mov esi, dword [eax + 4]
mov dword [ebp - 0x60], esi
jne 0x50a9bf
mov eax, dword [eax + 0xc]
movzx edi, word [edx + 2]
mov esi, dword [ebp + 8]
and edi, 8
or edi, 4
mov al, byte [eax + 0x4c]
cmp al, byte [esi + 0x93]
jae 0x50a9c1
mov byte [esi + 0x93], al
jmp 0x50a9c1
xor edi, edi
test byte [edx + 2], 0x10
je 0x50a9e1
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + ebx*4]
lea esi, [ecx + eax*8]
push esi
call fcn.00510840
mov ebx, dword [esi]
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov al, byte [edx + 1]
cmp al, 0xf7
jne 0x50a9f4
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x34], eax
movzx eax, word [eax + 8]
jmp 0x50aa00
cmp al, 0xfd
jne 0x50a9fd
mov eax, dword [edx + 0x10]
jmp 0x50aa00
mov eax, dword [ebp - 0x3c]
push 0
push ecx
push eax
push dword [edx + 4]
push dword [ebp + 8]
call fcn.004bcad0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x50e6f5
push dword [esi + 0x28]
or dword [esi + 8], 4
push dword [ebp - 0x34]
mov byte [esi + 2], 1
push edi
push ebx
push dword [ebp - 0x60]
mov dword [esi + 0x34], ebx
call fcn.004e2e80
mov edi, dword [ebp - 8]
add esp, 0x14
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0xf7
setne al
mov byte [esi + 4], al
mov eax, dword [ebp - 4]
mov cl, byte [eax + 2]
mov eax, dword [esi + 0x28]
and cl, 3
mov byte [eax + 3], cl
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
push 0
push 0xffffffffffffffff
mov ecx, dword [edx + 8]
mov eax, dword [esi + 0x60]
mov ebx, dword [eax + ecx*4]
movsx eax, word [ebx + 0x38]
push eax
push dword [edx + 4]
push esi
call fcn.004bcad0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x50e976
or dword [edi + 8], 1
push dword [edi + 0x28]
mov byte [edi + 2], 1
mov esi, dword [ebx + 0x2c]
mov dword [edi + 0x2c], esi
mov al, byte [ebx + 4]
mov byte [edi + 4], al
mov edx, dword [ebx + 0x34]
mov dword [edi + 0x34], edx
mov eax, dword [ebx + 8]
xor eax, dword [edi + 8]
push esi
push 4
and eax, 4
xor dword [edi + 8], eax
push edx
push dword [ebx + 0xc]
call fcn.004e2e80
mov edi, dword [ebp - 8]
mov ecx, eax
mov esi, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x50ab44
mov eax, dword [esi + 0xc]
test eax, eax
je 0x50ab44
push 0
push dword [esi + 0x34]
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call fcn.004e26f0
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x50ac31
push 0
push 0xffffffffffffffff
push dword [edx + 8]
push ecx
push dword [ebp + 8]
call fcn.004bcad0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x50e6f8
mov eax, dword [ebp - 4]
lea edi, [esi + 0xc]
or dword [esi + 8], 1
push 0x41e
movzx ecx, word [eax + 2]
mov eax, dword [ebp - 8]
or ecx, 5
push ecx
push edi
push eax
push 0
push dword [eax]
call fcn.004e42b0
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50ac0e
push eax
push 1
push dword [edi]
call fcn.004e23d0
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50ac0e
mov ecx, dword [ebp - 4]
lea ebx, [esi + 0x34]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [esi + 0x2c], eax
test eax, eax
je 0x50abee
movzx eax, word [ecx + 2]
or eax, 2
push eax
push ebx
push dword [edi]
call fcn.004e2e30
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50abe8
push dword [esi + 0x28]
push dword [ebp - 0x2c]
push 4
push dword [ebx]
push dword [edi]
call fcn.004e2e80
add esp, 0x14
mov dword [ebp - 0xc], eax
mov byte [esi + 4], 0
jmp 0x50ac0e
push dword [esi + 0x28]
mov dword [ebx], 1
push 0
push 4
push 1
push dword [edi]
call fcn.004e2e80
add esp, 0x14
mov dword [ebp - 0xc], eax
mov byte [esi + 4], 1
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edi, dword [ebp - 8]
cmp word [eax + 2], 8
mov eax, 4
cmovne ecx, eax
mov eax, dword [esi + 8]
and eax, 0xfffffffb
or ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], ecx
test eax, eax
jne 0x50a447
mov byte [esi + 2], 1
lea ecx, [eax + 4]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
push 1
push 0xffffffffffffffff
push dword [edx + 8]
push dword [edx + 4]
push dword [ebp + 8]
call fcn.004bcad0
add esp, 0x14
test eax, eax
je 0x50e6f8
mov edx, dword [ebp - 4]
push eax
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x2c], ecx
push dword [edx + 0xc]
push edi
call fcn.00512550
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
mov edx, dword [eax + ecx*4]
mov edi, dword [edx + 0x10]
mov ecx, edi
mov esi, dword [edx + 0x14]
add ecx, 1
mov eax, esi
mov dword [edx + 0x10], ecx
adc eax, 0
or edi, esi
mov dword [edx + 0x14], eax
je 0x508283
mov edi, dword [ebp - 8]
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
push 3
push 0xffffffffffffffff
push dword [edx + 0xc]
push dword [edx + 4]
push dword [ebp + 8]
call fcn.004bcad0
add esp, 0x14
test eax, eax
je 0x50e6f8
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov byte [eax + 2], 1
mov ecx, dword [ecx + 8]
mov dword [eax + 0x20], ecx
mov ecx, 4
mov byte [eax + 4], 1
mov dword [eax + 0x28], 0x5b8cd3
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov eax, dword [esi + 0x60]
push dword [eax + ecx*4]
push esi
call fcn.0050f450
mov eax, dword [ebp - 4]
add esp, 8
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x60]
mov esi, dword [ebp - 4]
mov dword [eax + ecx*4], 0
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
mov esi, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x1c]
cmp byte [esi + 4], 0
mov word [esi + 2], 0
mov dword [esi + 0x1c], 0
je 0x50ae76
mov eax, dword [edx + 0xc]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
movzx eax, word [edi + 8]
mov dword [ebp - 0x2c], eax
and al, 0x2e
cmp al, 2
jne 0x50adba
push 0
push edi
call fcn.004bda80
add esp, 8
push edi
call fcn.0050f920
movzx ecx, word [edi + 8]
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], edx
mov word [edi + 8], ax
test cl, 0x24
jne 0x50ae3d
test cl, 8
jne 0x50ae0f
test cl, 1
jne 0x508283
cmp ebx, 0x18
jae 0x508283
lea eax, [ebp - 0x58]
push eax
push dword [esi + 0x28]
call fcn.004e3c80
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a444
jmp 0x50af96
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
call fcn.00532150
movsd xmm1, qword [edi]
comisd xmm0, xmm1
jbe 0x50ae31
test bl, 1
lea eax, [ebx - 1]
cmove eax, ebx
mov ebx, eax
jmp 0x50ae3d
comisd xmm1, xmm0
jbe 0x50ae3d
test bl, 1
jne 0x50ae3d
inc ebx
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x58]
push eax
push 0
push dword [ebp - 0x34]
push edi
push 0
push dword [esi + 0x28]
call fcn.004e3d10
mov dword [ebp - 0xc], eax
add esp, 0x18
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x40], edi
mov edi, dword [ebp - 8]
test eax, eax
jne 0x50a447
jmp 0x50af08
mov eax, dword [esi + 0x28]
mov al, byte [eax + 3]
and al, 2
mov byte [ebp - 0x41], al
mov eax, 0
setne al
test bl, 1
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x108], eax
mov ax, word [edx + 0x10]
mov word [ebp - 0x100], ax
sete al
mov byte [ebp - 0xfa], 0
lea eax, [eax*2 - 1]
mov byte [ebp - 0xfe], al
mov eax, dword [edx + 0xc]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x28]
call fcn.004e3d10
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a447
cmp byte [ebp - 0x41], al
je 0x50af08
cmp byte [ebp - 0xfa], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
je 0x50af96
mov eax, dword [ebp - 0x58]
cmp ebx, 0x18
jl 0x50af7e
test eax, eax
js 0x50af47
jne 0x50af1b
cmp ebx, 0x19
je 0x50af47
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 4]
cmp dword [ebp - 0x20], 0
mov edi, dword [ebp - 8]
lea eax, [ecx + 0x14]
cmove eax, ecx
mov ecx, 4
mov dword [ebp - 4], eax
mov esi, eax
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
push 0
push dword [esi + 0x28]
mov dword [ebp - 0x58], 0
call fcn.004e4250
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x50af22
cmp eax, 0x65
jne 0x50a447
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x58], 1
jmp 0x508283
test eax, eax
jg 0x50afa2
jne 0x50af89
cmp ebx, 0x16
je 0x50afa2
mov eax, dword [esi + 0x28]
xor ecx, ecx
cmp byte [eax], cl
setne cl
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x58], 0
jne 0x508283
jmp 0x50af22
push 0
push dword [esi + 0x28]
mov dword [ebp - 0x58], 0
call fcn.004e49a0
jmp 0x50af58
mov edx, dword [ebp - 4]
mov esi, edx
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax + ecx*4]
mov eax, edx
mov eax, dword [eax + 8]
shl eax, 3
xor eax, dword [ecx + 8]
and eax, 8
xor dword [ecx + 8], eax
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov eax, dword [edx + 0x60]
cmp dword [eax + ecx*4], 0
je 0x50df24
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov eax, dword [edx + 0x60]
mov eax, dword [eax + ecx*4]
test byte [eax + 8], 8
jne 0x50845a
jmp 0x50b025
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov eax, dword [edx + 0x60]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
lea eax, [eax + eax*4]
lea esi, [edx + eax*8]
test ecx, ecx
jle 0x50b064
mov eax, dword [ebx + 0x2c]
lea edi, [ebp - 0x188]
mov dword [ebp - 0x184], esi
xor esi, esi
mov dword [ebp - 0x188], eax
mov word [ebp - 0x180], cx
jmp 0x50b0ac
mov eax, 0x4000
test word [esi + 8], ax
je 0x50b080
push esi
call fcn.00510580
add esp, 4
test eax, eax
jne 0x50e6f8
push dword [ebx + 0x2c]
call fcn.005078f0
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x50e6f5
push edi
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [ebx + 0x2c]
call fcn.00511f30
add esp, 0x10
mov esi, edi
mov eax, dword [ebp - 4]
mov byte [edi + 0xa], 0
mov dword [ebp - 0x3c], 0
cmp byte [eax], 0x1c
jne 0x50b0e6
movzx edx, word [edi + 8]
xor ecx, ecx
test edx, edx
je 0x50b0e6
mov eax, dword [edi + 4]
add eax, 8
nop
test byte [eax], 1
jne 0x50b0df
inc ecx
add eax, 0x28
cmp ecx, edx
jl 0x50b0d0
jmp 0x50b0e6
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0xe8]
push eax
push 0
push 0
push 0
push edi
push dword [ebx + 0x28]
call fcn.004e3d10
mov edi, dword [ebp - 8]
add esp, 0x18
mov dword [ebp - 0xc], eax
test esi, esi
je 0x50b116
push esi
push edi
call fcn.004e85c0
mov eax, dword [ebp - 0xc]
add esp, 8
test eax, eax
jne 0x50a447
mov eax, dword [ebp - 0xe8]
xor ecx, ecx
mov esi, dword [ebp - 4]
test eax, eax
mov dword [ebx + 0x20], eax
sete cl
mov byte [ebx + 3], 0
test eax, eax
mov dword [ebx + 0x1c], 0
setne al
mov byte [ebx + 2], al
cmp byte [esi], 0x1e
jne 0x50b161
test ecx, ecx
jne 0x508283
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
cmp dword [ebp - 0x3c], 0
jne 0x508283
test ecx, ecx
je 0x508283
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edi + 0xc]
lea eax, [eax + eax*4]
test byte [ebx + eax*8 + 8], 0x24
jne 0x50b214
movups xmm1, xmmword [ebx + eax*8]
movups xmm0, xmmword [ebx + eax*8 + 0x10]
movups xmmword [ebp - 0x1d8], xmm1
movups xmmword [ebp - 0x1c8], xmm0
movq xmm0, qword [ebx + eax*8 + 0x20]
psrldq xmm1, 8
movd eax, xmm1
movq qword [ebp - 0x1b8], xmm0
test al, 4
jne 0x50b200
test al, 8
jne 0x50b1e3
test al, 2
je 0x50b1f8
lea eax, [ebp - 0x1d8]
push 1
push eax
call fcn.004bda80
add esp, 8
jmp 0x50b1f2
lea eax, [ebp - 0x1d8]
push eax
call fcn.0050f970
add esp, 4
mov al, byte [ebp - 0x1d0]
test al, 4
je 0x508286
mov edi, dword [ebp - 0x1d8]
mov ebx, dword [ebp - 0x1d4]
jmp 0x50b221
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edi + 0xc]
lea eax, [eax + eax*4]
mov edi, dword [ebx + eax*8]
mov ebx, dword [ebx + eax*8 + 4]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc0], 0
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
mov esi, dword [eax + ecx*4]
lea eax, [ebp - 0xc0]
push eax
push 0
push ebx
push edi
push 0
push dword [esi + 0x28]
call fcn.004e3d10
mov dword [ebp - 0xc], eax
add esp, 0x18
mov eax, dword [ebp - 0xc0]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], ebx
mov word [esi + 2], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], eax
test eax, eax
je 0x50d15a
mov edi, dword [ebp - 4]
cmp dword [edi + 8], 0
jne 0x508286
push 0x15dab
call fcn.004e7050
add esp, 4
mov dword [ebp - 0xc], eax
jmp 0x50d15d
mov ebx, dword [ebp - 4]
mov esi, dword [ebp + 8]
push ebx
push esi
call fcn.004d4bd0
mov ecx, dword [esi + 0x60]
add esp, 8
mov edx, dword [ebx + 4]
mov edx, dword [ecx + edx*4]
mov ecx, dword [edx + 0x10]
mov dword [eax], ecx
mov ecx, dword [edx + 0x14]
mov dword [eax + 4], ecx
mov eax, ebx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x60]
mov esi, ebx
mov eax, dword [eax + ecx*4]
mov ecx, 4
add dword [eax + 0x10], 1
adc dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov ebx, dword [ebp - 4]
xorps xmm0, xmm0
push ebx
push dword [ebp + 8]
movlpd qword [ebp - 0x78], xmm0
mov dword [ebp - 0x80], 0
call fcn.004d4bd0
mov edx, dword [ebx + 4]
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov ebx, dword [ecx + edx*4]
mov dword [ebp - 0x20], ebx
test byte [ebx + 8], 2
jne 0x50b383
lea eax, [ebp - 0x80]
push eax
push dword [ebx + 0x28]
call fcn.004e3c80
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a447
cmp dword [ebp - 0x80], eax
je 0x50b348
mov edi, 1
xor esi, esi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], esi
jmp 0x50b389
mov esi, dword [ebx + 0x28]
push esi
call fcn.004ce7c0
mov edi, dword [esi + 0x20]
add esp, 4
mov esi, dword [esi + 0x24]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], esi
cmp esi, 0x7fffffff
jl 0x50b375
jg 0x50b36f
cmp edi, 0xffffffff
jb 0x50b375
or dword [ebx + 8], 2
jmp 0x50b389
add edi, 1
mov dword [ebp - 0x78], edi
adc esi, 0
mov dword [ebp - 0x74], esi
jmp 0x50b389
mov esi, dword [ebp - 0x74]
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x50b40e
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc8]
test edx, edx
je 0x50b3bb
mov eax, dword [edx + 4]
test eax, eax
je 0x50b3b0
mov edx, eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x50b3a7
mov eax, dword [edx + 0x10]
lea ecx, [ecx + ecx*4]
lea ebx, [eax + ecx*8]
jmp 0x50b3c4
lea eax, [ecx + ecx*4]
mov ecx, dword [ebp - 0x1c]
lea ebx, [ecx + eax*8]
push ebx
call fcn.00510840
mov eax, dword [ebx]
add esp, 4
mov ecx, dword [ebx + 4]
cmp eax, 0xffffffff
jne 0x50b3e3
cmp ecx, 0x7fffffff
je 0x50b467
mov edx, dword [ebp - 0x20]
test byte [edx + 8], 2
jne 0x50b467
add eax, 1
adc ecx, 0
cmp esi, ecx
jg 0x50b406
jl 0x50b3fc
cmp edi, eax
jae 0x50b406
mov edi, eax
mov esi, ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], esi
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov ebx, dword [ebp - 0x20]
test byte [ebx + 8], 2
je 0x50b474
xor ebx, ebx
lea eax, [ebp - 0x78]
push eax
push 8
call fcn.004add30
mov esi, dword [ebp - 0x74]
lea eax, [ebp - 0x80]
mov edi, dword [ebp - 0x78]
and esi, 0x3fffffff
push eax
mov eax, dword [ebp - 0x20]
add edi, 1
push 0
adc esi, 0
mov dword [ebp - 0x78], edi
push esi
push edi
push 0
push dword [eax + 0x28]
mov dword [ebp - 0x74], esi
call fcn.004e3d10
add esp, 0x20
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a444
cmp dword [ebp - 0x80], eax
jne 0x50b471
inc ebx
cmp ebx, 0x64
jl 0x50b416
mov eax, 0xd
jmp 0x50a444
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov ecx, 4
mov byte [ebx + 3], 0
mov dword [ebx + 0x1c], 0
mov dword [eax], edi
mov edi, dword [ebp - 8]
mov dword [eax + 4], esi
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
cmp byte [edx + 1], 0xfa
mov eax, dword [edx + 8]
mov ecx, dword [edx + 4]
lea edi, [eax + eax*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
mov esi, dword [eax + ecx*4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x60], esi
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8]
mov dword [ebp - 0x1a8], ecx
mov eax, dword [ebx + eax*8 + 4]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1a4], eax
jne 0x50b4fd
mov eax, dword [ebp - 8]
cmp dword [eax + 0xf0], 0
je 0x50b4fd
movsx ecx, byte [esi + 1]
mov eax, dword [eax + 0x10]
add ecx, ecx
mov ebx, dword [edx + 0x10]
mov ecx, dword [eax + ecx*8]
mov dword [ebp - 0x3c], ecx
jmp 0x50b502
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
movzx eax, word [edx + 2]
mov edx, eax
test al, 1
je 0x50b519
mov eax, dword [ebp + 8]
inc dword [eax + 0x2c]
mov eax, dword [ebp - 4]
movzx edx, word [eax + 2]
movzx ecx, dx
test dl, 0x20
je 0x50b537
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + edi*8 + 0x10]
mov dword [ebp - 0x1a0], eax
mov eax, dword [edx + edi*8 + 0xc]
mov dword [ebp - 0x194], eax
test cl, 0x10
je 0x50b558
mov edx, dword [esi + 0x20]
jmp 0x50b55a
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov esi, 0x4000
test word [eax + edi*8 + 8], si
mov esi, dword [ebp - 0x60]
je 0x50b577
mov eax, dword [eax + edi*8]
mov dword [ebp - 0x190], eax
jmp 0x50b581
mov dword [ebp - 0x190], 0
push edx
and ecx, 0xa
mov dword [ebp - 0x1b0], 0
push ecx
lea eax, [ebp - 0x1b0]
push eax
push dword [esi + 0x28]
call fcn.004e33a0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov byte [esi + 3], 0
mov dword [esi + 0x1c], 0
test eax, eax
jne 0x50a444
mov edi, dword [ebp - 8]
test ebx, ebx
je 0x508457
push dword [ebp - 0x1a4]
mov eax, dword [ebp - 4]
mov ecx, 0x17
push dword [ebp - 0x1a8]
push dword [ebx]
test byte [eax + 2], 4
mov eax, 0x12
push dword [ebp - 0x3c]
cmovne eax, ecx
push eax
push dword [edi + 0xec]
mov eax, dword [edi + 0xf0]
call eax
mov esi, dword [ebp - 4]
add esp, 0x18
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
cmp byte [edx + 1], 0xfa
mov eax, dword [edx + 8]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
mov edi, dword [eax + ecx*4]
jne 0x50b672
mov eax, dword [ebp - 8]
cmp dword [eax + 0xf0], 0
je 0x50b672
movsx ecx, byte [edi + 1]
mov eax, dword [eax + 0x10]
add ecx, ecx
test byte [edx + 2], 2
mov ebx, dword [edx + 0x10]
mov esi, dword [eax + ecx*8]
mov dword [ebp - 0x2c], esi
je 0x50b676
cmp byte [edi + 4], 0
je 0x50b676
mov esi, dword [edi + 0x28]
push esi
call fcn.004ce7c0
mov eax, dword [esi + 0x20]
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x24]
mov esi, dword [ebp - 0x2c]
mov dword [edi + 0x44], eax
jmp 0x50b676
xor esi, esi
xor ebx, ebx
movzx eax, byte [edx + 2]
push eax
push dword [edi + 0x28]
call fcn.004e2ef0
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
test eax, eax
jne 0x50a444
test byte [ebp - 0x3c], 1
je 0x50864e
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
inc dword [edx + 0x2c]
mov eax, dword [eax + 0xf0]
test eax, eax
je 0x50864e
test byte [ebx + 0x24], 0x80
jne 0x50864e
push dword [edi + 0x44]
push dword [edi + 0x40]
mov edi, dword [ebp - 8]
push dword [ebx]
push esi
push 9
push dword [edi + 0xec]
call eax
mov esi, dword [ebp - 4]
add esp, 0x18
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add dword [edi + 0x68], eax
mov dword [edi + 0x64], eax
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x2c], 0
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
mov esi, dword [edx + 0x10]
mov ecx, dword [eax + ecx*4]
mov eax, dword [edx + 0xc]
mov edi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
lea eax, [eax + eax*4]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x50b75a
push ebx
call fcn.005078f0
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [edi + 0x20], eax
test eax, eax
je 0x50b845
mov word [eax + 8], si
lea eax, [ebp - 0xec]
push eax
push edi
call fcn.00520ef0
mov edi, dword [ebp - 0x3c]
push edi
push eax
push dword [ebp - 0xec]
push ebx
call fcn.00511f30
add esp, 0x18
xor ecx, ecx
test esi, esi
jle 0x50b798
mov eax, dword [edi + 4]
add eax, 8
test byte [eax], 1
jne 0x50d6c9
inc ecx
add eax, 0x28
cmp ecx, esi
jl 0x50b787
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
push 0
push edi
push dword [ebx + eax*8 + 0x10]
push dword [ebx + eax*8 + 0xc]
call fcn.005117e0
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x508283
mov edi, dword [ebp - 8]
lea ecx, [eax + 4]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x28]
cmp byte [eax + 0x38], 0
je 0x50b828
cmp byte [eax + 0x39], 0
je 0x50b807
mov eax, dword [eax + 0x10]
mov ebx, dword [eax + 0x20]
lea edi, [eax + 0x14]
jmp 0x50b82e
mov edx, dword [eax + 0x14]
mov eax, dword [edx + 8]
mov eax, dword [eax + 4]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + 0xc]
mov ebx, dword [eax + ecx*8 + 0x20]
lea eax, [eax + ecx*8]
lea edi, [eax + 0x14]
jmp 0x50b82e
mov edi, dword [eax + 0x24]
lea ebx, [edi + 8]
mov edi, dword [edi]
cmp dword [esi + 0x18], edi
jge 0x50b84f
push 0
push edi
push esi
call fcn.005106e0
add esp, 0xc
test eax, eax
je 0x50b85a
mov eax, 7
jmp 0x50a444
mov eax, dword [esi + 0x14]
and word [esi + 8], 0x2d
mov dword [esi + 0x10], eax
mov ax, word [esi + 8]
mov ecx, 0x3e40
push edi
and ax, cx
mov dword [esi + 0xc], edi
push ebx
push dword [esi + 0x10]
or ax, 0x10
mov word [esi + 8], ax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], 0
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + ecx*4]
mov ecx, 4
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edi, dword [ebp - 4]
push edi
push dword [ebp + 8]
call fcn.004d4bd0
mov edx, dword [edi + 4]
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov ecx, dword [ecx + edx*4]
mov edi, dword [ecx + 0x28]
push edi
call fcn.004ce7c0
mov edx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [edi + 0x2c]
cmp eax, dword [edx + 0x6c]
ja 0x50d238
push esi
push eax
push 0
push edi
call fcn.00510670
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a444
mov edi, dword [ebp - 4]
cmp dword [edi + 0xc], eax
jne 0x50864e
mov eax, 0x1000
test word [esi + 8], ax
je 0x50864e
push esi
call fcn.005108c0
mov edi, dword [ebp - 8]
add esp, 4
test eax, eax
jne 0x50e6f8
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
push dword [ebp - 4]
mov esi, dword [ebp + 8]
push esi
call fcn.004d4bd0
mov ecx, dword [ebp - 4]
add esp, 8
mov edi, eax
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x60]
mov esi, dword [ecx + edx*4]
cmp byte [esi + 2], 0
je 0x50b97e
mov esi, dword [ebp - 4]
mov eax, 1
mov word [edi + 8], ax
mov edi, dword [ebp - 8]
lea ecx, [eax + 3]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
cmp byte [esi + 3], 0
je 0x50b9b7
mov ecx, dword [esi + 0x40]
mov dword [ebp - 0x98], ecx
mov eax, dword [esi + 0x44]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x94], eax
mov dword [edi], ecx
mov ecx, 4
mov eax, dword [ebp - 0x94]
mov dword [edi + 4], eax
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
cmp byte [esi], 2
jne 0x50ba11
mov ecx, dword [esi + 0x28]
lea edx, [ebp - 0x98]
push edx
push ecx
mov esi, dword [ecx]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
call eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.00513520
mov eax, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
jne 0x50a444
mov ecx, dword [ebp - 0x98]
mov esi, dword [ebp - 4]
mov dword [edi], ecx
mov ecx, 4
mov eax, dword [ebp - 0x94]
mov dword [edi + 4], eax
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
push esi
call fcn.00507f10
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a444
cmp byte [esi + 2], al
je 0x50ba47
mov esi, dword [ebp - 4]
mov eax, 1
mov word [edi + 8], ax
mov edi, dword [ebp - 8]
lea ecx, [eax + 3]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov esi, dword [esi + 0x28]
push esi
call fcn.004ce7c0
mov ecx, dword [esi + 0x20]
add esp, 4
mov dword [ebp - 0x98], ecx
mov eax, dword [esi + 0x24]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x94], eax
mov dword [edi], ecx
mov ecx, 4
mov eax, dword [ebp - 0x94]
mov dword [edi + 4], eax
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0x60]
mov esi, dword [eax + ecx*4]
cmp byte [esi], 0
mov byte [esi + 2], 1
mov dword [esi + 0x1c], 0
jne 0x508457
mov esi, dword [esi + 0x28]
push dword [esi + 0x10]
call fcn.004adc10
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x10], 0
mov ecx, 4
mov byte [esi], 1
mov esi, dword [ebp - 4]
add esi, 0x14
jmp 0x508235
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 0xc4], 0
mov eax, dword [eax + 0x60]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x28]
cmp dl, 0x81
jne 0x50baff
mov dword [esi + 0x20], 0xffffffff
cmp byte [eax], 0
je 0x508457
lea ecx, [ebp - 0xc4]
push ecx
push eax
call fcn.004e3c80
mov dword [ebp - 0xc], eax
add esp, 8
cmp dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc4]
mov byte [esi + 2], al
mov byte [esi + 3], 0
mov dword [esi + 0x1c], 0
jne 0x50e6c4
mov esi, dword [ebp - 4]
cmp dword [esi + 8], 0
jle 0x50845a
test eax, eax
jne 0x508283
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + ecx*4]
mov esi, dword [eax + 0x28]
lea eax, [ebp - 0xc8]
push eax
push esi
mov dword [ebp - 0x3c], esi
call fcn.004e3290
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a447
cmp dword [ebp - 0xc8], eax
jne 0x508283
cmp byte [esi], al
jne 0x508457
mov eax, dword [esi + 0x74]
cmp byte [eax + 8], 0
je 0x508457
movzx eax, word [eax + 0x18]
xor bl, bl
cdq
mov esi, eax
mov edi, edx
mov eax, dword [ebp - 0x3c]
movsx ecx, byte [eax + 0x44]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jle 0x50bbe3
xor ecx, ecx
nop
mov eax, dword [eax + ecx*4 + 0x78]
push edi
push esi
movzx eax, word [eax + 0x18]
cdq
push edx
push eax
call fcn.00531b30
inc bl
mov esi, eax
mov eax, dword [ebp - 0x3c]
mov edi, edx
movzx ecx, bl
cmp ecx, dword [ebp - 0x2c]
jl 0x50bbc0
test edi, edi
jl 0x50864e
jg 0x50bbf5
test esi, esi
jb 0x50864e
push edi
push esi
call fcn.004f7d10
mov edi, dword [ebp - 4]
add esp, 8
cwde
cmp eax, dword [edi + 0xc]
jge 0x50864e
mov dword [ebp - 0xc8], 1
jmp 0x508286
mov eax, dword [ebp + 8]
inc dword [eax + 0xac]
jmp 0x50bc29
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ebx, 1
mov eax, dword [eax + 0x60]
mov dword [ebp - 0x84], ebx
mov ecx, dword [edx + 4]
mov edi, dword [eax + ecx*4]
mov esi, dword [edi + 0x28]
cmp byte [edi], bl
jne 0x50bc9b
cmp byte [esi + 0x38], 0
mov dword [ebp - 0xc], 0
jne 0x50bc71
cmp dword [esi + 0x24], 0
lea eax, [esi + 0x24]
je 0x50bcbf
push eax
lea eax, [esi + 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 0x84], ebx
call fcn.00521170
jmp 0x50bcb9
push esi
call fcn.005207b0
push eax
push esi
call fcn.005208d0
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bcbf
push esi
call fcn.00520f50
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x84], ebx
jmp 0x50bcbc
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.004e3290
mov ebx, dword [ebp - 0x84]
mov byte [edi + 3], 0
mov dword [edi + 0x1c], 0
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x50a444
mov byte [edi + 2], bl
test ebx, ebx
jne 0x508283
mov edi, dword [ebp - 8]
lea ecx, [eax + 4]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
mov edi, dword [eax + ecx*4]
mov esi, dword [edi + 0x28]
cmp byte [esi + 0x38], 0
je 0x50bd62
cmp byte [esi + 0x39], 0
je 0x50bd30
push dword [esi + 0x10]
call fcn.0051fa30
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bdb8
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x18], 0
jne 0x50bd93
mov eax, 0x65
jmp 0x50bdb5
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0
push eax
push dword [esi + 0x14]
call fcn.0051f480
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bdb8
cmp dword [ebp - 0x9c], eax
je 0x50bdb8
mov eax, 0x65
jmp 0x50bdb5
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + 4]
mov dword [esi + 0x24], eax
mov dword [ecx + 4], 0
cmp dword [esi + 0x28], 0
jne 0x50bd84
push ecx
push dword [ebp - 8]
call fcn.00520e70
add esp, 8
xor ecx, ecx
mov eax, 0x65
cmp dword [esi + 0x24], ecx
cmovne eax, ecx
jmp 0x50bdb5
mov eax, dword [ebp - 0xc]
jmp 0x50bdb8
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
push dword [edx + 0xc]
mov edi, dword [eax + ecx*4]
mov eax, dword [edx + 0x10]
push dword [edi + 0x28]
call eax
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [edi + 0x1c], 0
test eax, eax
jne 0x50bde2
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov byte [edi + 2], al
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
movzx eax, word [eax + 2]
inc dword [edx + eax*4 + 0xa4]
jmp 0x50df24
cmp eax, 0x65
jne 0x50a444
xor ecx, ecx
mov byte [edi + 2], 1
mov dword [ebp - 0xc], ecx
mov edi, dword [ebp - 8]
mov edx, dword [ebp + 8]
cmp dword [edi + 0x110], 0
jne 0x50e93b
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
cmp esi, ebx
jb 0x508457
nop word [eax + eax]
mov eax, dword [edi + 0x158]
test eax, eax
je 0x508457
add ebx, dword [edi + 0x160]
push dword [edi + 0x15c]
mov dword [ebp - 0x14], ebx
call eax
add esp, 4
test eax, eax
jne 0x50eac6
cmp esi, ebx
jae 0x50be20
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [edx + 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
test byte [ecx + 2], 1
mov eax, dword [ecx + 8]
lea eax, [eax + eax*4]
lea esi, [ebx + eax*8]
je 0x50be86
inc dword [edx + 0x2c]
mov eax, 0x4000
test word [esi + 8], ax
je 0x50bea5
push esi
call fcn.00510580
add esp, 4
test eax, eax
jne 0x50a444
mov ecx, dword [ebp - 4]
cmp byte [ecx], 0x82
jne 0x50beb6
push esi
push edi
call fcn.00512b60
add esp, 8
jmp 0x50bf16
mov eax, dword [esi + 0xc]
cdq
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2ac], edx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2b8], eax
mov eax, dword [ecx + 0xc]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
mov dword [ebp - 0x2a4], eax
mov ax, word [ecx + 0x10]
mov word [ebp - 0x2a0], ax
movzx eax, word [ecx + 2]
test al, 0x10
je 0x50bef6
mov ecx, dword [edi + 0x20]
jmp 0x50bef8
xor ecx, ecx
push ecx
and eax, 0xa
push eax
lea eax, [ebp - 0x2b8]
push eax
push dword [edi + 0x28]
call fcn.004e33a0
add esp, 0x10
mov dword [edi + 0x1c], 0
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
mov esi, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x28]
mov dword [ebp - 0x160], eax
mov ax, word [edx + 0xc]
mov word [ebp - 0x158], ax
mov eax, dword [edx + 8]
mov byte [ebp - 0x156], 0
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0xf0]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x160]
push eax
push edi
call fcn.004e3d10
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a444
cmp dword [ebp - 0xf0], eax
jne 0x50bfba
push 4
push edi
call fcn.004e2ef0
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a444
mov edi, dword [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov esi, dword [ebp - 4]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
mov ebx, dword [eax + ecx*4]
push ebx
mov dword [ebp - 0x2c], ebx
call fcn.00507f10
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a447
cmp byte [ebx + 2], al
jne 0x50c1ce
mov edi, dword [ebx + 0x28]
push edi
call fcn.004ce7c0
mov ebx, dword [edi + 0x28]
xor eax, eax
movzx ecx, word [edi + 0x30]
add esp, 4
mov esi, dword [edi + 0x2c]
mov word [ebp - 0x148], ax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x130], eax
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x138], 0
mov eax, dword [eax + 0x3c]
sub eax, ebx
cmp ecx, eax
jle 0x50c054
xor edx, edx
mov ecx, eax
test eax, eax
cmovs ecx, edx
cmp esi, ecx
ja 0x50c072
mov eax, 0x1010
mov dword [ebp - 0x140], ebx
mov word [ebp - 0x148], ax
mov dword [ebp - 0x144], esi
jmp 0x50c099
lea eax, [ebp - 0x150]
push eax
push esi
push 0
push edi
call fcn.0051ef50
add esp, 0x10
test eax, eax
jne 0x50a444
mov ebx, dword [ebp - 0x140]
mov esi, dword [ebp - 0x144]
mov al, byte [ebx]
cmp al, 0x80
jae 0x50c0aa
movzx edi, al
mov dword [ebp - 0xa0], edi
jmp 0x50c0c0
lea eax, [ebp - 0xa0]
push eax
push ebx
call fcn.004f4550
mov edi, dword [ebp - 0xa0]
add esp, 8
cmp edi, 3
jb 0x50e604
cmp edi, esi
ja 0x50e604
lea eax, [ebx - 1]
add eax, edi
mov cl, byte [eax]
cmp cl, 0x80
jae 0x50c0e8
movzx ecx, cl
mov dword [ebp - 0xa4], ecx
jmp 0x50c0fe
lea ecx, [ebp - 0xa4]
push ecx
push eax
call fcn.004f4550
mov ecx, dword [ebp - 0xa4]
add esp, 8
lea eax, [ecx - 1]
cmp eax, 8
ja 0x50e604
cmp ecx, 7
je 0x50e604
movzx edx, byte [ecx + 0x582440]
lea eax, [edx + edi]
cmp esi, eax
jb 0x50e604
lea eax, [ebp - 0x2e0]
sub esi, edx
push eax
push ecx
add esi, ebx
push esi
call fcn.00512120
lea eax, [ebp - 0x150]
push eax
call fcn.00510ad0
mov edi, dword [ebp - 4]
add esp, 0x10
mov dword [ebp - 0xc], 0
cmp byte [edi], 0x85
jne 0x50c19b
mov ecx, dword [edi + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x2e0]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp - 0x2dc]
mov dword [ecx + 0x44], eax
mov word [ecx + 2], 0x100
mov eax, dword [edi + 0x10]
mov edi, dword [ebp - 8]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0x24], eax
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
push edi
push dword [ebp + 8]
call fcn.004d4bd0
mov ecx, dword [ebp - 0x2e0]
add esp, 8
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2dc]
mov dword [eax + 4], ecx
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
call fcn.00510ba0
mov esi, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 3], 0
je 0x50845a
push eax
call fcn.0050f340
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a447
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edi, dword [ebp - 4]
cmp dl, 0x28
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx + 0x2c]
mov dword [ebp - 0x170], eax
mov ax, word [edi + 0x10]
mov word [ebp - 0x168], ax
sbb al, al
mov byte [ebp - 0x166], al
xor esi, esi
mov eax, dword [edi + 0xc]
mov edi, dword [ecx + 0x28]
push edi
lea eax, [eax + eax*4]
lea eax, [edx + eax*8]
mov dword [ebp - 0x16c], eax
call fcn.004ce7c0
mov edx, dword [edi + 0x2c]
xor eax, eax
add esp, 4
mov ecx, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x50c31d
jb 0x50c29e
cmp ecx, 0x7ffffffe
ja 0x50c31d
xor eax, eax
mov dword [ebp - 0x1e8], esi
mov word [ebp - 0x1f8], ax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1e0], eax
lea eax, [ebp - 0x200]
push eax
push edx
push 0
push edi
call fcn.00510670
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x50c344
push eax
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x1f0]
push dword [ebp - 0x1f4]
call fcn.005117e0
add esp, 0x10
mov esi, eax
test dword [ebp - 0x1f8], 0x2400
jne 0x50c305
cmp dword [ebp - 0x1e8], 0
je 0x50c314
lea eax, [ebp - 0x200]
push eax
call fcn.0051eec0
add esp, 4
mov dword [ebp - 0xc], 0
jmp 0x50c344
push 0x58b964
push 0x14157
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
xor esi, esi
call fcn.004b6bd0
add esp, 0x14
mov dword [ebp - 0xc], 0xb
mov eax, dword [ebp - 4]
mov cl, byte [eax]
mov eax, dword [ebp - 0xc]
and cl, 1
test eax, eax
jne 0x50a444
lea eax, [esi + 1]
neg esi
test cl, cl
cmovne esi, eax
test esi, esi
jg 0x508283
mov edi, dword [ebp - 8]
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d4bd0
mov edx, dword [ebp - 8]
mov edi, eax
mov eax, 1
add esp, 8
mov word [edi + 8], ax
mov ecx, dword [edx + 0xc0]
inc ecx
cmp dword [edx + 0xb4], ecx
jg 0x50e650
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xa8], 0
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + 4]
mov ecx, eax
shl ecx, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2c], ecx
mov esi, dword [ecx + eax + 4]
cmp byte [esi + 9], 0
je 0x50c3eb
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x50c3eb
push esi
call fcn.004c0c40
add esp, 4
lea eax, [ebp - 0xa8]
push eax
push ebx
push esi
call fcn.004c0520
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp byte [esi + 9], 0
je 0x50c414
add dword [esi + 0xc], 0xffffffff
jne 0x50c414
push esi
call fcn.0051ce20
add esp, 4
mov esi, dword [ebp - 0xa8]
mov ecx, 4
mov eax, esi
mov word [edi + 8], cx
cdq
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], edx
test eax, eax
jne 0x50a444
test esi, esi
je 0x50e2c6
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x2c]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x10]
mov ecx, dword [edi + ebx + 0xc]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x50c46d
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x1c], esi
jne 0x50c463
mov dword [ecx + 0x1c], edx
mov eax, dword [eax]
test eax, eax
jne 0x50c458
mov ecx, dword [edi + ebx + 0xc]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x50c485
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x2c], esi
jne 0x50c47f
mov dword [ecx + 0x2c], edx
mov eax, dword [eax]
test eax, eax
jne 0x50c474
mov al, byte [ebp - 0x3c]
mov ecx, 4
mov edi, dword [ebp - 8]
inc al
mov esi, dword [ebp - 4]
mov byte [ebp - 0x59], al
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xac]
xor ecx, ecx
mov dword [ebp - 0xac], 0
cmp dword [edx + 0xc], ecx
cmove eax, ecx
mov ecx, dword [edx + 8]
push eax
mov eax, dword [edi + 0x10]
add ecx, ecx
push dword [edx + 4]
push dword [eax + ecx*8 + 4]
call fcn.004e26f0
mov esi, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [esi + 0xc], 0
je 0x50c506
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xac]
add dword [edx + 0x2c], eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
jle 0x50c503
mov ebx, dword [ebp - 0x1c]
lea ecx, [ecx + ecx*4]
cdq
add dword [ebx + ecx*8], eax
adc dword [ebx + ecx*8 + 4], edx
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x50a447
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + ecx*4]
cmp byte [eax], 1
jne 0x50c54f
push dword [eax + 0x28]
push edi
call fcn.00512710
mov esi, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov eax, dword [eax + 0x28]
push 0
push dword [eax + 0x40]
push dword [eax + 8]
call fcn.004e26f0
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d4bd0
mov esi, eax
mov dword [ebp - 0xb0], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push dword [eax + 0xc]
shl ecx, 4
lea eax, [ebp - 0xb0]
add ecx, dword [edi + 0x10]
push eax
push dword [ecx + 4]
call fcn.004e2e30
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a447
mov eax, dword [ebp - 0xb0]
mov ecx, 4
cdq
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], edx
mov esi, dword [ebp - 4]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
inc byte [edi + 0x5a]
push 0
push 0
push 0
push dword [edx + 0x10]
push edi
call fcn.004aca30
dec byte [edi + 0x5a]
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x10]
mov esi, dword [edx + 4]
test ecx, ecx
jne 0x50c661
mov eax, dword [edi + 0x10]
mov ecx, esi
add ecx, ecx
push dword [eax + ecx*8 + 0xc]
call fcn.00500170
mov eax, dword [ebp + 8]
and dword [edi + 0x18], 0xffffffef
add eax, 0x7c
push 1
push eax
push esi
push edi
call fcn.004f5180
mov edx, dword [ebp + 8]
add esp, 0x14
or dword [edi + 0x18], 1
mov dword [ebp - 0xc], eax
and dword [edx + 0x98], 0xfffffffc
jmp 0x50c71c
mov eax, dword [ebp + 8]
add eax, 0x7c
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], eax
add esi, esi
mov eax, dword [edi + 0x10]
push ecx
push str.sqlite_master
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x118], 0
push dword [eax + esi*8]
push str.SELECTFROM__w_._s_WHERE__s_ORDER_BY_rowid
push edi
call fcn.004f7eb0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x50e669
push 0
lea eax, [ebp - 0x128]
mov byte [edi + 0xa5], 1
push eax
push fcn.004f4f40
push esi
push edi
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x114], 0
call fcn.004aca30
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50c708
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50c708
cmp dword [ebp - 0x114], eax
jne 0x50c708
push 0x16344
call fcn.004e7050
add esp, 4
mov dword [ebp - 0xc], eax
push esi
push edi
call fcn.004e85c0
mov eax, dword [ebp - 0xc]
add esp, 8
mov byte [edi + 0xa5], 0
test eax, eax
jne 0x50e670
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
push dword [edx + 4]
push edi
call fcn.004e07f0
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
push 0
mov eax, dword [edx + 4]
push dword [edx + 0x10]
shl eax, 4
add eax, dword [edi + 0x10]
mov eax, dword [eax + 0xc]
add eax, 8
push eax
call fcn.004f4790
add esp, 0xc
test eax, eax
je 0x50c79d
cmp dword [edi + 0x1f8], 0
jne 0x50c793
add dword [eax + 0x20], 0xffffffff
jne 0x50c79d
push eax
push edi
call fcn.004c6c00
add esp, 8
or dword [edi + 0x18], 1
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x10]
push 0
mov ecx, dword [edx + 4]
push dword [edx + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 0xc]
add eax, 0x18
push eax
call fcn.004f4790
mov edx, eax
add esp, 0xc
test edx, edx
je 0x50c79d
mov esi, dword [edx + 0xc]
mov ecx, dword [esi + 8]
cmp ecx, edx
jne 0x50c80b
mov eax, dword [edx + 0x14]
push edx
push edi
mov dword [esi + 8], eax
call fcn.004f1070
mov esi, dword [ebp - 4]
add esp, 8
or dword [edi + 0x18], 1
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
test ecx, ecx
je 0x50c844
nop
mov eax, dword [ecx + 0x14]
cmp eax, edx
je 0x50c83e
mov ecx, eax
test ecx, ecx
jne 0x50c810
push edx
push edi
call fcn.004f1070
mov esi, dword [ebp - 4]
add esp, 8
or dword [edi + 0x18], 1
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x14], eax
push edx
push edi
call fcn.004f1070
mov esi, dword [ebp - 4]
add esp, 8
or dword [edi + 0x18], 1
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x10]
push 0
mov ecx, dword [edx + 4]
push dword [edx + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 0xc]
add eax, 0x28
push eax
call fcn.004f4790
mov esi, eax
add esp, 0xc
test esi, esi
je 0x508457
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x14], eax
jne 0x50c8f3
push 0
push dword [esi + 4]
add eax, 8
push eax
call fcn.004caea0
add esp, 0xc
mov edx, dword [eax + 8]
test edx, edx
je 0x50c8f3
mov eax, dword [edx + 0x44]
add edx, 0x44
test eax, eax
je 0x50c8f3
nop dword [eax]
cmp eax, esi
je 0x50c8ee
lea edx, [eax + 0x20]
mov eax, dword [edx]
test eax, eax
jne 0x50c8c0
push esi
push edi
call fcn.004e93c0
mov esi, dword [ebp - 4]
add esp, 8
or dword [edi + 0x18], 1
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [eax + 0x20]
mov dword [edx], eax
push esi
push edi
call fcn.004e93c0
mov esi, dword [ebp - 4]
add esp, 8
or dword [edi + 0x18], 1
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
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 edi, [ebx + eax*8]
lea eax, [ebp - 0xe0]
push eax
mov eax, dword [ebx + esi*8]
inc eax
push eax
push dword [edx + 8]
lea eax, [ecx + 4]
movzx ecx, word [edx + 2]
mov edx, dword [ebp - 8]
add ecx, ecx
push eax
mov eax, dword [edx + 0x10]
push dword [eax + ecx*8 + 4]
push edx
call fcn.004e3780
push edi
mov ebx, eax
call fcn.00510ba0
mov eax, dword [ebp - 0xe0]
add esp, 0x1c
test eax, eax
je 0x50c991
test ebx, ebx
je 0x50e6f5
mov ecx, dword [ebp - 0x1c]
dec eax
push fcn.004adc10
push 1
cdq
sub dword [ecx + esi*8], eax
push 0xffffffffffffffff
sbb dword [ecx + esi*8 + 4], edx
push ebx
push edi
call fcn.00510cb0
add esp, 0x14
movzx eax, byte [ebp - 0x4c]
push eax
push edi
call fcn.00507a00
add esp, 8
jmp 0x50bdf4
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
test byte [ebx + eax*8 + 8], 0x10
lea esi, [ebx + eax*8]
mov eax, dword [edx + 8]
lea edi, [eax + eax*4]
jne 0x50c9d1
push esi
call fcn.00510bd0
add esp, 4
test eax, eax
jne 0x50e6f5
push dword [ebx + edi*8 + 4]
push dword [ebx + edi*8]
push dword [esi + 0x10]
call fcn.004ff480
add esp, 0xc
mov edi, dword [ebp - 8]
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
test byte [ecx + eax*8 + 8], 0x10
lea edi, [ecx + eax*8]
je 0x50ca79
mov esi, dword [edi + 0x10]
movzx ecx, word [esi + 0x1a]
test cl, 2
jne 0x50ca3b
mov eax, ecx
test cl, 1
jne 0x50ca34
push dword [esi + 8]
call fcn.004dcdc0
mov dword [esi + 8], eax
add esp, 4
movzx eax, word [esi + 0x1a]
or eax, 3
mov word [esi + 0x1a], ax
mov eax, dword [esi + 8]
test eax, eax
je 0x50ca79
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
test eax, eax
jne 0x50ca5a
push esi
call fcn.004ff3b0
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
push ebx
push edi
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
call fcn.00510b60
add esp, 0xc
jmp 0x50bdf4
push edi
call fcn.00510ba0
add esp, 4
jmp 0x50df1b
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
mov ebx, dword [edx + 0x10]
lea eax, [eax + eax*4]
test byte [ecx + eax*8 + 8], 0x10
lea esi, [ecx + eax*8]
mov eax, dword [edx + 0xc]
lea edi, [eax + eax*4]
jne 0x50caba
push esi
call fcn.00510bd0
add esp, 4
test eax, eax
jne 0x50e6f5
mov ecx, dword [ebp - 0x1c]
test ebx, ebx
je 0x50cadb
push dword [ecx + edi*8 + 4]
push dword [ecx + edi*8]
push ebx
push dword [esi + 0x10]
call fcn.004ff510
add esp, 0x10
test eax, eax
jne 0x508283
test ebx, ebx
js 0x50864e
mov ebx, dword [ebp - 0x1c]
jmp 0x50c9d1
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov edi, dword [edx + 0x10]
mov dword [ebp - 0x2c], edi
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*8]
mov eax, edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
cmp word [eax + 2], 0
je 0x50cb33
mov eax, dword [edx + 0xc8]
mov ecx, dword [edi + 0x14]
test eax, eax
je 0x50cb30
nop word [eax + eax]
cmp dword [eax + 0x1c], ecx
je 0x50864e
mov eax, dword [eax + 4]
test eax, eax
jne 0x50cb20
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
cmp eax, dword [ebx + 0x94]
jge 0x50e693
test byte [ecx + 8], 0x10
jne 0x50cc49
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
add eax, ecx
test ecx, ecx
lea esi, [eax + 1]
cmovne esi, eax
lea eax, [esi + 2]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*2]
mov eax, dword [edi + 4]
add eax, 7
mov eax, eax
test eax, eax
jns 0x50cb7a
add eax, 7
sar eax, 3
lea edi, [eax + ecx*4]
mov eax, edi
cdq
push edx
push eax
push ebx
call fcn.004e8770
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x50e6f5
push dword [ebp - 0x20]
call fcn.00510ad0
mov eax, dword [ebp - 0x20]
mov ecx, 0x410
add esp, 4
mov dword [eax + 0xc], edi
mov edi, dword [ebp - 0x2c]
mov word [eax + 8], cx
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ebx
mov dword [eax + 0x24], 0x50f3b0
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebx + 0x3c], esi
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x40], eax
mov eax, 0x66666667
imul ecx
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 + 0x58]
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 0x18]
mov dword [ebx + 0x38], eax
mov eax, dword [edx + 0x60]
mov dword [ebx + 0x14], eax
mov eax, dword [edx + 0x1c]
mov dword [ebx + 0x2c], eax
mov eax, dword [edx + 0x68]
mov dword [ebx + 8], eax
mov eax, dword [edx + 0x6c]
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x1c], eax
lea eax, [esi + 2]
lea eax, [eax + eax*4]
lea ecx, [ebx + eax*8]
lea eax, [ebx + 0x50]
cmp eax, ecx
je 0x50cc41
mov edx, dword [ebp - 8]
mov esi, 0x80
nop dword [eax]
mov word [eax + 8], si
mov dword [eax + 0x20], edx
add eax, 0x28
cmp eax, ecx
jne 0x50cc30
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xd0]
jmp 0x50cc4c
mov ebx, dword [ecx + 0x10]
mov ecx, dword [ebp - 8]
lea esi, [ebx + 0x50]
inc eax
mov dword [ebp - 0x1c], esi
mov dword [edx + 0xd0], eax
mov eax, dword [edx + 0xc8]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0x28]
mov dword [ebx + 0x20], eax
mov eax, dword [ecx + 0x2c]
mov dword [ebx + 0x24], eax
mov eax, dword [edx + 0x2c]
mov dword [ebx + 0x44], eax
mov eax, dword [edx]
mov eax, dword [eax + 0x64]
mov dword [ebx + 0x48], eax
mov eax, dword [edx + 0xdc]
mov dword [ebx + 0x28], eax
mov dword [edx + 0xdc], 0
mov dword [edx + 0x2c], 0
mov dword [edx + 0xc8], ebx
mov dword [edx + 0x58], esi
mov ecx, dword [ebx + 0x3c]
mov dword [edx + 0x18], ecx
movzx eax, word [ebx + 0x40]
mov dword [edx + 0x1c], eax
lea eax, [ecx + ecx*4]
lea ecx, [esi + eax*8]
mov dword [edx + 0x60], ecx
mov eax, dword [edi + 0xc]
lea ecx, [ecx + eax*4]
mov dword [ebx + 0x18], ecx
mov eax, dword [edi + 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 ebx, dword [edi]
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov dword [edx + 0x68], ebx
mov eax, dword [edi + 4]
lea edi, [ebx - 0x14]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 8]
mov dword [edx + 0x6c], eax
jmp 0x50bdfa
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d4bd0
mov esi, eax
mov eax, dword [ebp + 8]
push 0x1000
mov eax, dword [eax + 0xc8]
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 [ebp - 4]
add ecx, dword [edx + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*8]
push eax
push esi
call fcn.00510f50
mov esi, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov eax, dword [edi + 0x20]
and eax, 0x80000
or eax, 0
mov eax, dword [ebp - 4]
je 0x50cd7d
mov eax, dword [eax + 8]
cdq
add dword [edi + 0x1f0], eax
adc dword [edi + 0x1f4], edx
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
cmp dword [eax + 4], 0
mov eax, dword [eax + 8]
cdq
je 0x50cda1
add dword [edi + 0x1e8], eax
mov esi, dword [ebp - 4]
adc dword [edi + 0x1ec], edx
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov esi, dword [ebp + 8]
add dword [esi + 0x40], eax
mov eax, dword [ebp - 0x10]
adc dword [esi + 0x44], edx
mov esi, dword [ebp - 4]
add esi, 0x14
jmp 0x508235
cmp dword [esi + 4], 0
je 0x50cded
mov eax, dword [edi + 0x1e8]
or eax, dword [edi + 0x1ec]
jne 0x50845f
mov eax, dword [edi + 0x1f0]
or eax, dword [edi + 0x1f4]
je 0x508283
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x40]
or eax, dword [ecx + 0x44]
jne 0x50845a
mov eax, dword [edi + 0x1f0]
or eax, dword [edi + 0x1f4]
je 0x508283
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc8]
test edx, edx
je 0x50ce4f
mov eax, dword [edx + 4]
test eax, eax
je 0x50ce3b
mov edx, eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x50ce32
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x10]
lea edi, [eax + ecx*8]
jmp 0x50ce5e
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea edi, [ebx + eax*8]
push edi
call fcn.00510840
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
lea eax, [eax + eax*4]
lea esi, [ebx + eax*8]
push esi
call fcn.00510840
mov ecx, dword [esi + 4]
add esp, 8
mov eax, dword [esi]
cmp dword [edi + 4], ecx
jg 0x50864e
jl 0x50ce91
cmp dword [edi], eax
jae 0x50864e
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x50c9e3
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
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 0x50864e
jg 0x50cec0
test ecx, ecx
je 0x50864e
mov eax, dword [ebp - 4]
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 0x508283
mov edx, dword [ebp - 4]
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.004d4bd0
mov edx, dword [ebp - 0x1c]
add esp, 8
mov edi, eax
mov ecx, dword [edx + esi*8 + 4]
mov eax, dword [edx + esi*8]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], ecx
test ecx, ecx
jl 0x50cf5e
jg 0x50cf14
test eax, eax
je 0x50cf5e
mov ecx, dword [edx + ebx*8 + 4]
mov eax, dword [edx + ebx*8]
test ecx, ecx
jl 0x50cf25
jg 0x50cf33
test eax, eax
jne 0x50cf33
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
push ecx
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.004dfa00
add esp, 0xc
test eax, eax
jne 0x50cf5e
mov eax, dword [ebp - 0xd0]
mov dword [edi], eax
mov eax, dword [ebp - 0xcc]
mov dword [edi + 4], eax
jmp 0x50c9e3
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
jmp 0x50c9e3
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
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 0x508457
test edx, edx
jl 0x508283
jg 0x50cf9f
test ecx, ecx
je 0x508283
sub ecx, 1
mov dword [ebx + esi*8], ecx
sbb edx, 0
jmp 0x50827f
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
lea edx, [eax + eax*4]
mov ecx, dword [ebx + edx*8 + 4]
mov eax, dword [ebx + edx*8]
cmp ecx, 0x80000000
jl 0x50cfdb
jg 0x50cfce
test eax, eax
je 0x50cfdb
sub eax, 1
mov dword [ebx + edx*8], eax
sbb ecx, 0
mov dword [ebx + edx*8 + 4], ecx
or eax, ecx
je 0x508283
mov esi, dword [ebp - 4]
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
push 0
movzx ebx, word [edx + 2]
lea eax, [ebx*4 + 0x44]
push eax
push edi
call fcn.004e8630
mov esi, eax
add esp, 0xc
test esi, esi
je 0x50e6f8
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 edi, dword [ebp - 4]
mov dword [ecx + 0x18], 0
mov ecx, edi
sub ecx, dword [ebp - 0x18]
mov eax, dword [edi + 0x10]
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 dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov word [edi], 0xf09b
mov dword [edi + 0x10], esi
jmp 0x50d07f
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0xc]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [edi + 0x10]
lea eax, [eax + eax*4]
lea edi, [ebx + eax*8]
mov dword [ebp - 0x2c], edi
cmp dword [esi + 8], edi
je 0x50d0c9
movzx ecx, byte [esi + 0x19]
sub ecx, 1
mov dword [esi + 8], edi
js 0x50d0c9
mov edi, dword [ebp - 4]
lea edx, [ecx + 7]
lea edx, [esi + edx*4]
nop dword [eax + eax]
mov eax, dword [edi + 8]
lea edx, [edx - 4]
add eax, ecx
sub ecx, 1
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
mov dword [edx + 4], eax
jns 0x50d0b0
mov edi, dword [ebp - 0x2c]
inc dword [edi + 0xc]
lea eax, [esi + 0x1c]
mov edi, dword [ebp - 4]
movzx edx, byte [esi + 0x19]
mov ecx, dword [esi + 4]
push eax
cmp dword [edi + 4], 0
push edx
push esi
je 0x50d0e7
mov eax, dword [ecx + 0x1c]
jmp 0x50d0ea
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esi + 0x14]
add esp, 0xc
test eax, eax
je 0x50864e
jle 0x50d11a
push dword [esi]
call fcn.004b0390
push eax
push 0x586a44
push dword [ebp + 8]
call fcn.00508140
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp byte [esi + 0x18], 0
je 0x50d13e
mov eax, dword [edi - 0x10]
test eax, eax
je 0x50d13a
push 0
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
push 1
push eax
call fcn.00510b60
add esp, 0xc
mov byte [esi + 0x18], 0
push dword [esi]
call fcn.00510ad0
mov eax, dword [esi]
mov ecx, 1
add esp, 4
mov word [eax + 8], cx
mov dword [esi + 0x14], 0
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x50d203
mov ebx, dword [edx + 0x10]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
xorps xmm0, xmm0
mov eax, 0x2400
movups xmmword [ebp - 0x220], xmm0
movups xmmword [ebp - 0x210], xmm0
test word [edi + 8], ax
je 0x50d1bf
push edi
call fcn.0051ef00
add esp, 4
jmp 0x50d1c8
mov eax, 1
mov word [edi + 8], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], edi
push eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], ebx
call eax
mov eax, dword [ebp - 4]
add esp, 4
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20c]
mov edi, dword [ebp - 8]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea esi, [edx + eax*8]
jmp 0x50d211
push dword [edx + 0x10]
push esi
call fcn.005105e0
add esp, 8
mov ecx, eax
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x50e6ad
movzx eax, byte [ebp - 0x4c]
push eax
push esi
call fcn.00507a00
push esi
call fcn.005110b0
add esp, 0xc
test eax, eax
je 0x508457
push str.string_or_blob_too_big
push dword [ebp + 8]
call fcn.00508140
add esp, 8
mov eax, 0x12
jmp 0x50a444
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xdc], 0
push eax
push dword [edx + 8]
mov dword [ebp - 0xd4], 0xffffffff
push dword [edx + 4]
mov dword [ebp - 0xd8], 0xffffffff
push edi
call fcn.004e54c0
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
je 0x50d2b1
cmp eax, 5
jne 0x50a447
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xdc], 1
mov eax, dword [ebp - 4]
xor esi, esi
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
mov eax, dword [ebp + esi*4 - 0xdc]
cdq
push edx
push eax
push edi
call fcn.00510b60
inc esi
add esp, 0xc
add edi, 0x28
cmp esi, 3
jl 0x50d2c2
jmp 0x50c9e3
mov ebx, dword [ebp - 4]
push ebx
push dword [ebp + 8]
call fcn.004d4bd0
mov edx, dword [ebx + 4]
add esp, 8
mov ecx, dword [edi + 0x10]
mov esi, dword [ebx + 0xc]
shl edx, 4
cmp esi, 0xffffffff
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + ecx + 4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [eax + 4]
mov edi, dword [ecx]
movzx ebx, byte [edi + 5]
mov ecx, ebx
cmovne ecx, esi
cmp byte [edi + 0x10], 3
jb 0x50d323
xor eax, eax
jmp 0x50d342
mov eax, dword [edi + 0x40]
cmp dword [eax], 0
je 0x50d33d
cmp dword [edi + 0x4c], 0
jl 0x50d33d
jg 0x50d339
cmp dword [edi + 0x48], 0
jbe 0x50d33d
xor eax, eax
jmp 0x50d342
mov eax, 1
test eax, eax
mov esi, ebx
mov eax, 0x580c08
cmovne esi, ecx
cmp byte [edi + 0xf], 0
jne 0x50d35a
mov eax, dword [edi + 0xa8]
cmp esi, 5
jne 0x50d380
push eax
call fcn.00504390
add esp, 4
test eax, eax
je 0x50d379
push edi
call fcn.004fa4c0
add esp, 4
test eax, eax
jne 0x50d380
mov eax, ebx
jmp 0x50d506
mov eax, esi
cmp esi, ebx
je 0x50d506
cmp ebx, 5
je 0x50d398
cmp esi, 5
jne 0x50d506
mov eax, dword [ebp - 8]
cmp byte [eax + 0x4f], 0
je 0x50e6cc
cmp dword [eax + 0xb4], 1
jg 0x50e6cc
cmp ebx, 5
jne 0x50d4d3
cmp dword [edi + 0xd8], 0
mov dword [ebp - 0xc], 0
jne 0x50d46b
mov al, byte [edi + 0x11]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xc], 0
cmp al, 1
jb 0x50d3eb
cmp al, bl
jne 0x50d41b
cmp byte [edi + 0xd], 0
je 0x50d3fa
mov dword [ebp - 0xc], 0
jmp 0x50d411
mov eax, dword [edi + 0x3c]
push 1
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x1c]
call eax
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50d41b
cmp byte [edi + 0x11], 5
je 0x50d41b
mov byte [edi + 0x11], 1
cmp dword [ebp - 0xc], 0
jne 0x50d4c7
mov eax, dword [edi]
lea ecx, [ebp - 0xb4]
push ecx
push 0
push dword [edi + 0xdc]
push eax
mov eax, dword [eax + 0x20]
call eax
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50d4c7
cmp dword [ebp - 0xb4], eax
je 0x50d462
push edi
call fcn.004d5720
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50d4c7
cmp dword [edi + 0xd8], 0
je 0x50d4c7
push edi
call fcn.004d5400
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50d4c7
push dword [edi + 0xd0]
movzx eax, byte [edi + 0xb]
push dword [edi + 0x98]
push eax
push dword [ebp - 8]
push dword [edi + 0xd8]
call fcn.00513dd0
push edi
mov dword [ebp - 0xc], eax
mov dword [edi + 0xd8], 0
call fcn.004d5480
add esp, 0x18
cmp dword [ebp - 0xc], 0
je 0x50d4c7
cmp byte [edi + 4], 0
jne 0x50d4c7
push 1
push edi
call fcn.004d5ef0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
test ecx, ecx
jne 0x50d50b
push esi
jmp 0x50d4da
cmp ebx, 4
jne 0x50d4e3
push 2
push edi
call fcn.004f9d70
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
test ecx, ecx
jne 0x50d50b
xor eax, eax
cmp esi, 5
sete al
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.004e5020
mov dword [ebp - 0xc], eax
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
test ecx, ecx
cmove ebx, eax
push ebx
push edi
call fcn.004f9d70
mov ebx, dword [ebp - 0x3c]
add esp, 8
mov ecx, 0xa02
mov word [ebx + 8], cx
cmp eax, 6
jne 0x50d52d
xor eax, eax
jmp 0x50d534
mov eax, dword [eax*4 + 0x5825a0]
push eax
mov dword [ebx + 0x10], eax
call fcn.00504390
mov dword [ebx + 0xc], eax
movzx eax, byte [ebp - 0x4c]
push eax
push ebx
mov byte [ebx + 0xa], 1
call fcn.00507a00
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edi, dword [ebp - 8]
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
test eax, eax
je 0x50d586
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
jmp 0x50d588
xor eax, eax
push eax
push dword [edx + 4]
mov eax, dword [ebp + 8]
add eax, 0x7c
push edi
push eax
call fcn.004ffb80
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x10]
mov ecx, dword [edx + 4]
add ecx, ecx
mov edi, dword [eax + ecx*8 + 4]
cmp byte [edi + 9], 0
mov ebx, dword [edi + 4]
je 0x50d5e2
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x50d5e2
push edi
call fcn.004c0c40
add esp, 4
cmp byte [ebx + 0x11], 0
je 0x50d699
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x3c], ecx
mov eax, dword [eax + 0x38]
mov esi, dword [eax + 0x24]
bswap esi
push esi
push ecx
push ebx
call fcn.004caba0
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x3c], eax
jae 0x50d637
push 0x58b964
push 0x10984
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b6bd0
add esp, 0x14
mov dword [ebp - 0xc], 0xb
jmp 0x50d6a0
test esi, esi
je 0x50d699
mov eax, dword [ebx + 8]
test eax, eax
je 0x50d658
push 0
push 0
push eax
call fcn.004dd170
mov edx, eax
add esp, 0xc
mov dword [ebp - 0xc], edx
test edx, edx
jne 0x50d6a0
push ebx
call fcn.004d00e0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
push ebx
call fcn.004cfb00
mov edx, eax
add esp, 0x14
mov dword [ebp - 0xc], edx
test edx, edx
jne 0x50d6a0
mov eax, dword [ebx + 0xc]
push dword [eax + 0x48]
call fcn.004fa4f0
mov ecx, dword [ebx + 0x2c]
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0xc]
bswap ecx
mov eax, dword [eax + 0x38]
mov dword [eax + 0x1c], ecx
jmp 0x50d6a0
mov dword [ebp - 0xc], 0x65
cmp byte [edi + 9], 0
je 0x50d6b5
add dword [edi + 0xc], 0xffffffff
jne 0x50d6b5
push edi
call fcn.0051ce20
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x50864e
cmp eax, 0x65
jne 0x50a444
mov dword [ebp - 0xc], 0
jmp 0x508283
cmp dword [esi + 4], 0
jne 0x50d6f7
push dword [esi + 8]
push edi
call fcn.004ea3e0
mov eax, dword [ebp - 0x10]
add esp, 8
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp + 8]
mov eax, dword [esi + 8]
inc eax
xor eax, dword [edx + 0x98]
and eax, 3
xor dword [edx + 0x98], eax
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + ecx*4]
mov ecx, 4
mov eax, dword [eax + 0x28]
or byte [eax + 1], 0x40
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + ecx*4]
mov ecx, 4
mov eax, dword [eax + 0x28]
and byte [eax + 1], 0xbf
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov ebx, dword [ebp - 4]
mov bl, byte [ebx + 0xc]
test bl, bl
jne 0x50d779
mov eax, dword [edi + 0x20]
and eax, 0x400
mov dword [ebp - 0x30], eax
jne 0x50cd6f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edi, dword [eax + 8]
add ecx, ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov esi, dword [eax + ecx*8 + 4]
xor eax, eax
mov dword [ebp - 0xc], eax
cmp byte [esi + 9], al
je 0x50d843
inc dword [esi + 0xc]
inc bl
mov byte [ebp - 0x90], bl
cmp byte [esi + 0xa], al
jne 0x50d7b5
push esi
call fcn.004c0c40
add esp, 4
push dword [ebp - 0x90]
push edi
push esi
call fcn.004d9790
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50d82b
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x50d7f0
nop dword [eax]
cmp dword [ecx + 4], edi
jne 0x50d7e9
cmp dword [ecx], esi
je 0x50d819
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x50d7e0
push 0
push 0x10
call fcn.004f7ed0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x50d871
mov edx, dword [ebp - 0x2c]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 4], edi
mov dword [ecx], esi
mov eax, dword [edx + 0x48]
mov dword [ecx + 0xc], eax
mov dword [edx + 0x48], ecx
cmp bl, byte [ecx + 8]
jbe 0x50d821
mov byte [ecx + 8], bl
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
cmp byte [esi + 9], 0
je 0x50d843
add dword [esi + 0xc], 0xffffffff
jne 0x50d843
push esi
call fcn.0051ce20
mov eax, dword [ebp - 0xc]
add esp, 4
test eax, eax
je 0x50c9e3
cmp al, 6
jne 0x50a444
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push str.database_table_is_locked:__s
push dword [ebp + 8]
call fcn.00508140
mov eax, dword [ebp - 0xc]
add esp, 0xc
jmp 0x50a444
mov dword [ebp - 0xc], 7
mov eax, 7
jmp 0x50d82b
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], 0
mov esi, dword [edx + 0x10]
mov edx, dword [edi + 0x164]
test edx, edx
jle 0x50d8ab
cmp dword [edi + 0x17c], 0
jne 0x50d8ab
mov dword [ebp - 0xc], 6
jmp 0x50d95a
test esi, esi
jne 0x50d8c4
mov esi, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ecx, 4
add esi, 0x14
jmp 0x508235
mov eax, dword [esi + 8]
mov edi, dword [eax]
cmp dword [edi + 0x38], 0
je 0x50d957
mov ebx, dword [ebp - 8]
xor ecx, ecx
test edx, edx
jle 0x50d8f2
mov eax, dword [ebx + 0x17c]
cmp dword [eax], esi
je 0x50d988
inc ecx
add eax, 4
cmp ecx, edx
jl 0x50d8e2
push ebx
call fcn.004cf570
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50d957
push dword [esi + 8]
mov eax, dword [edi + 0x38]
call eax
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50d957
mov ecx, dword [ebx + 0x164]
mov eax, dword [ebx + 0x17c]
mov edx, dword [ebx + 0x1e0]
add edx, dword [ebx + 0x1dc]
mov dword [eax + ecx*4], esi
inc dword [ebx + 0x164]
inc dword [esi + 0xc]
test edx, edx
je 0x50d957
cmp dword [edi + 0x50], 0
je 0x50d957
lea eax, [edx - 1]
mov dword [esi + 0x14], edx
push eax
push dword [esi + 8]
mov eax, dword [edi + 0x50]
call eax
add esp, 8
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 8]
test esi, esi
je 0x50d96c
push dword [esi + 8]
push dword [ebp + 8]
call fcn.00513520
add esp, 8
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov dword [ebp - 0xc], 0
mov edi, ebx
jmp 0x50d95a
mov edx, dword [ebp - 4]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x1c]
movq qword [ebp - 0x270], xmm0
movups xmmword [ebp - 0x290], xmm0
mov eax, dword [edx + 8]
movups xmmword [ebp - 0x280], xmm0
mov dword [ebp - 0x270], edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.00510510
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x290]
push eax
call fcn.004b0390
add esp, 0xc
test eax, eax
je 0x50dab0
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
add esi, 0x7c
mov edx, dword [ecx + 4]
mov ecx, dword [edi + 0x10]
shl edx, 4
push dword [edx + ecx]
push eax
push edi
call fcn.004ef780
mov ebx, eax
push 0
mov ecx, dword [ebx + 0x3c]
mov edi, dword [ecx]
mov ecx, dword [ebp - 8]
add ecx, 0x168
push edi
push ecx
call fcn.004caea0
add esp, 0x18
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x50da95
mov eax, dword [ecx]
mov edx, dword [eax + 4]
test edx, edx
je 0x50da95
cmp dword [eax + 0x14], 0
je 0x50da95
mov edi, dword [ebp - 8]
push esi
push edx
push ecx
push ebx
push edi
call fcn.00521490
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50dab0
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x50dab0
cmp dword [eax], edi
je 0x50da61
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x50da54
jmp 0x50dab0
push edi
call fcn.004cf570
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50dab0
push ebx
push edi
call fcn.004f4380
mov edx, dword [edi + 0x164]
add esp, 8
mov ecx, dword [edi + 0x17c]
mov dword [ecx + edx*4], eax
inc dword [edi + 0x164]
inc dword [eax + 0xc]
jmp 0x50dab0
push edi
mov edi, dword [ebp - 8]
push str.no_such_module:__s
push edi
call fcn.004f7eb0
add esp, 0xc
mov dword [esi], eax
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x290]
push eax
call fcn.00510ad0
mov eax, dword [ebp - 0xc]
add esp, 4
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edx, dword [ebp - 4]
inc dword [edi + 0xc0]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xc], 0
mov ecx, dword [edx + 4]
add ecx, ecx
push dword [eax + ecx*8]
push dword [edx + 0x10]
push edi
call fcn.004ef780
mov edi, eax
add esp, 0xc
test edi, edi
je 0x50db7c
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x50db7c
nop
mov eax, dword [ecx + 8]
cmp dword [eax + 4], 0
jg 0x50dba1
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x50db10
mov ebx, dword [ebp - 8]
push edi
push ebx
call fcn.00521910
mov esi, eax
add esp, 8
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x50db42
mov eax, dword [ecx + 0x10]
inc dword [edi + 0x20]
push dword [esi + 8]
call eax
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50db63
mov dword [esi + 8], eax
push esi
mov dword [edi + 0x40], eax
call fcn.005137c0
add esp, 4
cmp dword [ebx + 0x1f8], 0
jne 0x50db72
add dword [edi + 0x20], 0xffffffff
jne 0x50db7c
push edi
push ebx
call fcn.004c6c00
add esp, 8
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
dec dword [edi + 0xc0]
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov eax, 6
mov dword [ebp - 0xc], eax
jmp 0x50db7f
mov edx, dword [ebp - 4]
mov dword [ebp - 0x88], 0
mov eax, dword [edx + 0x10]
mov esi, dword [eax + 8]
test esi, esi
je 0x50e725
mov edi, dword [esi]
test edi, edi
je 0x50e722
lea eax, [ebp - 0x88]
push eax
mov eax, dword [edi + 0x18]
push esi
call eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.00513520
mov eax, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
jne 0x50a444
mov eax, dword [ebp - 0x88]
push 2
push 0xffffffffffffffff
push 0
mov dword [eax], esi
mov eax, dword [ebp - 4]
push dword [eax + 4]
push dword [ebp + 8]
call fcn.004bcad0
add esp, 0x14
test eax, eax
je 0x50e6e7
mov ecx, dword [ebp - 0x88]
mov dword [eax + 0x28], ecx
inc dword [esi + 4]
jmp 0x50c9e3
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
add ebx, 0x28
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov edi, dword [ebp + 8]
lea edx, [eax + eax*4]
mov esi, dword [ebx + edx*8]
lea ebx, [ebx + edx*8]
mov eax, dword [edi + 0x60]
mov edi, dword [edi + 0x5c]
movd xmm0, ebx
mov dword [ebp - 0x2c], ebx
mov eax, dword [eax + ecx*4]
xor ecx, ecx
mov dword [ebp - 0x50], eax
pshufd xmm3, xmm0, 0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + edx*8]
mov dword [ebp - 0x3c], edx
test esi, esi
jle 0x50dd6d
cmp esi, 0x10
jb 0x50dd55
cmp dword [0x5b8ec4], 2
jl 0x50dd55
movaps xmm2, xmmword [0x58bad0]
mov eax, esi
and eax, 0x8000000f
jns 0x50dcb0
dec eax
or eax, 0xfffffff0
inc eax
movaps xmm1, xmmword [0x58bae0]
lea edx, [edi + 0x20]
mov ebx, esi
sub ebx, eax
nop
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
lea edx, [edx + 0x40]
paddd xmm0, xmm2
pmulld xmm0, xmm1
paddd xmm0, xmm3
paddd xmm0, xmm1
movups xmmword [edx - 0x60], xmm0
movd xmm0, eax
lea eax, [ecx + 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm2
pmulld xmm0, xmm1
paddd xmm0, xmm3
paddd xmm0, xmm1
movups xmmword [edx - 0x50], xmm0
movd xmm0, eax
lea eax, [ecx + 0xc]
pshufd xmm0, xmm0, 0
add ecx, 0x10
paddd xmm0, xmm2
pmulld xmm0, xmm1
paddd xmm0, xmm3
paddd xmm0, xmm1
movups xmmword [edx - 0x40], xmm0
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm2
pmulld xmm0, xmm1
paddd xmm0, xmm3
paddd xmm0, xmm1
movups xmmword [edx - 0x30], xmm0
cmp ecx, ebx
jl 0x50dcc0
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x3c]
cmp ecx, esi
jge 0x50dd6d
lea eax, [ecx + 1]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
mov dword [edi + ecx*4], eax
inc ecx
add eax, 0x28
cmp ecx, esi
jl 0x50dd62
mov eax, dword [ebp - 4]
push edi
mov edi, dword [ebp - 0x60]
push esi
push dword [eax + 0x10]
mov esi, dword [ebp - 0x34]
mov eax, dword [edi + 0x20]
push edx
push esi
call eax
push dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.00513520
mov eax, dword [ebp - 0xc]
add esp, 0x1c
test eax, eax
jne 0x50a444
mov eax, dword [edi + 0x28]
push esi
call eax
mov ecx, dword [ebp - 0x50]
add esp, 4
mov byte [ecx + 2], 0
test eax, eax
je 0x50864e
jmp 0x508283
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x60]
mov edi, dword [eax + ecx*4]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x1c]
cmp byte [edi + 2], 0
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
je 0x50ddea
push esi
call fcn.00510ba0
add esp, 4
jmp 0x50c9e3
test byte [edx + 2], 1
xorps xmm0, xmm0
mov eax, dword [edi + 0x28]
mov ebx, dword [eax]
mov eax, dword [ebx]
movups xmmword [ebp - 0x240], xmm0
mov dword [ebp - 0x2c], eax
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x240], esi
je 0x50de2a
push esi
call fcn.00510ba0
mov edx, dword [ebp - 4]
add esp, 4
mov dword [esi], 0
mov eax, 0x4001
jmp 0x50de3d
mov ax, word [esi + 8]
mov ecx, 0x3e40
and ax, cx
or ax, 1
movzx eax, ax
mov word [esi + 8], ax
lea eax, [ebp - 0x240]
push dword [edx + 8]
push eax
mov eax, dword [ebp - 0x2c]
push dword [edi + 0x28]
mov eax, dword [eax + 0x2c]
call eax
mov edi, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0xc], eax
call fcn.00513520
add esp, 0x14
cmp dword [ebp - 0x22c], 0
jle 0x50de8d
push esi
call fcn.004b0390
push eax
push 0x586a44
push edi
call fcn.00508140
mov eax, dword [ebp - 0x22c]
add esp, 0x10
mov dword [ebp - 0xc], eax
movzx eax, byte [ebp - 0x4c]
push eax
push esi
call fcn.00507a00
push esi
call fcn.005110b0
add esp, 0xc
test eax, eax
jne 0x50d238
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x60]
mov edi, dword [eax + ecx*4]
cmp byte [edi + 2], 0
jne 0x50864e
mov eax, dword [edi + 0x28]
push eax
mov esi, dword [eax]
mov ebx, dword [esi]
mov eax, dword [ebx + 0x24]
call eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.00513520
mov eax, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
jne 0x50a444
push dword [edi + 0x28]
mov eax, dword [ebx + 0x28]
call eax
add esp, 4
test eax, eax
jne 0x50bdf4
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x18]
lea eax, [eax + eax*4]
lea eax, [eax - 5]
lea eax, [ecx + eax*4]
mov dword [ebp - 4], eax
jmp 0x50bdfa
mov ecx, dword [ebp - 8]
mov edi, dword [edi + 0x20]
push 1
and edi, 0x4000000
or dword [ecx + 0x20], 0x4000000
mov eax, dword [ecx + 0x24]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
mov esi, dword [eax + 8]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*8]
push ebx
call fcn.00507a00
add esp, 8
test eax, eax
jne 0x50a444
mov eax, dword [esi]
push dword [ebx + 0x10]
push esi
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
mov dword [ebp - 0xc], eax
test edi, edi
mov edi, dword [ebp - 8]
jne 0x50dfa1
mov eax, dword [edi + 0x24]
and dword [edi + 0x20], 0xfbffffff
mov dword [edi + 0x24], eax
push esi
push dword [ebp + 8]
call fcn.00513520
mov eax, dword [ebp + 8]
add esp, 8
and dword [eax + 0x98], 0xfffffffc
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
cmp byte [edi + 0x51], 0
jne 0x50e6f8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov edi, dword [eax + 8]
test edi, edi
je 0x50e72f
mov ebx, dword [edi]
test ebx, ebx
je 0x50e72f
cmp dword [ebx + 0x34], 0
mov edx, dword [edx + 8]
je 0x50e2c6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov al, byte [eax + 0x56]
mov byte [ebp - 0x41], al
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*8]
xor eax, eax
test edx, edx
jle 0x50e03b
nop dword [eax]
mov dword [esi + eax*4], ecx
inc eax
add ecx, 0x28
cmp eax, edx
jl 0x50e030
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov al, byte [eax + 2]
mov byte [ecx + 0x56], al
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebx + 0x34]
push esi
push edx
push edi
call eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov al, byte [ebp - 0x41]
push edi
push dword [ebp + 8]
mov byte [ecx + 0x56], al
call fcn.00513520
mov eax, dword [ebp - 0xc]
add esp, 0x18
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
test eax, eax
jne 0x50e095
cmp dword [ecx + 4], eax
je 0x50e095
mov eax, dword [ebp - 0x110]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x10c]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0xc]
cmp al, 0x13
jne 0x50e0dc
mov eax, dword [ecx + 0x10]
cmp byte [eax + 0x10], 0
je 0x50e0dc
movzx ecx, word [ecx + 2]
cmp ecx, 4
jne 0x50e0c3
mov esi, dword [ebp - 4]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov ecx, 4
add esi, 0x14
jmp 0x508235
movzx eax, cl
cmp ecx, 5
mov ecx, 2
cmove eax, ecx
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x92], al
jmp 0x50e0e2
mov eax, dword [ebp + 8]
inc dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x50a447
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d4bd0
mov ecx, dword [ebp - 4]
add esp, 8
mov esi, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov ecx, dword [edi + 0x10]
shl edx, 4
mov ecx, dword [edx + ecx + 4]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + 0x2c]
and ecx, 0x7fffffff
mov dword [eax + 4], 0
mov dword [eax], ecx
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d4bd0
mov ecx, dword [edi + 0x10]
mov ebx, eax
mov eax, dword [ebp - 4]
add esp, 8
xor edi, edi
mov edx, dword [eax + 4]
add edx, edx
mov esi, dword [ecx + edx*8 + 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x50e17d
mov eax, dword [esi + 4]
mov edi, dword [eax + 0x2c]
and edi, 0x7fffffff
cmp edi, ecx
cmovb edi, ecx
cmp byte [esi + 9], 0
je 0x50e195
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x50e195
push esi
call fcn.004c0c40
add esp, 4
mov eax, dword [esi + 4]
mov eax, dword [eax]
test edi, edi
jle 0x50e1a6
mov dword [eax + 0x9c], edi
jmp 0x50e1ac
mov edi, dword [eax + 0x9c]
cmp byte [esi + 9], 0
je 0x50e1c1
add dword [esi + 0xc], 0xffffffff
jne 0x50e1c1
push esi
call fcn.0051ce20
add esp, 4
mov eax, edi
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x50c9e3
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov esi, dword [edx + 0x10]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
mov dword [ebp - 0x2c], edi
cmp dword [esi], edi
je 0x50e21f
movzx ecx, byte [esi + 0x19]
sub ecx, 1
mov dword [esi + 0xc], ebx
mov dword [esi], edi
js 0x50e21f
mov edi, dword [ebp - 4]
lea edx, [esi + 0x1c]
mov ebx, dword [ebp - 0x1c]
lea edx, [edx + ecx*4]
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
sub ecx, 1
jns 0x50e204
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
mov ax, word [edi + 8]
mov ecx, 0x3e40
and ax, cx
or ax, 1
mov word [edi + 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 0x50e29b
jle 0x50e26c
push edi
call fcn.004b0390
push eax
push 0x586a44
push ebx
call fcn.00508140
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push dword [eax + 4]
mov eax, dword [ebp + 8]
push dword [esi + 0x10]
add eax, 0xdc
push eax
push dword [ebp - 8]
call fcn.00507f80
mov eax, dword [ebp - 0xc]
add esp, 0x10
mov dword [esi + 0x14], 0
test eax, eax
jne 0x50a444
test byte [edi + 8], 0x12
je 0x50864e
movzx eax, byte [ebp - 0x4c]
push eax
push edi
call fcn.00507a00
push edi
call fcn.005110b0
add esp, 0xc
test eax, eax
jne 0x50d238
jmp 0x50c9e3
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x508235
mov cl, byte [edi + 0x58]
test cl, 0x41
je 0x50e38d
mov edx, dword [ebp + 8]
test byte [edx + 0x98], 0x10
jne 0x50e38d
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x50e308
mov eax, dword [edx + 0xc0]
test eax, eax
je 0x50e38d
push eax
test cl, 0x40
je 0x50e339
mov edi, dword [edi + 0xcc]
push edx
call fcn.0050edd0
mov esi, eax
mov eax, dword [ebp - 8]
push esi
push dword [eax + 0xd0]
call edi
push esi
call fcn.004adc10
mov edi, dword [ebp - 8]
add esp, 0x14
mov esi, dword [ebp - 4]
jmp 0x50e38d
cmp dword [edi + 0xbc], 1
jle 0x50e379
push str.____s
push edi
call fcn.004f7eb0
mov ecx, dword [edi + 0xcc]
mov esi, eax
push esi
push dword [ebp + 8]
push dword [edi + 0xd0]
push 1
call ecx
add esp, 0x1c
test esi, esi
je 0x50e374
push esi
push edi
call fcn.004e85c0
add esp, 8
mov esi, dword [ebp - 4]
jmp 0x50e38d
mov eax, dword [edi + 0xcc]
push edx
push dword [edi + 0xd0]
push 1
call eax
add esp, 0x10
mov eax, dword [esi + 4]
cmp eax, dword [0x5b2d34]
jl 0x50e3e1
cmp byte [esi], 0xaa
je 0x50845a
mov esi, dword [ebp + 8]
mov edx, 1
cmp dword [esi + 0x6c], edx
jle 0x50e3cd
mov eax, 0x14
mov ecx, dword [esi + 0x68]
cmp byte [eax + ecx], 0x11
jne 0x50e3c4
mov dword [eax + ecx + 4], 0
inc edx
add eax, 0x14
cmp edx, dword [esi + 0x6c]
jl 0x50e3b3
mov edi, dword [ebp - 4]
xor eax, eax
inc eax
mov dword [edi + 4], eax
inc dword [esi + 0xbc]
jmp 0x508286
mov edi, dword [ebp - 4]
inc eax
mov esi, dword [ebp + 8]
mov dword [edi + 4], eax
inc dword [esi + 0xbc]
jmp 0x508286
mov edx, dword [ebp - 4]
mov dword [ebx + 0x28], ecx
mov al, byte [edx + 8]
mov byte [ebx + 0x92], al
mov dword [ebx + 0x24], esi
test ecx, ecx
je 0x50e479
movzx eax, word [edx + 2]
test ax, ax
je 0x50e44b
push dword [eax*4 + 0x5824fc]
push str._s_constraint_failed
push ebx
call fcn.00508140
mov eax, dword [ebp - 4]
add esp, 0xc
mov eax, dword [eax + 0x10]
test eax, eax
je 0x50e45c
push eax
push dword [ebx + 0x7c]
push str._z:__s
push edi
call fcn.004f7eb0
add esp, 0x10
mov dword [ebx + 0x7c], eax
jmp 0x50e45c
push dword [edx + 0x10]
push 0x586a44
push ebx
call fcn.00508140
add esp, 0xc
push dword [ebx + 0x7c]
mov eax, dword [ebp - 4]
push dword [ebx + 0xc0]
push esi
push str.abort_at__d_in___s_:__s
push dword [eax + 4]
call fcn.004b6bd0
add esp, 0x14
push ebx
call fcn.0050f5d0
mov esi, dword [ebp - 0x14]
mov ecx, eax
add esp, 4
mov dword [ebp - 0xc], ecx
cmp ecx, 5
jne 0x50e499
mov dword [ebx + 0x28], eax
mov ebx, eax
jmp 0x50eaa0
cmp dword [ebx + 0x28], 0
mov ecx, 0x65
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0xc], ecx
mov ebx, ecx
jmp 0x50eaa0
push 0x1569f
call fcn.004e7050
mov edi, dword [ebp - 8]
add esp, 4
jmp 0x50a44a
push str.cannot_open_savepoint___SQL_statements_in_progress
push dword [ebp + 8]
call fcn.00508140
add esp, 8
mov eax, 5
mov edi, esi
jmp 0x50a447
push str.cannot_release_savepoint___SQL_statements_in_progress
push dword [ebp + 8]
call fcn.00508140
add esp, 8
mov eax, 5
jmp 0x50a444
mov ecx, dword [ebp - 4]
mov eax, 0x66666667
sub ecx, dword [ebp - 0x18]
mov ebx, 5
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 8]
mov dword [edx + 0x24], eax
mov byte [edi + 0x4f], 0
mov dword [edx + 0x28], 5
jmp 0x50eaa0
mov eax, 8
jmp 0x50a447
mov esi, dword [ebp - 0x14]
cmp al, 5
jne 0x509076
mov ecx, dword [ebp - 4]
mov eax, 0x66666667
sub ecx, dword [ebp - 0x18]
imul ecx
mov ecx, dword [ebp - 0xc]
mov ebx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 8]
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], ecx
jmp 0x50eaa0
mov eax, dword [edx + 0x7c]
test eax, eax
je 0x50e587
push eax
push edi
call fcn.004e85c0
add esp, 8
push 0
push 0x1c
push edi
call fcn.004e8630
mov esi, eax
add esp, 0xc
test esi, esi
je 0x50e5aa
push 0x1c
push str.database_schema_has_changed
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 0x7c], esi
mov eax, dword [ebp - 4]
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 [ebp - 0x8c]
je 0x50e5d5
push edx
push edi
call fcn.004feb40
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
mov eax, dword [eax + 0x98]
and eax, 0xfffffffd
or eax, 1
mov dword [ecx + 0x98], eax
mov eax, 0x11
jmp 0x50a44d
mov eax, 0x204
jmp 0x50a447
test dword [ebp - 0x148], 0x2400
jne 0x50e619
cmp dword [ebp - 0x138], 0
je 0x50e628
lea eax, [ebp - 0x150]
push eax
call fcn.0051eec0
add esp, 4
push 0x58b964
push 0x14136
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b6bd0
add esp, 0x14
mov eax, 0xb
jmp 0x50a444
mov ecx, dword [ebp + 8]
mov eax, 6
mov ebx, dword [ebp - 0x18]
mov edi, edx
mov byte [ecx + 0x92], 2
jmp 0x50a44d
mov dword [ebp - 0xc], 7
push edi
call fcn.004feac0
mov eax, dword [ebp - 0xc]
add esp, 4
mov esi, dword [ebp - 0x14]
cmp eax, 7
je 0x50e980
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
jmp 0x50a450
push str.too_many_levels_of_trigger_recursion
push edx
call fcn.00508140
add esp, 8
mov eax, 1
mov edi, ebx
jmp 0x50a447
push esi
call fcn.004b0390
push eax
push 0x586a44
push dword [ebp + 8]
call fcn.00508140
add esp, 0x10
mov eax, dword [ebp - 0xc]
jmp 0x50a447
cmp esi, 5
mov eax, str.into
mov ecx, str.out_of
cmovne eax, ecx
push eax
push str.cannot_change__s_wal_mode_from_within_a_transaction
jmp 0x50a434
push dword [ebp - 0x88]
mov eax, dword [edi + 0x1c]
call eax
add esp, 4
mov edi, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
push edi
call fcn.004f8730
push str.out_of_memory
push edx
call fcn.00508140
mov ecx, dword [ebp + 8]
add esp, 0xc
mov ebx, dword [ebp - 0x18]
mov eax, 7
jmp 0x50a450
mov edi, dword [ebp - 8]
mov eax, 6
jmp 0x50a447
mov eax, 6
jmp 0x50a444
mov eax, dword [ebp + 8]
cmp dword [eax + 0x44], 0
jl 0x50e770
jg 0x50e74a
cmp dword [eax + 0x40], 0
jbe 0x50e770
push str.FOREIGN_KEY_constraint_failed
push eax
mov dword [eax + 0x28], 0x313
mov byte [eax + 0x92], 2
call fcn.00508140
add esp, 8
mov eax, 1
jmp 0x50a447
push 1
push eax
call fcn.00507e20
mov edx, dword [ebp + 8]
xor edi, edi
mov ecx, dword [ebp - 4]
add esp, 8
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x20]
add eax, 2
or eax, 1
mov dword [edx + 0x20], eax
mov eax, dword [ecx + 4]
lea eax, [eax + eax*4]
lea esi, [ebx + eax*8]
mov ebx, ecx
mov dword [edx + 0x78], esi
cmp dword [ecx + 8], edi
jle 0x50e7d6
mov eax, 0x1000
test word [esi + 8], ax
je 0x50e7c1
push esi
call fcn.005108c0
add esp, 4
test eax, eax
jne 0x50e6f5
push esi
call fcn.00510970
inc edi
add esp, 4
add esi, 0x28
cmp edi, dword [ebx + 8]
jl 0x50e7a5
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 8]
cmp byte [edi + 0x51], 0
jne 0x50e6fb
test byte [edi + 0x58], 4
je 0x50e7ff
mov eax, dword [edi + 0xcc]
push 0
push edx
push dword [edi + 0xd0]
push 4
call eax
add esp, 0x10
mov esi, dword [ebp - 0x14]
mov ecx, ebx
sub ecx, dword [ebp - 0x18]
mov eax, 0x66666667
imul ecx
mov ecx, dword [ebp + 8]
mov ebx, 0x64
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc eax
add eax, edx
mov dword [ecx + 0x24], eax
jmp 0x50eaa0
mov edx, dword [ebp - 4]
movzx eax, byte [edi + 0x4f]
mov ebx, dword [edx + 4]
mov ecx, dword [edx + 8]
cmp ebx, eax
je 0x50e90b
test ecx, ecx
je 0x50e854
push 0x204
push edi
call fcn.004ff270
add esp, 8
mov al, 1
jmp 0x50e899
test ebx, ebx
je 0x50e87b
cmp dword [edi + 0xb8], 0
jle 0x50e87b
push str.cannot_commit_transaction___SQL_statements_in_progress
push dword [ebp + 8]
call fcn.00508140
add esp, 8
mov eax, 5
jmp 0x50a447
push 1
push dword [ebp + 8]
mov dword [ebp - 0x90], ebx
call fcn.00507be0
mov ecx, eax
add esp, 8
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x50e900
mov eax, ebx
push dword [ebp + 8]
mov byte [edi + 0x4f], al
call fcn.0050f5d0
add esp, 4
cmp eax, 5
jne 0x50e8e0
mov ecx, dword [ebp - 4]
mov eax, 0x66666667
sub ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
imul ecx
mov ecx, dword [ebp + 8]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ecx + 0x24], eax
mov al, 1
sub al, bl
mov ebx, 5
mov byte [edi + 0x4f], al
mov dword [ecx + 0x28], ebx
jmp 0x50eaa0
push edi
call fcn.004e5920
mov eax, dword [ebp + 8]
add esp, 4
mov ecx, 0x65
cmp dword [eax + 0x28], 0
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0xc], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
jmp 0x50eaa0
test ebx, ebx
jne 0x50e916
mov eax, str.cannot_start_a_transaction_within_a_transaction
jmp 0x50e925
test ecx, ecx
mov eax, str.cannot_rollback___no_transaction_is_active
mov edx, str.cannot_commit___no_transaction_is_active
cmove eax, edx
push eax
push dword [ebp + 8]
call fcn.00508140
add esp, 8
mov eax, 1
jmp 0x50a447
mov esi, dword [ebp - 0x14]
xor eax, eax
cmp byte [edi + 0x51], al
sete al
lea eax, [eax*2 + 7]
push eax
mov dword [ebp - 0xc], eax
mov dword [edx + 0x28], eax
call fcn.004ae800
push eax
push 0x586a44
push edx
call fcn.00508140
mov eax, dword [ebp - 0xc]
add esp, 0x10
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
jmp 0x50a450
mov edi, dword [ebp - 8]
mov edx, esi
jmp 0x50e6fb
mov edx, dword [ebp + 8]
jmp 0x50e6fe
mov ecx, str.abort_due_to_ROLLBACK
jmp 0x50e99b
mov ecx, str.no_more_rows_available
jmp 0x50e99b
mov ecx, str.another_row_available
push ecx
push 0x586a44
push dword [ebp + 8]
call fcn.00508140
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
cmp eax, 0xc0a
je 0x50e9e3
movzx eax, al
cmp eax, 0xe
je 0x50e9c9
cmp eax, 0xa
jne 0x50e9e3
mov eax, dword [edi]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x50e9de
push 0
push 0
push eax
call ecx
add esp, 0xc
jmp 0x50e9e0
xor eax, eax
mov dword [edi + 0x48], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
sub ecx, ebx
push dword [eax + 0x7c]
push dword [eax + 0xc0]
mov eax, 0x66666667
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 dword [ebp - 0xc]
call fcn.004b6bd0
push dword [ebp + 8]
call fcn.0050f5d0
add esp, 0x18
cmp dword [ebp - 0xc], 0xc0a
jne 0x50ea6a
cmp byte [edi + 0x51], 0
jne 0x50ea6a
cmp byte [edi + 0x52], 0
jne 0x50ea6a
cmp dword [edi + 0xbc], 0
mov byte [edi + 0x51], 1
jle 0x50ea4a
mov dword [edi + 0x110], 1
inc dword [edi + 0x118]
xor eax, eax
mov word [edi + 0x11c], ax
mov eax, dword [edi + 0xf4]
test eax, eax
je 0x50ea6a
mov dword [eax + 0xc], 7
mov al, byte [ebp - 0x59]
mov dword [ebp - 0xc], 1
test al, al
je 0x50ea96
movzx eax, al
dec eax
push eax
push edi
call fcn.004feb40
mov ebx, dword [ebp - 0xc]
add esp, 8
jmp 0x50eaa0
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
jmp 0x50eaa0
mov ebx, 1
nop dword [eax + eax]
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
jb 0x50ead9
mov eax, dword [edi + 0x158]
test eax, eax
je 0x50ead9
push dword [edi + 0x15c]
add esi, dword [edi + 0x160]
call eax
add esp, 4
test eax, eax
je 0x50eaa0
mov ecx, dword [ebp + 8]
or esi, 0xffffffff
mov ebx, dword [ebp - 0x18]
mov eax, 9
jmp 0x50a450
mov edx, dword [ebp + 8]
add dword [edx + 0xb4], ecx
cmp dword [edx + 0xa0], 0
je 0x50eaf4
push edx
call fcn.0051ee00
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret