Function at 0x509aa0
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.005099e0
add esp, 4
cmp dword [edi + 0x158], 0
je 0x509b09
mov esi, dword [edi + 0x160]
xor edx, edx
mov eax, dword [ebx + 0xb4]
div esi
sub esi, edx
jmp 0x509b0c
or esi, 0xffffffff
mov edx, ebx
mov dword [ebp - 0x14], esi
cmp dword [edx + 0x28], 7
je 0x51002e
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 0x51026e
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.0x509b7d.85
jmp dword [ebx*4 + 0x510430]
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 0x509b65
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 0x509b65
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 0x509bb3
mov ecx, eax
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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 0x509b65
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 0x509b65
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
test byte [ecx + eax*8 + 8], 1
je 0x509d8a
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 0x50fd29
mov edx, dword [ebx + 0xc8]
test edx, edx
je 0x50fd26
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.00510d00
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 0x509d4f
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 0x509b65
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d6510
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 0x509b65
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d6510
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 0x509b65
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d6510
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 0x509b65
mov ebx, dword [ebp - 4]
push ebx
push dword [ebp + 8]
call fcn.004d6510
mov edi, dword [ebx + 0x10]
mov esi, eax
push edi
call fcn.00505cc0
mov edx, ebx
add esp, 0xc
mov bl, byte [ebp - 0x4c]
mov dword [edx + 4], eax
cmp bl, 1
je 0x509e99
push 0
push 1
push 0xffffffffffffffff
push edi
push esi
call fcn.005125e0
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50eb68
movzx eax, bl
push eax
push esi
call fcn.00509320
add esp, 8
test eax, eax
jne 0x510025
mov edx, dword [ebp - 4]
mov dword [esi + 0x18], eax
mov eax, 0x800
or word [esi + 8], ax
cmp byte [edx + 1], 0xf9
jne 0x509e89
mov eax, dword [edx + 0x10]
test eax, eax
je 0x509e89
push eax
push dword [ebp - 8]
call fcn.004e9ef0
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 0x50eb68
mov byte [edx], 0x47
jmp 0x509eb0
mov edx, dword [ebp - 4]
mov bl, byte [ebp - 0x4c]
push edx
push dword [ebp + 8]
call fcn.004d6510
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 0x509d87
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 0x509d87
cmp dword [ebx + esi*8 + 4], edx
mov esi, dword [ebp - 4]
jne 0x509d8a
mov eax, 0xa10
mov word [ecx + 8], ax
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov ebx, dword [ebp - 4]
push ebx
push dword [ebp + 8]
call fcn.004d6510
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 0x509f7e
nop
lea esi, [esi + 0x28]
lea eax, [esi - 0xc]
push eax
call fcn.005124d0
dec edi
mov word [esi - 4], bx
add esp, 4
mov dword [esi], 0
test edi, edi
jg 0x509f60
mov edi, dword [ebp - 8]
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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 0x509b65
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d6510
mov esi, eax
mov eax, dword [ebp - 4]
push 0
push 0
push dword [eax + 4]
push dword [eax + 0x10]
push esi
call fcn.005125e0
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 0x509b65
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.005129e0
add esp, 4
test eax, eax
jne 0x50eb68
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 0x50a048
push esi
call fcn.005124d0
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 0x509b65
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.00512250
mov eax, 0x1000
add esp, 8
test word [esi + 8], ax
je 0x50a0c6
push esi
call fcn.005121f0
add esp, 4
test eax, eax
jne 0x510025
add edi, 0x28
add esi, 0x28
sub ebx, 1
jne 0x50a0a0
mov edi, dword [ebp - 8]
lea ecx, [ebx + 4]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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.00512880
mov eax, 0x1000
add esp, 0xc
test word [esi + 8], ax
je 0x50a12b
push esi
call fcn.005121f0
add esp, 4
test eax, eax
jne 0x510025
mov eax, ebx
dec ebx
test eax, eax
je 0x509f7e
add esi, 0x28
add edi, 0x28
jmp 0x50a100
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.00512880
mov esi, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
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.00512490
mov esi, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
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 0x50a200
push edi
call fcn.005124d0
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 0x509b65
test cl, 0x12
jne 0x50a215
push 0
push dword [ebp - 0x4c]
push ebx
call fcn.005128d0
add esp, 0xc
jmp 0x50a226
test ecx, 0x4000
je 0x50a240
push ebx
call fcn.00511eb0
add esp, 4
test eax, eax
jne 0x510025
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 0x50a276
push 0
push dword [ebp - 0x4c]
push esi
call fcn.005128d0
add esp, 0xc
test eax, eax
jne 0x510025
mov ax, word [esi + 8]
mov ecx, 0xfffd
and ax, cx
movzx edx, ax
mov dword [ebp - 0x20], edx
jmp 0x50a2a1
test edx, 0x4000
je 0x50a2a1
push esi
call fcn.00511eb0
add esp, 4
test eax, eax
jne 0x510025
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 0x50eb68
xor eax, eax
cmp edi, esi
sete al
push eax
lea eax, [ecx + 3]
push eax
push edi
call fcn.00512010
add esp, 0xc
test eax, eax
jne 0x510025
mov ax, word [edi + 8]
mov ecx, 0x3e40
and ax, cx
or ax, 2
mov word [edi + 8], ax
cmp edi, esi
je 0x50a303
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 0x509b65
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.004d5c70
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.004d5c70
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 0x50a5f3
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.0x50a3e5
jmp dword [eax*4 + 0x5106dc]
push esi
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.004e1330
add esp, 0xc
test eax, eax
je 0x50a5b8
mov esi, dword [ebp - 0x28]
push esi
call fcn.005130a0
mov ebx, dword [ebp - 0x34]
fstp qword [ebp - 0x30]
push ebx
call fcn.005130a0
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.0x50a42f
jmp dword [eax*4 + 0x5106ec]
test edi, edi
jne 0x50a460
cmp esi, 0x80000000
jne 0x50a460
test ecx, ecx
jg 0x50a402
jl 0x50a44c
test ebx, ebx
jae 0x50a402
add ebx, 0
mov dword [ebp - 0x70], ebx
adc ecx, 0x80000000
mov dword [ebp - 0x6c], ecx
jmp 0x50a5b8
neg edi
adc esi, 0
neg esi
jmp case.0x50a3e5.105
test esi, esi
jl 0x50a4d2
jg 0x50a473
test edi, edi
je 0x50a4c0
push esi
push edi
push 0x7fffffff
push 0xffffffffffffffff
call fcn.00533490
cmp dword [ebp - 0x24], edx
jg 0x50a402
jl 0x50a494
cmp ebx, eax
ja 0x50a402
push esi
push edi
push 0x80000000
push 0
call fcn.00533490
mov ecx, dword [ebp - 0x24]
cmp ecx, edx
jg 0x50a55a
jl 0x50a402
cmp ebx, eax
jae 0x50a55a
jmp 0x50a402
test esi, esi
jg 0x50a55a
jl 0x50a4d2
test edi, edi
jae 0x50a55a
test ecx, ecx
jl 0x50a507
jg 0x50a4dc
test ebx, ebx
je 0x50a4fd
push ecx
push ebx
push 0x80000000
push 0
call fcn.00533490
cmp esi, edx
jg 0x50a557
jl 0x50a402
cmp edi, eax
jae 0x50a557
jmp 0x50a402
test ecx, ecx
jg 0x50a55a
jl 0x50a507
test ebx, ebx
jae 0x50a55a
test edi, edi
jne 0x50a517
cmp esi, 0x80000000
je 0x50a402
test ebx, ebx
jne 0x50a527
cmp ecx, 0x80000000
je 0x50a402
push esi
push edi
push 0x80000000
push 1
call fcn.00533490
mov ecx, ebx
neg ecx
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x24]
adc ecx, 0
neg ecx
cmp ecx, edx
jg 0x50a402
jl 0x50a557
cmp dword [ebp - 0x3c], eax
ja 0x50a402
mov ecx, dword [ebp - 0x24]
push esi
push edi
push ecx
push ebx
call fcn.00533620
jmp 0x50a5b2
mov eax, edi
or eax, esi
je 0x50a5fb
mov eax, edi
and eax, esi
cmp eax, 0xffffffff
jne 0x50a588
test ebx, ebx
jne 0x50a588
cmp ecx, 0x80000000
je 0x50a402
push esi
push edi
push ecx
push ebx
call fcn.00533490
jmp 0x50a5b2
mov eax, edi
or eax, esi
je 0x50a5fb
mov eax, edi
and eax, esi
cmp eax, 0xffffffff
jne 0x50a5a9
mov edi, 1
xor esi, esi
push esi
push edi
push ecx
push ebx
call fcn.00533660
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 0x509b65
test al, 1
je 0x50a405
push dword [ebp - 0x20]
call fcn.005124d0
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 0x509b65
movsd xmm0, qword [ebp - 0x40]
addsd xmm0, qword [ebp - 0x30]
jmp 0x50a6a3
movsd xmm0, qword [ebp - 0x40]
subsd xmm0, qword [ebp - 0x30]
jmp 0x50a6a3
movsd xmm0, qword [ebp - 0x40]
mulsd xmm0, qword [ebp - 0x30]
jmp 0x50a6a3
movsd xmm1, qword [ebp - 0x30]
ucomisd xmm1, qword [ebp - 0x178]
lahf
test ah, 0x44
jnp 0x50a5fb
movsd xmm0, qword [ebp - 0x40]
divsd xmm0, xmm1
jmp 0x50a6a3
push esi
call fcn.00511250
push ebx
mov esi, eax
mov edi, edx
call fcn.00511250
mov ecx, eax
mov dword [ebp - 0x6c], edx
mov eax, esi
mov dword [ebp - 0x70], ecx
add esp, 8
or eax, edi
je 0x50a5fb
mov eax, esi
and eax, edi
cmp eax, 0xffffffff
jne 0x50a693
mov esi, 1
xor edi, edi
push edi
push esi
push edx
push ecx
call fcn.00533660
mov ecx, eax
call fcn.00533c40
sub esp, 8
movsd qword [esp], xmm0
call fcn.004f7fb0
add esp, 8
test eax, eax
jne 0x50a5fb
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 0x509b65
mov eax, dword [esi + 4]
test eax, eax
je 0x509d8f
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
push 0
push 0
lea eax, [ecx + eax*8]
push eax
call fcn.00512490
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov ecx, 4
add esi, 0x14
jmp 0x509b65
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 0x50a76a
push edx
call fcn.005124d0
mov esi, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
push ecx
call fcn.00511250
mov edi, eax
mov esi, edx
push ebx
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xf4], esi
call fcn.00511250
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 4]
mov cl, byte [eax]
cmp cl, 0x65
jne 0x50a79b
and edi, ebx
and esi, edx
jmp 0x50a7fe
cmp cl, 0x66
jne 0x50a7a6
or edi, ebx
or esi, edx
jmp 0x50a7fe
mov eax, ebx
or eax, edx
je 0x50a7fe
test edx, edx
jg 0x50a7da
jl 0x50a7b6
test ebx, ebx
jae 0x50a7cf
mov al, 0xcf
sub al, cl
mov cl, al
cmp edx, 0xffffffff
jl 0x50a7da
jg 0x50a7c8
cmp ebx, 0xffffffc0
jbe 0x50a7da
neg ebx
adc edx, 0
neg edx
test edx, edx
jl 0x50a830
jg 0x50a7da
cmp ebx, 0x40
jb 0x50a830
test esi, esi
jg 0x50a7f0
jl 0x50a7e4
test edi, edi
jae 0x50a7f0
cmp cl, 0x67
je 0x50a7f0
or edi, 0xffffffff
or esi, edi
jmp 0x50a7fe
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 0x509b65
movq xmm1, qword [ebp - 0xf8]
movd xmm0, ebx
cmp cl, 0x67
jne 0x50a84c
psllq xmm1, xmm0
movq qword [ebp - 0x30], xmm1
jmp 0x50a7f8
psrlq xmm1, xmm0
movq qword [ebp - 0x30], xmm1
test esi, esi
jg 0x50a7f8
jl 0x50a85f
test edi, edi
jae 0x50a7f8
mov ecx, 0x40
or eax, 0xffffffff
sub ecx, ebx
or edx, 0xffffffff
call fcn.00533720
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
or edi, eax
or esi, edx
jmp 0x50a7fe
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.00512170
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 0x509b65
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 0x50a909
test al, 8
jne 0x50a8df
test al, 2
je 0x50a8e8
push 1
push esi
call fcn.004bf3c0
add esp, 8
jmp 0x50a8e8
push esi
call fcn.005112a0
add esp, 4
movzx eax, word [esi + 8]
mov ecx, eax
test al, 4
jne 0x50a909
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x509bb3
mov eax, 0x14
jmp 0x50bd77
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 0x509b65
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 0x509d8a
push eax
call fcn.00512390
mov eax, dword [ebp - 0x10]
add esp, 4
mov ecx, 4
add esi, 0x14
jmp 0x509b65
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 0x50a984
push esi
call fcn.00511eb0
add esp, 4
test eax, eax
jne 0x50bd77
mov eax, dword [ebp - 4]
push dword [ebp - 0x4c]
movzx eax, byte [eax + 8]
push eax
push esi
call fcn.00511d20
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
je 0x509d87
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
jmp 0x50bd80
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 0x50aa79
mov edi, dword [ebp - 4]
movzx eax, word [edi + 2]
test al, al
jns 0x50aa1b
mov al, cl
and al, byte [ebp - 0x38]
test al, 1
je 0x50aa0a
test ecx, 0x100
jne 0x50aa0a
xor ecx, ecx
jmp 0x50ab92
not ecx
and ecx, 1
lea ecx, [ecx*2 - 1]
jmp 0x50ab92
test al, 0x20
je 0x50aa5b
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 0x509b65
test al, 0x10
jne 0x509bb3
mov edi, dword [ebp - 8]
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov eax, dword [ebp - 4]
mov al, byte [eax + 2]
and al, 0x47
cmp al, 0x43
jb 0x50ab13
mov ecx, edi
test dl, 2
je 0x50aac7
mov al, byte [ebp - 0x38]
and al, 0x2e
cmp al, 2
jne 0x50aaab
push 0
push ebx
call fcn.004bf3c0
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 0x50aac7
push 0
push esi
call fcn.004bf3c0
movzx ecx, word [esi + 8]
add esp, 8
and cl, byte [ebx + 8]
test cl, 4
je 0x50ab80
mov edi, dword [esi + 4]
mov edx, dword [ebx + 4]
mov ecx, dword [esi]
mov eax, dword [ebx]
cmp edi, edx
jl 0x50aafe
jg 0x50aae7
cmp ecx, eax
jbe 0x50aaf4
mov edi, dword [ebp - 4]
mov ecx, 1
jmp 0x50ab92
cmp edi, edx
jg 0x50ab09
jl 0x50aafe
cmp ecx, eax
jae 0x50ab09
mov edi, dword [ebp - 4]
or ecx, 0xffffffff
jmp 0x50ab92
mov edi, dword [ebp - 4]
xor ecx, ecx
jmp 0x50ab92
cmp al, 0x42
jne 0x50ab80
mov al, byte [ebp - 0x38]
mov edi, dword [ebp - 0x4c]
test al, 2
jne 0x50ab55
test al, 0x2c
je 0x50ab55
push 1
push edi
push ebx
call fcn.005128d0
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 0x50ab55
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 0x50ab80
test al, 0x2c
je 0x50ab80
push 1
push edi
push esi
call fcn.005128d0
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.004f9c20
add esp, 0xc
mov ecx, eax
movzx eax, byte [edi]
test ecx, ecx
jns 0x50aba1
mov al, byte [eax + 0x5848ac]
jmp 0x50abb1
jne 0x50abab
mov al, byte [eax + 0x5848b4]
jmp 0x50abb1
mov al, byte [eax + 0x5848bc]
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 0x50ac22
mov dword [ebp - 0x68], ecx
test al, 8
je 0x50abe3
xor eax, eax
cmp byte [edi], 0x35
sete al
cmp eax, edx
je 0x509f7e
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 0x509b65
test edx, edx
jne 0x509bb3
mov edi, dword [ebp - 8]
lea ecx, [edx + 4]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
cmp dword [ebp - 0x68], 0
jne 0x509bb3
add esi, 0x14
jmp 0x509b65
mov ebx, dword [ebp - 4]
test byte [ebx + 2], 1
jne 0x50ac5d
xor eax, eax
jmp 0x50ac63
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 0x509d87
lea ebx, [edx + 0x14]
nop
test eax, eax
je 0x50ac99
mov edi, dword [eax + esi*4]
jmp 0x50ac9b
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.004f9c20
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x68], ecx
test ecx, ecx
jne 0x50acfb
mov eax, dword [ebp - 0x34]
inc esi
mov edx, dword [ebp - 0x60]
add ebx, 4
cmp esi, dword [ebp - 0x3c]
jl 0x50ac90
mov edi, dword [ebp - 8]
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0x10]
test byte [esi + eax], 2
je 0x50ad2d
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 0x50ad28
mov eax, dword [ebp - 0x50]
add eax, edi
lea eax, [eax + eax*4]
test byte [ebx + eax*8 + 8], 1
je 0x50ad2d
neg ecx
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 0x54], 0
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
je 0x509d8a
mov eax, dword [ebp - 0x10]
neg ecx
mov dword [ebp - 0x68], ecx
mov ecx, 4
add esi, 0x14
jmp 0x509b65
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 4]
test eax, eax
jns 0x50ad76
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 0x509b65
jne 0x50ad92
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 0x509b65
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 0x509b65
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.005092c0
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.005092c0
mov ecx, dword [ebp - 4]
add esp, 0x10
lea eax, [eax + esi*2]
cmp byte [ecx], 0x2c
jne 0x50adf0
mov dl, byte [esi + eax + 0x5848f8]
jmp 0x50adf7
mov dl, byte [esi + eax + 0x584904]
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 0x50ae2f
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 0x509b65
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 0x509b65
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.005092c0
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.00512490
mov esi, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
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 0x50aee7
push 0
push ecx
call fcn.005092c0
neg eax
push 0
sbb eax, eax
inc eax
push eax
push esi
call fcn.00512490
mov esi, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
push esi
call fcn.005124d0
mov esi, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
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.005124d0
add esp, 4
test byte [edi + 8], 1
jne 0x509f7e
mov eax, 4
push edi
mov word [esi + 8], ax
call fcn.00511250
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 0x509b65
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xc8]
test edi, edi
je 0x50afcc
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 0x509bb3
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 0x509b65
mov ecx, dword [esi + 0x68]
mov edi, dword [ebp - 4]
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 4]
je 0x509bb6
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 0x509b65
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.005092c0
add esp, 8
test eax, eax
jne 0x509bb3
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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.005092c0
add esp, 8
test eax, eax
je 0x509bb3
mov esi, dword [ebp - 4]
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
test byte [ecx + eax*8 + 8], 1
jne 0x509bb3
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
test byte [ecx + eax*8 + 8], 1
je 0x509bb3
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
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 0x509d8a
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.005124d0
add esp, 4
jmp 0x509bb3
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 0x50b175
mov eax, dword [esi + 0x18]
test eax, eax
je 0x50b16d
mov eax, dword [eax + edx*4 + 4]
test eax, eax
jle 0x50b16d
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 0x50b261
cmp byte [esi + 2], 0
je 0x50b1b2
cmp byte [esi], 3
jne 0x50b193
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 0x50b1e6
push esi
call fcn.00510c70
jmp 0x50b183
mov eax, dword [esi + 0x28]
cmp byte [eax], 0
je 0x50b119
push esi
call fcn.004d0f30
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd77
jmp 0x50b120
push ecx
call fcn.005124d0
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 0x509b65
mov esi, dword [esi + 0x28]
push esi
call fcn.004d0100
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.004e6290
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 0x50eb68
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 0x50b205
movzx eax, cl
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov al, 1
jmp 0x50b211
push dword [ebp - 0x24]
push eax
call fcn.004f5e80
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 0x50b254
mov dword [edi], 0
mov edi, eax
mov dword [esi + 0x4c], 0
mov eax, dword [edi]
cmp eax, 0x18003
ja 0x50b3fd
mov dword [ebp - 0x28], edx
cmp eax, dword [esi + 0x50]
jbe 0x50b267
jmp 0x50b3fd
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x54], eax
xor eax, eax
jmp 0x50b2e6
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 0x50b491
mov ecx, dword [esi + 0x30]
mov ebx, dword [edi]
cmp ecx, ebx
jae 0x50b42d
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x50b2de
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.00511fa0
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd74
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 0x50b2e6
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 0x50b335
movzx eax, byte [ebx + 0x584810]
mov ecx, 1
cdq
jmp 0x50b352
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.004f5e80
mov ebx, dword [ebp - 0x7c]
push ebx
movzx ecx, al
mov dword [edi], ebx
call fcn.00513d00
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 0x50b37f
cmp esi, dword [ebp - 0x20]
jb 0x50b310
mov edi, dword [ebp - 0x20]
jmp 0x50b386
mov edi, dword [ebp - 0x20]
cmp esi, edi
jb 0x50b398
cmp esi, edi
mov edi, dword [ebp - 0x38]
ja 0x50b3a6
cmp eax, dword [edi + 0x50]
jne 0x50b3a6
test edx, edx
jne 0x50b3a6
jmp 0x50b39b
mov edi, dword [ebp - 0x38]
test edx, edx
jb 0x50b3b3
ja 0x50b3a6
cmp eax, dword [edi + 0x50]
jbe 0x50b3b3
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
jne 0x50b3e8
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 0x50b3e0
lea eax, [ebp - 0x268]
push eax
call fcn.00512400
mov eax, dword [ebp - 0x28]
add esp, 4
movzx eax, word [eax]
mov edi, dword [ebp - 0x24]
movzx eax, ax
jmp 0x50b434
cmp dword [edi + 0x4c], 0
jne 0x50b3fd
lea eax, [ebp - 0x268]
push eax
call fcn.00512400
add esp, 4
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x50fde4
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 0x509b65
xor ebx, ebx
mov eax, edx
mov dword [ebp - 0x7c], ebx
movzx eax, ax
cmp eax, dword [ebp - 0x50]
jg 0x50b498
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0xf5
jne 0x50b46f
push 0x800
push dword [eax + 0x10]
mov eax, dword [ebp - 0x48]
push eax
call fcn.00512880
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 0x509b65
mov eax, dword [ebp - 0x48]
push eax
call fcn.005124d0
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 0x509b65
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 0x50b4b2
push ecx
call fcn.005124d0
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 0x50b574
mov eax, dword [ebp - 0x24]
mov edi, dword [esi + 0x4c]
add edi, dword [eax + edx*4]
cmp ebx, 0xc
jae 0x50b4f1
push ecx
push ebx
push edi
call fcn.00513a50
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 0x509b65
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 0x50b52c
push 0
push eax
mov edx, 1
push ecx
mov word [ecx + 8], dx
call fcn.00512010
add esp, 0xc
test eax, eax
jne 0x510025
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x10]
jmp 0x50b532
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 + 0x584910]
mov esi, dword [ebp - 4]
mov word [ecx + 8], ax
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov al, byte [ebp - 0x4c]
mov byte [ecx + 0xa], al
mov eax, dword [ebp - 4]
movzx eax, word [eax + 2]
test al, 0xc0
je 0x50b593
cmp ebx, 0xc
jb 0x50b58f
test bl, 1
je 0x50b5a0
test al, al
js 0x50b5a0
push ebx
call fcn.00513d00
add esp, 4
test eax, eax
jne 0x50b5c5
push ecx
push ebx
push 0x583e30
call fcn.00513a50
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 0x509b65
push ecx
push eax
push dword [edi + edx*4]
push dword [esi + 0x28]
call fcn.00511fa0
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd74
mov esi, dword [ebp - 0x48]
push esi
push ebx
push dword [esi + 0x10]
call fcn.00513a50
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 0x509b65
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.004bf350
add esp, 0xc
cmp byte [edi], 0x45
jne 0x50b689
movzx ebx, word [esi + 8]
test bl, 4
je 0x50b689
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add ecx, 0
mov eax, edx
adc eax, 0x8000
cmp eax, 0xffff
ja 0x50b671
jb 0x50b666
cmp ecx, 0xffffffff
ja 0x50b671
and ebx, 0xfffb
or ebx, 0x20
jmp 0x50b685
mov ecx, dword [esi]
call fcn.00533c40
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 0x509f7e
add esi, 0x28
jmp 0x50b623
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 0x50b741
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.004bf350
add esp, 0xc
cmp byte [edi], 0x45
jne 0x50b72a
movzx eax, word [esi]
test al, 4
je 0x50b72a
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 0x50b700
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 0x50b77d
and ebx, 0x4000
neg ebx
sbb ebx, ebx
and ebx, 0xa
inc ecx
mov dword [edx], ebx
jmp 0x50b98c
test bl, 0x24
je 0x50b8f9
mov ecx, dword [edx - 0x18]
mov eax, dword [edx - 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x60], ecx
test ecx, ecx
jg 0x50b7a7
jl 0x50b79c
test eax, eax
jae 0x50b7a7
mov ecx, eax
mov eax, dword [edx - 0x18]
not ecx
not eax
jmp 0x50b7ac
mov ecx, eax
mov eax, dword [edx - 0x18]
inc dword [ebp - 0x28]
test eax, eax
ja 0x50b881
jb 0x50b7be
cmp ecx, 0x7f
ja 0x50b806
mov eax, dword [edx - 0x1c]
and eax, 1
mov dword [ebp - 0x34], 0
cmp eax, dword [edx - 0x1c]
jne 0x50b7eb
mov eax, dword [ebp - 0x34]
cmp eax, dword [edx - 0x18]
jne 0x50b7eb
cmp byte [ebp - 0x41], 4
jb 0x50b7eb
lea eax, [ecx + 8]
mov ecx, dword [ebp - 0x28]
mov dword [edx], eax
jmp 0x50b98f
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 0x50b98f
test eax, eax
ja 0x50b881
jb 0x50b814
cmp ecx, 0x7fff
ja 0x50b82f
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 0x50b98f
test eax, eax
ja 0x50b881
jb 0x50b83d
cmp ecx, 0x7fffff
ja 0x50b858
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 0x50b98f
test eax, eax
ja 0x50b881
jb 0x50b866
cmp ecx, 0x7fffffff
ja 0x50b881
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 0x50b98f
cmp eax, 0x7fff
ja 0x50b8aa
jb 0x50b88f
cmp ecx, 0xffffffff
ja 0x50b8aa
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 0x50b98f
add edi, 8
mov dword [ebp - 0x24], edi
adc esi, 0
mov dword [ebp - 0x38], esi
test bl, 0x20
je 0x50b8ea
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x2c]
call fcn.00533c40
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 0x50b98f
mov ecx, dword [ebp - 0x28]
mov eax, 6
mov dword [edx], eax
jmp 0x50b98f
test bl, 8
je 0x50b913
inc ecx
mov dword [edx], 7
add edi, 8
mov dword [ebp - 0x24], edi
adc esi, 0
mov dword [ebp - 0x38], esi
jmp 0x50b98c
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 0x50b967
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 0x50b95b
push esi
call fcn.00511eb0
add esp, 4
test eax, eax
jne 0x510025
add edi, dword [esi]
mov ecx, dword [ebp - 0x60]
jmp 0x50b964
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.00508d90
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 0x50b99f
sub edx, 0x28
jmp 0x50b75c
cmp ecx, 0x7e
jle 0x50b9cd
mov eax, ecx
cdq
push edx
push eax
call fcn.00508d90
mov esi, eax
mov eax, dword [ebp - 0x28]
add eax, esi
mov dword [ebp - 0x28], eax
cdq
push edx
push eax
call fcn.00508d90
mov ecx, dword [ebp - 0x28]
add esp, 0x10
cmp esi, eax
mov esi, dword [ebp - 0x38]
jge 0x50b9d1
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 0x50ba01
jl 0x50b9f6
cmp ecx, eax
ja 0x50ba01
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x14]
mov dword [edx + 0x10], eax
jmp 0x50ba33
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x6c]
cdq
cmp esi, edx
jg 0x50eb68
jl 0x50ba1a
cmp ecx, eax
ja 0x50eb68
mov eax, edi
push eax
push dword [ebp - 0x20]
call fcn.00511e10
add esp, 8
test eax, eax
jne 0x510025
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 0x50ba54
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 0x50ba6d
mov byte [esi], al
mov eax, 1
jmp 0x50ba7a
push ebx
push dword [ebp - 0x2c]
push esi
call fcn.004ff850
add esp, 0xc
mov edx, dword [ebp - 0x48]
movzx eax, al
add esi, eax
mov ebx, dword [edx + 0x1c]
cmp ebx, 0x80
jae 0x50ba96
mov byte [esi], bl
mov eax, 1
jmp 0x50baa5
push 0
push ebx
push esi
call fcn.004ff850
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 0x50bad7
mov ecx, dword [edx]
mov eax, dword [edx + 4]
movzx edx, byte [ebx + 0x584810]
mov esi, edx
dec edx
mov byte [edi + edx], cl
shrd ecx, eax, 8
shr eax, 8
test edx, edx
jne 0x50bac3
mov edx, dword [ebp - 0x48]
jmp 0x50baf7
cmp ebx, 0xc
jb 0x50baf5
mov esi, dword [edx + 0xc]
test esi, esi
je 0x50baf7
push esi
push dword [edx + 0x10]
push edi
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x48]
add esp, 0xc
jmp 0x50baf7
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 0x50ba82
mov edi, dword [ebp - 8]
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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.004d4080
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
cmp ebx, 0x10
jne 0x50bb6d
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
movlpd qword [ebp - 0x30], xmm0
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
jmp 0x50bc43
test ebx, ebx
jne 0x50bc2f
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
nop
cmp dword [edi + 0x110], 0
jne 0x50bc2f
mov edi, dword [esi + 0x74]
mov cl, byte [edi + 8]
test cl, cl
jne 0x50bb9c
cmp byte [edi + 2], cl
jne 0x50bbd1
movzx eax, word [edi + 0x18]
cdq
add dword [ebp - 0x34], eax
adc ebx, edx
test cl, cl
je 0x50bbd1
nop word [eax + eax]
cmp byte [esi + 0x44], 0
push esi
je 0x50bc1f
call fcn.004d3f40
mov edi, dword [esi + 0x74]
add esp, 4
movzx eax, word [esi + 0x46]
cmp ax, word [edi + 0x18]
jae 0x50bbb0
inc eax
mov word [esi + 0x46], ax
movzx ecx, word [esi + 0x46]
movzx eax, word [edi + 0x18]
cmp ecx, eax
jne 0x50bbea
movzx ecx, byte [edi + 9]
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax + 8]
jmp 0x50bc04
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.004d3e00
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bc2f
mov edi, dword [ebp - 8]
jmp 0x50bb80
call fcn.004d4080
mov esi, dword [ebp - 0x34]
add esp, 4
mov dword [ebp - 0xc], eax
jmp 0x50bc38
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test eax, eax
jne 0x50bd77
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d6510
add esp, 8
mov dword [eax], esi
mov dword [eax + 4], ebx
jmp 0x50d727
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov edi, dword [edx + 0x10]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x50bd34
mov esi, dword [ebp - 8]
cmp dword [esi + 0xb8], eax
jg 0x50fdf9
push edi
call fcn.00505cc0
mov ecx, dword [esi + 0x1e0]
mov ebx, eax
add ecx, dword [esi + 0x1dc]
push ecx
push 0
push esi
call fcn.00515050
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50fe0e
lea eax, [ebx + 0x21]
push 0
push eax
push esi
call fcn.004e9f60
mov esi, eax
add esp, 0xc
test esi, esi
je 0x509f7e
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 0x50bce8
mov byte [edi + 0x4f], 0
mov byte [edi + 0x57], 1
jmp 0x50bcee
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 0x509b65
mov eax, dword [ebp - 8]
xor ebx, ebx
mov esi, dword [eax + 0x1d4]
test esi, esi
je 0x50bd5e
push edi
push dword [esi]
call fcn.00505c60
add esp, 8
test eax, eax
je 0x50bdeb
mov esi, dword [esi + 0x18]
inc ebx
test esi, esi
jne 0x50bd43
push edi
push str.no_such_savepoint:__s
push dword [ebp + 8]
call fcn.00509a60
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 0x5102e2
cmp eax, 0xc0a
je 0x5102e2
mov ecx, str.unknown_error
sub eax, 0x64
je 0x5102c6
sub eax, 1
je 0x5102bf
sub eax, 0x19f
je 0x5102b8
mov eax, dword [ebp - 0xc]
movzx eax, al
cmp eax, 0x1d
jae 0x5102cb
mov eax, dword [eax*4 + 0x588030]
test eax, eax
je 0x5102cb
mov ecx, eax
jmp 0x5102cb
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0x48]
cmp dword [edx + 0xb8], 0
jle 0x50be03
cmp edi, 1
je 0x50fe15
cmp dword [esi + 0x18], 0
jne 0x50be71
cmp byte [edx + 0x57], 0
je 0x50be71
mov dword [ebp - 0x60], 1
cmp edi, 1
jne 0x50be78
push edi
push dword [ebp + 8]
call fcn.00509500
mov ecx, eax
add esp, 8
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x5103bb
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov byte [eax + 0x4f], 1
call fcn.00510f00
add esp, 4
cmp eax, 5
je 0x50fe2f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x50be68
mov byte [edx + 0x4f], 0
jmp 0x50bf54
mov byte [edx + 0x57], 0
jmp 0x50bf5c
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 0x50bee1
mov edx, dword [edx + 0x18]
xor ebx, ebx
and edx, 1
mov dword [ebp - 0x34], edx
test eax, eax
jle 0x50bee6
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.004e69e0
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd74
mov eax, dword [ebp - 8]
inc ebx
mov ecx, dword [ebp - 0x2c]
add edi, 0x10
mov eax, dword [eax + 0x14]
cmp ebx, eax
jl 0x50bea5
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x34]
jmp 0x50bee6
xor edx, edx
mov dword [ebp - 0x34], edx
xor ebx, ebx
test eax, eax
jle 0x50bf25
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.004e64b0
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd74
mov edx, dword [ebp - 8]
inc ebx
mov ecx, dword [ebp - 0x20]
add edi, 0x10
cmp ebx, dword [edx + 0x14]
jl 0x50bef0
mov edx, dword [ebp - 0x34]
jmp 0x50bf28
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x50bf4b
mov ebx, dword [ebp - 8]
push 0
push ebx
call fcn.004ebd10
push ebx
call fcn.005003f0
mov eax, dword [ebp - 0xc]
mov edx, ebx
add esp, 0xc
or dword [edx + 0x18], 1
jmp 0x50bf4e
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x20]
test eax, eax
jne 0x50bd74
mov ecx, dword [edx + 0x1d4]
cmp ecx, esi
je 0x50bf99
mov edi, dword [ebp - 8]
nop dword [eax]
mov eax, dword [ecx + 0x18]
push ecx
push edi
mov dword [edi + 0x1d4], eax
call fcn.004e9ef0
mov ecx, dword [edi + 0x1d4]
add esp, 8
dec dword [edi + 0x1dc]
cmp ecx, esi
jne 0x50bf70
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 8]
cmp edi, 1
jne 0x50bfc6
mov eax, dword [esi + 0x18]
push esi
push edx
mov dword [edx + 0x1d4], eax
call fcn.004e9ef0
add esp, 8
cmp dword [ebp - 0x60], 0
jne 0x509f7e
mov eax, dword [ebp - 8]
dec dword [eax + 0x1dc]
jmp 0x50bff9
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 0x50bff9
cmp edi, 2
jne 0x509f7e
push ebx
push edi
mov edi, dword [ebp - 8]
push edi
call fcn.00515050
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov edx, dword [ebp - 4]
mov dword [ebp - 0x8c], 0
mov edx, dword [edx + 8]
test edx, edx
je 0x50c048
mov eax, dword [edi + 0x20]
and eax, 0x100000
or eax, 0
jne 0x50fe67
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 0x50c15e
lea eax, [ebp - 0x8c]
push eax
push edx
push esi
call fcn.004e3d00
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50fe71
mov edx, dword [ebp + 8]
test byte [edx + 0x98], 0x80
je 0x50c164
mov ebx, dword [ebp - 4]
cmp dword [ebx + 8], eax
je 0x50c164
cmp byte [edi + 0x4f], al
je 0x50c0a9
cmp dword [edi + 0xb4], 1
jle 0x50c164
mov eax, dword [edx + 0x30]
test eax, eax
jne 0x50c0c5
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.00515050
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50c135
cmp byte [esi + 9], 0
mov eax, dword [ebp + 8]
mov ebx, dword [esi + 4]
mov edi, dword [eax + 0x30]
je 0x50c0fa
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x50c0fa
push esi
call fcn.004c2580
add esp, 4
mov eax, dword [ebx]
cmp edi, dword [eax + 0x60]
jle 0x50c116
cmp byte [eax + 6], 0
je 0x50c116
push edi
push eax
call fcn.004d6f30
add esp, 8
mov dword [ebp - 0xc], eax
jmp 0x50c11d
mov dword [ebp - 0xc], 0
cmp byte [esi + 9], 0
je 0x50c132
add dword [esi + 0xc], 0xffffffff
jne 0x50c132
push esi
call fcn.0051e740
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 0x50c161
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
cmp word [esi + 2], 0
je 0x50c19a
mov eax, dword [ebp - 0x8c]
cmp eax, dword [esi + 0xc]
jne 0x50fea6
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 0x50fea6
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x50bd77
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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.004e4c70
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d6510
mov ecx, eax
add esp, 0x14
mov eax, dword [ebp - 0xe4]
jmp 0x509d81
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.004e6b40
mov edx, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 8]
cmp eax, 1
jne 0x50c222
mov ecx, dword [esi + 0xc]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
or dword [edi + 0x18], 1
jmp 0x50c230
cmp eax, 2
jne 0x50c230
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 0x50c24e
push 0
push edi
call fcn.004ebd10
mov edx, dword [ebp + 8]
add esp, 8
and dword [edx + 0x98], 0xfffffffc
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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.0x509b7d.96
mov eax, dword [esi + 0x34]
cmp eax, dword [ebx + 8]
je 0x50c383
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x98]
and al, 3
cmp al, 1
je 0x50ff2a
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 0x50c2ef
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 0x50c2f1
mov byte [esi + 0x93], al
jmp 0x50c2f1
xor edi, edi
test byte [edx + 2], 0x10
je 0x50c311
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + ebx*4]
lea esi, [ecx + eax*8]
push esi
call fcn.00512170
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 0x50c324
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x34], eax
movzx eax, word [eax + 8]
jmp 0x50c330
cmp al, 0xfd
jne 0x50c32d
mov eax, dword [edx + 0x10]
jmp 0x50c330
mov eax, dword [ebp - 0x3c]
push 0
push ecx
push eax
push dword [edx + 4]
push dword [ebp + 8]
call fcn.004be410
mov esi, eax
add esp, 0x14
test esi, esi
je 0x510025
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.004e47b0
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 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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.004be410
mov edi, eax
add esp, 0x14
test edi, edi
je 0x5102a6
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.004e47b0
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 0x509b65
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 0x50c474
mov eax, dword [esi + 0xc]
test eax, eax
je 0x50c474
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.004e4020
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x50c561
push 0
push 0xffffffffffffffff
push dword [edx + 8]
push ecx
push dword [ebp + 8]
call fcn.004be410
mov esi, eax
add esp, 0x14
test esi, esi
je 0x510028
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.004e5be0
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50c53e
push eax
push 1
push dword [edi]
call fcn.004e3d00
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50c53e
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 0x50c51e
movzx eax, word [ecx + 2]
or eax, 2
push eax
push ebx
push dword [edi]
call fcn.004e4760
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50c518
push dword [esi + 0x28]
push dword [ebp - 0x2c]
push 4
push dword [ebx]
push dword [edi]
call fcn.004e47b0
add esp, 0x14
mov dword [ebp - 0xc], eax
mov byte [esi + 4], 0
jmp 0x50c53e
push dword [esi + 0x28]
mov dword [ebx], 1
push 0
push 4
push 1
push dword [edi]
call fcn.004e47b0
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 0x50bd77
mov byte [esi + 2], 1
lea ecx, [eax + 4]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov edx, dword [ebp - 4]
push 1
push 0xffffffffffffffff
push dword [edx + 8]
push dword [edx + 4]
push dword [ebp + 8]
call fcn.004be410
add esp, 0x14
test eax, eax
je 0x510028
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.00513e80
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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 0x509bb3
mov edi, dword [ebp - 8]
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov edx, dword [ebp - 4]
push 3
push 0xffffffffffffffff
push dword [edx + 0xc]
push dword [edx + 4]
push dword [ebp + 8]
call fcn.004be410
add esp, 0x14
test eax, eax
je 0x510028
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], 0x5bad83
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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.00510d80
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 0x509b65
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 0x50c7a6
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 0x50c6ea
push 0
push edi
call fcn.004bf3c0
add esp, 8
push edi
call fcn.00511250
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 0x50c76d
test cl, 8
jne 0x50c73f
test cl, 1
jne 0x509bb3
cmp ebx, 0x18
jae 0x509bb3
lea eax, [ebp - 0x58]
push eax
push dword [esi + 0x28]
call fcn.004e55b0
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd74
jmp 0x50c8c6
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
call fcn.00533c40
movsd xmm1, qword [edi]
comisd xmm0, xmm1
jbe 0x50c761
test bl, 1
lea eax, [ebx - 1]
cmove eax, ebx
mov ebx, eax
jmp 0x50c76d
comisd xmm1, xmm0
jbe 0x50c76d
test bl, 1
jne 0x50c76d
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.004e5640
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 0x50bd77
jmp 0x50c838
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.004e5640
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd77
cmp byte [ebp - 0x41], al
je 0x50c838
cmp byte [ebp - 0xfa], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
je 0x50c8c6
mov eax, dword [ebp - 0x58]
cmp ebx, 0x18
jl 0x50c8ae
test eax, eax
js 0x50c877
jne 0x50c84b
cmp ebx, 0x19
je 0x50c877
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 0x509b65
push 0
push dword [esi + 0x28]
mov dword [ebp - 0x58], 0
call fcn.004e5b80
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x50c852
cmp eax, 0x65
jne 0x50bd77
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x58], 1
jmp 0x509bb3
test eax, eax
jg 0x50c8d2
jne 0x50c8b9
cmp ebx, 0x16
je 0x50c8d2
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 0x509bb3
jmp 0x50c852
push 0
push dword [esi + 0x28]
mov dword [ebp - 0x58], 0
call fcn.004e62d0
jmp 0x50c888
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 0x509b65
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov eax, dword [edx + 0x60]
cmp dword [eax + ecx*4], 0
je 0x50f854
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
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 0x509d8a
jmp 0x50c955
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 0x50c994
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 0x50c9dc
mov eax, 0x4000
test word [esi + 8], ax
je 0x50c9b0
push esi
call fcn.00511eb0
add esp, 4
test eax, eax
jne 0x510028
push dword [ebx + 0x2c]
call fcn.00509210
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x510025
push edi
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [ebx + 0x2c]
call fcn.00513860
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 0x50ca16
movzx edx, word [edi + 8]
xor ecx, ecx
test edx, edx
je 0x50ca16
mov eax, dword [edi + 4]
add eax, 8
nop
test byte [eax], 1
jne 0x50ca0f
inc ecx
add eax, 0x28
cmp ecx, edx
jl 0x50ca00
jmp 0x50ca16
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.004e5640
mov edi, dword [ebp - 8]
add esp, 0x18
mov dword [ebp - 0xc], eax
test esi, esi
je 0x50ca46
push esi
push edi
call fcn.004e9ef0
mov eax, dword [ebp - 0xc]
add esp, 8
test eax, eax
jne 0x50bd77
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 0x50ca91
test ecx, ecx
jne 0x509bb3
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
cmp dword [ebp - 0x3c], 0
jne 0x509bb3
test ecx, ecx
je 0x509bb3
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
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 0x50cb44
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 0x50cb30
test al, 8
jne 0x50cb13
test al, 2
je 0x50cb28
lea eax, [ebp - 0x1d8]
push 1
push eax
call fcn.004bf3c0
add esp, 8
jmp 0x50cb22
lea eax, [ebp - 0x1d8]
push eax
call fcn.005112a0
add esp, 4
mov al, byte [ebp - 0x1d0]
test al, 4
je 0x509bb6
mov edi, dword [ebp - 0x1d8]
mov ebx, dword [ebp - 0x1d4]
jmp 0x50cb51
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.004e5640
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 0x50ea8a
mov edi, dword [ebp - 4]
cmp dword [edi + 8], 0
jne 0x509bb6
push 0x15dab
call fcn.004e8980
add esp, 4
mov dword [ebp - 0xc], eax
jmp 0x50ea8d
mov ebx, dword [ebp - 4]
mov esi, dword [ebp + 8]
push ebx
push esi
call fcn.004d6510
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 0x509b65
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.004d6510
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 0x50ccb3
lea eax, [ebp - 0x80]
push eax
push dword [ebx + 0x28]
call fcn.004e55b0
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd77
cmp dword [ebp - 0x80], eax
je 0x50cc78
mov edi, 1
xor esi, esi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], esi
jmp 0x50ccb9
mov esi, dword [ebx + 0x28]
push esi
call fcn.004d0100
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 0x50cca5
jg 0x50cc9f
cmp edi, 0xffffffff
jb 0x50cca5
or dword [ebx + 8], 2
jmp 0x50ccb9
add edi, 1
mov dword [ebp - 0x78], edi
adc esi, 0
mov dword [ebp - 0x74], esi
jmp 0x50ccb9
mov esi, dword [ebp - 0x74]
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x50cd3e
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc8]
test edx, edx
je 0x50cceb
mov eax, dword [edx + 4]
test eax, eax
je 0x50cce0
mov edx, eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x50ccd7
mov eax, dword [edx + 0x10]
lea ecx, [ecx + ecx*4]
lea ebx, [eax + ecx*8]
jmp 0x50ccf4
lea eax, [ecx + ecx*4]
mov ecx, dword [ebp - 0x1c]
lea ebx, [ecx + eax*8]
push ebx
call fcn.00512170
mov eax, dword [ebx]
add esp, 4
mov ecx, dword [ebx + 4]
cmp eax, 0xffffffff
jne 0x50cd13
cmp ecx, 0x7fffffff
je 0x50cd97
mov edx, dword [ebp - 0x20]
test byte [edx + 8], 2
jne 0x50cd97
add eax, 1
adc ecx, 0
cmp esi, ecx
jg 0x50cd36
jl 0x50cd2c
cmp edi, eax
jae 0x50cd36
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 0x50cda4
xor ebx, ebx
lea eax, [ebp - 0x78]
push eax
push 8
call fcn.004af670
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.004e5640
add esp, 0x20
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd74
cmp dword [ebp - 0x80], eax
jne 0x50cda1
inc ebx
cmp ebx, 0x64
jl 0x50cd46
mov eax, 0xd
jmp 0x50bd74
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 0x509b65
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 0x50ce2d
mov eax, dword [ebp - 8]
cmp dword [eax + 0xf0], 0
je 0x50ce2d
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 0x50ce32
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
movzx eax, word [edx + 2]
mov edx, eax
test al, 1
je 0x50ce49
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 0x50ce67
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 0x50ce88
mov edx, dword [esi + 0x20]
jmp 0x50ce8a
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov esi, 0x4000
test word [eax + edi*8 + 8], si
mov esi, dword [ebp - 0x60]
je 0x50cea7
mov eax, dword [eax + edi*8]
mov dword [ebp - 0x190], eax
jmp 0x50ceb1
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.004e4cd0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov byte [esi + 3], 0
mov dword [esi + 0x1c], 0
test eax, eax
jne 0x50bd74
mov edi, dword [ebp - 8]
test ebx, ebx
je 0x509d87
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 0x509b65
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 0x50cfa2
mov eax, dword [ebp - 8]
cmp dword [eax + 0xf0], 0
je 0x50cfa2
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 0x50cfa6
cmp byte [edi + 4], 0
je 0x50cfa6
mov esi, dword [edi + 0x28]
push esi
call fcn.004d0100
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 0x50cfa6
xor esi, esi
xor ebx, ebx
movzx eax, byte [edx + 2]
push eax
push dword [edi + 0x28]
call fcn.004e4820
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
test eax, eax
jne 0x50bd74
test byte [ebp - 0x3c], 1
je 0x509f7e
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
inc dword [edx + 0x2c]
mov eax, dword [eax + 0xf0]
test eax, eax
je 0x509f7e
test byte [ebx + 0x24], 0x80
jne 0x509f7e
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 0x509b65
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 0x509b65
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 0x50d08a
push ebx
call fcn.00509210
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [edi + 0x20], eax
test eax, eax
je 0x50d175
mov word [eax + 8], si
lea eax, [ebp - 0xec]
push eax
push edi
call fcn.00522810
mov edi, dword [ebp - 0x3c]
push edi
push eax
push dword [ebp - 0xec]
push ebx
call fcn.00513860
add esp, 0x18
xor ecx, ecx
test esi, esi
jle 0x50d0c8
mov eax, dword [edi + 4]
add eax, 8
test byte [eax], 1
jne 0x50eff9
inc ecx
add eax, 0x28
cmp ecx, esi
jl 0x50d0b7
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.00513110
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x509bb3
mov edi, dword [ebp - 8]
lea ecx, [eax + 4]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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 0x50d158
cmp byte [eax + 0x39], 0
je 0x50d137
mov eax, dword [eax + 0x10]
mov ebx, dword [eax + 0x20]
lea edi, [eax + 0x14]
jmp 0x50d15e
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 0x50d15e
mov edi, dword [eax + 0x24]
lea ebx, [edi + 8]
mov edi, dword [edi]
cmp dword [esi + 0x18], edi
jge 0x50d17f
push 0
push edi
push esi
call fcn.00512010
add esp, 0xc
test eax, eax
je 0x50d18a
mov eax, 7
jmp 0x50bd74
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 0x509b65
mov edi, dword [ebp - 4]
push edi
push dword [ebp + 8]
call fcn.004d6510
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.004d0100
mov edx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [edi + 0x2c]
cmp eax, dword [edx + 0x6c]
ja 0x50eb68
push esi
push eax
push 0
push edi
call fcn.00511fa0
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd74
mov edi, dword [ebp - 4]
cmp dword [edi + 0xc], eax
jne 0x509f7e
mov eax, 0x1000
test word [esi + 8], ax
je 0x509f7e
push esi
call fcn.005121f0
mov edi, dword [ebp - 8]
add esp, 4
test eax, eax
jne 0x510028
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
push dword [ebp - 4]
mov esi, dword [ebp + 8]
push esi
call fcn.004d6510
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 0x50d2ae
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 0x509b65
cmp byte [esi + 3], 0
je 0x50d2e7
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 0x509b65
cmp byte [esi], 2
jne 0x50d341
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.00514e40
mov eax, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
jne 0x50bd74
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 0x509b65
push esi
call fcn.00509830
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd74
cmp byte [esi + 2], al
je 0x50d377
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 0x509b65
mov esi, dword [esi + 0x28]
push esi
call fcn.004d0100
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 0x509b65
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 0x509d87
mov esi, dword [esi + 0x28]
push dword [esi + 0x10]
call fcn.004af550
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 0x509b65
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 0x50d42f
mov dword [esi + 0x20], 0xffffffff
cmp byte [eax], 0
je 0x509d87
lea ecx, [ebp - 0xc4]
push ecx
push eax
call fcn.004e55b0
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 0x50fff4
mov esi, dword [ebp - 4]
cmp dword [esi + 8], 0
jle 0x509d8a
test eax, eax
jne 0x509bb3
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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.004e4bc0
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd77
cmp dword [ebp - 0xc8], eax
jne 0x509bb3
cmp byte [esi], al
jne 0x509d87
mov eax, dword [esi + 0x74]
cmp byte [eax + 8], 0
je 0x509d87
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 0x50d513
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.00533620
inc bl
mov esi, eax
mov eax, dword [ebp - 0x3c]
mov edi, edx
movzx ecx, bl
cmp ecx, dword [ebp - 0x2c]
jl 0x50d4f0
test edi, edi
jl 0x509f7e
jg 0x50d525
test esi, esi
jb 0x509f7e
push edi
push esi
call fcn.004f9650
mov edi, dword [ebp - 4]
add esp, 8
cwde
cmp eax, dword [edi + 0xc]
jge 0x509f7e
mov dword [ebp - 0xc8], 1
jmp 0x509bb6
mov eax, dword [ebp + 8]
inc dword [eax + 0xac]
jmp 0x50d559
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 0x50d5cb
cmp byte [esi + 0x38], 0
mov dword [ebp - 0xc], 0
jne 0x50d5a1
cmp dword [esi + 0x24], 0
lea eax, [esi + 0x24]
je 0x50d5ef
push eax
lea eax, [esi + 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 0x84], ebx
call fcn.00522a90
jmp 0x50d5e9
push esi
call fcn.005220d0
push eax
push esi
call fcn.005221f0
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50d5ef
push esi
call fcn.00522870
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x84], ebx
jmp 0x50d5ec
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.004e4bc0
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 0x50bd74
mov byte [edi + 2], bl
test ebx, ebx
jne 0x509bb3
mov edi, dword [ebp - 8]
lea ecx, [eax + 4]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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 0x50d692
cmp byte [esi + 0x39], 0
je 0x50d660
push dword [esi + 0x10]
call fcn.00521350
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50d6e8
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x18], 0
jne 0x50d6c3
mov eax, 0x65
jmp 0x50d6e5
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0
push eax
push dword [esi + 0x14]
call fcn.00520da0
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50d6e8
cmp dword [ebp - 0x9c], eax
je 0x50d6e8
mov eax, 0x65
jmp 0x50d6e5
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 0x50d6b4
push ecx
push dword [ebp - 8]
call fcn.00522790
add esp, 8
xor ecx, ecx
mov eax, 0x65
cmp dword [esi + 0x24], ecx
cmovne eax, ecx
jmp 0x50d6e5
mov eax, dword [ebp - 0xc]
jmp 0x50d6e8
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 0x50d712
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 0x50f854
cmp eax, 0x65
jne 0x50bd74
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 0x51026b
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
cmp esi, ebx
jb 0x509d87
nop word [eax + eax]
mov eax, dword [edi + 0x158]
test eax, eax
je 0x509d87
add ebx, dword [edi + 0x160]
push dword [edi + 0x15c]
mov dword [ebp - 0x14], ebx
call eax
add esp, 4
test eax, eax
jne 0x5103f6
cmp esi, ebx
jae 0x50d750
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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 0x50d7b6
inc dword [edx + 0x2c]
mov eax, 0x4000
test word [esi + 8], ax
je 0x50d7d5
push esi
call fcn.00511eb0
add esp, 4
test eax, eax
jne 0x50bd74
mov ecx, dword [ebp - 4]
cmp byte [ecx], 0x82
jne 0x50d7e6
push esi
push edi
call fcn.00514490
add esp, 8
jmp 0x50d846
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 0x50d826
mov ecx, dword [edi + 0x20]
jmp 0x50d828
xor ecx, ecx
push ecx
and eax, 0xa
push eax
lea eax, [ebp - 0x2b8]
push eax
push dword [edi + 0x28]
call fcn.004e4cd0
add esp, 0x10
mov dword [edi + 0x1c], 0
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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.004e5640
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd74
cmp dword [ebp - 0xf0], eax
jne 0x50d8ea
push 4
push edi
call fcn.004e4820
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd74
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 0x509b65
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.00509830
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd77
cmp byte [ebx + 2], al
jne 0x50dafe
mov edi, dword [ebx + 0x28]
push edi
call fcn.004d0100
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 0x50d984
xor edx, edx
mov ecx, eax
test eax, eax
cmovs ecx, edx
cmp esi, ecx
ja 0x50d9a2
mov eax, 0x1010
mov dword [ebp - 0x140], ebx
mov word [ebp - 0x148], ax
mov dword [ebp - 0x144], esi
jmp 0x50d9c9
lea eax, [ebp - 0x150]
push eax
push esi
push 0
push edi
call fcn.00520870
add esp, 0x10
test eax, eax
jne 0x50bd74
mov ebx, dword [ebp - 0x140]
mov esi, dword [ebp - 0x144]
mov al, byte [ebx]
cmp al, 0x80
jae 0x50d9da
movzx edi, al
mov dword [ebp - 0xa0], edi
jmp 0x50d9f0
lea eax, [ebp - 0xa0]
push eax
push ebx
call fcn.004f5e80
mov edi, dword [ebp - 0xa0]
add esp, 8
cmp edi, 3
jb 0x50ff34
cmp edi, esi
ja 0x50ff34
lea eax, [ebx - 1]
add eax, edi
mov cl, byte [eax]
cmp cl, 0x80
jae 0x50da18
movzx ecx, cl
mov dword [ebp - 0xa4], ecx
jmp 0x50da2e
lea ecx, [ebp - 0xa4]
push ecx
push eax
call fcn.004f5e80
mov ecx, dword [ebp - 0xa4]
add esp, 8
lea eax, [ecx - 1]
cmp eax, 8
ja 0x50ff34
cmp ecx, 7
je 0x50ff34
movzx edx, byte [ecx + 0x584810]
lea eax, [edx + edi]
cmp esi, eax
jb 0x50ff34
lea eax, [ebp - 0x2e0]
sub esi, edx
push eax
push ecx
add esi, ebx
push esi
call fcn.00513a50
lea eax, [ebp - 0x150]
push eax
call fcn.00512400
mov edi, dword [ebp - 4]
add esp, 0x10
mov dword [ebp - 0xc], 0
cmp byte [edi], 0x85
jne 0x50dacb
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 0x509b65
push edi
push dword [ebp + 8]
call fcn.004d6510
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 0x509b65
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.005124d0
mov esi, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
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 0x509d8a
push eax
call fcn.00510c70
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd77
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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.004d0100
mov edx, dword [edi + 0x2c]
xor eax, eax
add esp, 4
mov ecx, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x50dc4d
jb 0x50dbce
cmp ecx, 0x7ffffffe
ja 0x50dc4d
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.00511fa0
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x50dc74
push eax
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x1f0]
push dword [ebp - 0x1f4]
call fcn.00513110
add esp, 0x10
mov esi, eax
test dword [ebp - 0x1f8], 0x2400
jne 0x50dc35
cmp dword [ebp - 0x1e8], 0
je 0x50dc44
lea eax, [ebp - 0x200]
push eax
call fcn.005207e0
add esp, 4
mov dword [ebp - 0xc], 0
jmp 0x50dc74
push 0x58dd34
push 0x14157
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
xor esi, esi
call fcn.004b8510
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 0x50bd74
lea eax, [esi + 1]
neg esi
test cl, cl
cmovne esi, eax
test esi, esi
jg 0x509bb3
mov edi, dword [ebp - 8]
mov ecx, 4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d6510
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 0x50ff80
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 0x50dd1b
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x50dd1b
push esi
call fcn.004c2580
add esp, 4
lea eax, [ebp - 0xa8]
push eax
push ebx
push esi
call fcn.004c1e60
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp byte [esi + 9], 0
je 0x50dd44
add dword [esi + 0xc], 0xffffffff
jne 0x50dd44
push esi
call fcn.0051e740
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 0x50bd74
test esi, esi
je 0x50fbf6
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 0x50dd9d
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x1c], esi
jne 0x50dd93
mov dword [ecx + 0x1c], edx
mov eax, dword [eax]
test eax, eax
jne 0x50dd88
mov ecx, dword [edi + ebx + 0xc]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x50ddb5
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x2c], esi
jne 0x50ddaf
mov dword [ecx + 0x2c], edx
mov eax, dword [eax]
test eax, eax
jne 0x50dda4
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 0x509b65
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.004e4020
mov esi, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [esi + 0xc], 0
je 0x50de36
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xac]
add dword [edx + 0x2c], eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
jle 0x50de33
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 0x50bd77
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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 0x50de7f
push dword [eax + 0x28]
push edi
call fcn.00514040
mov esi, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
mov eax, dword [eax + 0x28]
push 0
push dword [eax + 0x40]
push dword [eax + 8]
call fcn.004e4020
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d6510
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.004e4760
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd77
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 0x509b65
mov edx, dword [ebp - 4]
inc byte [edi + 0x5a]
push 0
push 0
push 0
push dword [edx + 0x10]
push edi
call fcn.004ae370
dec byte [edi + 0x5a]
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x10]
mov esi, dword [edx + 4]
test ecx, ecx
jne 0x50df91
mov eax, dword [edi + 0x10]
mov ecx, esi
add ecx, ecx
push dword [eax + ecx*8 + 0xc]
call fcn.00501aa0
mov eax, dword [ebp + 8]
and dword [edi + 0x18], 0xffffffef
add eax, 0x7c
push 1
push eax
push esi
push edi
call fcn.004f6ac0
mov edx, dword [ebp + 8]
add esp, 0x14
or dword [edi + 0x18], 1
mov dword [ebp - 0xc], eax
and dword [edx + 0x98], 0xfffffffc
jmp 0x50e04c
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.004f97f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x50ff99
push 0
lea eax, [ebp - 0x128]
mov byte [edi + 0xa5], 1
push eax
push fcn.004f6880
push esi
push edi
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x114], 0
call fcn.004ae370
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50e038
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50e038
cmp dword [ebp - 0x114], eax
jne 0x50e038
push 0x16344
call fcn.004e8980
add esp, 4
mov dword [ebp - 0xc], eax
push esi
push edi
call fcn.004e9ef0
mov eax, dword [ebp - 0xc]
add esp, 8
mov byte [edi + 0xa5], 0
test eax, eax
jne 0x50ffa0
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov edx, dword [ebp - 4]
push dword [edx + 4]
push edi
call fcn.004e2120
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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.004f60d0
add esp, 0xc
test eax, eax
je 0x50e0cd
cmp dword [edi + 0x1f8], 0
jne 0x50e0c3
add dword [eax + 0x20], 0xffffffff
jne 0x50e0cd
push eax
push edi
call fcn.004c8540
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 0x509b65
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.004f60d0
mov edx, eax
add esp, 0xc
test edx, edx
je 0x50e0cd
mov esi, dword [edx + 0xc]
mov ecx, dword [esi + 8]
cmp ecx, edx
jne 0x50e13b
mov eax, dword [edx + 0x14]
push edx
push edi
mov dword [esi + 8], eax
call fcn.004f29a0
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 0x509b65
test ecx, ecx
je 0x50e174
nop
mov eax, dword [ecx + 0x14]
cmp eax, edx
je 0x50e16e
mov ecx, eax
test ecx, ecx
jne 0x50e140
push edx
push edi
call fcn.004f29a0
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 0x509b65
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x14], eax
push edx
push edi
call fcn.004f29a0
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 0x509b65
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.004f60d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x509d87
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x14], eax
jne 0x50e223
push 0
push dword [esi + 4]
add eax, 8
push eax
call fcn.004cc7e0
add esp, 0xc
mov edx, dword [eax + 8]
test edx, edx
je 0x50e223
mov eax, dword [edx + 0x44]
add edx, 0x44
test eax, eax
je 0x50e223
nop dword [eax]
cmp eax, esi
je 0x50e21e
lea edx, [eax + 0x20]
mov eax, dword [edx]
test eax, eax
jne 0x50e1f0
push esi
push edi
call fcn.004eacf0
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 0x509b65
mov eax, dword [eax + 0x20]
mov dword [edx], eax
push esi
push edi
call fcn.004eacf0
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 0x509b65
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.004e50b0
push edi
mov ebx, eax
call fcn.005124d0
mov eax, dword [ebp - 0xe0]
add esp, 0x1c
test eax, eax
je 0x50e2c1
test ebx, ebx
je 0x510025
mov ecx, dword [ebp - 0x1c]
dec eax
push fcn.004af550
push 1
cdq
sub dword [ecx + esi*8], eax
push 0xffffffffffffffff
sbb dword [ecx + esi*8 + 4], edx
push ebx
push edi
call fcn.005125e0
add esp, 0x14
movzx eax, byte [ebp - 0x4c]
push eax
push edi
call fcn.00509320
add esp, 8
jmp 0x50d724
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 0x50e301
push esi
call fcn.00512500
add esp, 4
test eax, eax
jne 0x510025
push dword [ebx + edi*8 + 4]
push dword [ebx + edi*8]
push dword [esi + 0x10]
call fcn.00500db0
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 0x509b65
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 0x50e3a9
mov esi, dword [edi + 0x10]
movzx ecx, word [esi + 0x1a]
test cl, 2
jne 0x50e36b
mov eax, ecx
test cl, 1
jne 0x50e364
push dword [esi + 8]
call fcn.004de6f0
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 0x50e3a9
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
test eax, eax
jne 0x50e38a
push esi
call fcn.00500ce0
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.00512490
add esp, 0xc
jmp 0x50d724
push edi
call fcn.005124d0
add esp, 4
jmp 0x50f84b
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 0x50e3ea
push esi
call fcn.00512500
add esp, 4
test eax, eax
jne 0x510025
mov ecx, dword [ebp - 0x1c]
test ebx, ebx
je 0x50e40b
push dword [ecx + edi*8 + 4]
push dword [ecx + edi*8]
push ebx
push dword [esi + 0x10]
call fcn.00500e40
add esp, 0x10
test eax, eax
jne 0x509bb3
test ebx, ebx
js 0x509f7e
mov ebx, dword [ebp - 0x1c]
jmp 0x50e301
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 0x50e463
mov eax, dword [edx + 0xc8]
mov ecx, dword [edi + 0x14]
test eax, eax
je 0x50e460
nop word [eax + eax]
cmp dword [eax + 0x1c], ecx
je 0x509f7e
mov eax, dword [eax + 4]
test eax, eax
jne 0x50e450
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
cmp eax, dword [ebx + 0x94]
jge 0x50ffc3
test byte [ecx + 8], 0x10
jne 0x50e579
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 0x50e4aa
add eax, 7
sar eax, 3
lea edi, [eax + ecx*4]
mov eax, edi
cdq
push edx
push eax
push ebx
call fcn.004ea0a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x510025
push dword [ebp - 0x20]
call fcn.00512400
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], 0x510ce0
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 0x50e571
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 0x50e560
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xd0]
jmp 0x50e57c
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 0x50d72a
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d6510
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.00512880
mov esi, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
mov eax, dword [edi + 0x20]
and eax, 0x80000
or eax, 0
mov eax, dword [ebp - 4]
je 0x50e6ad
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 0x509b65
cmp dword [eax + 4], 0
mov eax, dword [eax + 8]
cdq
je 0x50e6d1
add dword [edi + 0x1e8], eax
mov esi, dword [ebp - 4]
adc dword [edi + 0x1ec], edx
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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 0x509b65
cmp dword [esi + 4], 0
je 0x50e71d
mov eax, dword [edi + 0x1e8]
or eax, dword [edi + 0x1ec]
jne 0x509d8f
mov eax, dword [edi + 0x1f0]
or eax, dword [edi + 0x1f4]
je 0x509bb3
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x40]
or eax, dword [ecx + 0x44]
jne 0x509d8a
mov eax, dword [edi + 0x1f0]
or eax, dword [edi + 0x1f4]
je 0x509bb3
mov eax, dword [ebp - 0x10]
mov ecx, 4
add esi, 0x14
jmp 0x509b65
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc8]
test edx, edx
je 0x50e77f
mov eax, dword [edx + 4]
test eax, eax
je 0x50e76b
mov edx, eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x50e762
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 0x50e78e
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.00512170
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
lea eax, [eax + eax*4]
lea esi, [ebx + eax*8]
push esi
call fcn.00512170
mov ecx, dword [esi + 4]
add esp, 8
mov eax, dword [esi]
cmp dword [edi + 4], ecx
jg 0x509f7e
jl 0x50e7c1
cmp dword [edi], eax
jae 0x509f7e
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x50e313
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 0x509f7e
jg 0x50e7f0
test ecx, ecx
je 0x509f7e
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 0x509bb3
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.004d6510
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 0x50e88e
jg 0x50e844
test eax, eax
je 0x50e88e
mov ecx, dword [edx + ebx*8 + 4]
mov eax, dword [edx + ebx*8]
test ecx, ecx
jl 0x50e855
jg 0x50e863
test eax, eax
jne 0x50e863
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.004e1330
add esp, 0xc
test eax, eax
jne 0x50e88e
mov eax, dword [ebp - 0xd0]
mov dword [edi], eax
mov eax, dword [ebp - 0xcc]
mov dword [edi + 4], eax
jmp 0x50e313
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
jmp 0x50e313
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 0x509d87
test edx, edx
jl 0x509bb3
jg 0x50e8cf
test ecx, ecx
je 0x509bb3
sub ecx, 1
mov dword [ebx + esi*8], ecx
sbb edx, 0
jmp 0x509baf
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 0x50e90b
jg 0x50e8fe
test eax, eax
je 0x50e90b
sub eax, 1
mov dword [ebx + edx*8], eax
sbb ecx, 0
mov dword [ebx + edx*8 + 4], ecx
or eax, ecx
je 0x509bb3
mov esi, dword [ebp - 4]
mov ecx, 4
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov edx, dword [ebp - 4]
push 0
movzx ebx, word [edx + 2]
lea eax, [ebx*4 + 0x44]
push eax
push edi
call fcn.004e9f60
mov esi, eax
add esp, 0xc
test esi, esi
je 0x510028
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 0x50e9af
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 0x50e9f9
movzx ecx, byte [esi + 0x19]
sub ecx, 1
mov dword [esi + 8], edi
js 0x50e9f9
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 0x50e9e0
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 0x50ea17
mov eax, dword [ecx + 0x1c]
jmp 0x50ea1a
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esi + 0x14]
add esp, 0xc
test eax, eax
je 0x509f7e
jle 0x50ea4a
push dword [esi]
call fcn.004b1cd0
push eax
push 0x588e14
push dword [ebp + 8]
call fcn.00509a60
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp byte [esi + 0x18], 0
je 0x50ea6e
mov eax, dword [edi - 0x10]
test eax, eax
je 0x50ea6a
push 0
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
push 1
push eax
call fcn.00512490
add esp, 0xc
mov byte [esi + 0x18], 0
push dword [esi]
call fcn.00512400
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 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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 0x50eb33
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 0x50eaef
push edi
call fcn.00520820
add esp, 4
jmp 0x50eaf8
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 0x50eb41
push dword [edx + 0x10]
push esi
call fcn.00511f10
add esp, 8
mov ecx, eax
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x50ffdd
movzx eax, byte [ebp - 0x4c]
push eax
push esi
call fcn.00509320
push esi
call fcn.005129e0
add esp, 0xc
test eax, eax
je 0x509d87
push str.string_or_blob_too_big
push dword [ebp + 8]
call fcn.00509a60
add esp, 8
mov eax, 0x12
jmp 0x50bd74
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.004e6df0
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
je 0x50ebe1
cmp eax, 5
jne 0x50bd77
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.00512490
inc esi
add esp, 0xc
add edi, 0x28
cmp esi, 3
jl 0x50ebf2
jmp 0x50e313
mov ebx, dword [ebp - 4]
push ebx
push dword [ebp + 8]
call fcn.004d6510
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 0x50ec53
xor eax, eax
jmp 0x50ec72
mov eax, dword [edi + 0x40]
cmp dword [eax], 0
je 0x50ec6d
cmp dword [edi + 0x4c], 0
jl 0x50ec6d
jg 0x50ec69
cmp dword [edi + 0x48], 0
jbe 0x50ec6d
xor eax, eax
jmp 0x50ec72
mov eax, 1
test eax, eax
mov esi, ebx
mov eax, 0x582fd8
cmovne esi, ecx
cmp byte [edi + 0xf], 0
jne 0x50ec8a
mov eax, dword [edi + 0xa8]
cmp esi, 5
jne 0x50ecb0
push eax
call fcn.00505cc0
add esp, 4
test eax, eax
je 0x50eca9
push edi
call fcn.004fbe00
add esp, 4
test eax, eax
jne 0x50ecb0
mov eax, ebx
jmp 0x50ee36
mov eax, esi
cmp esi, ebx
je 0x50ee36
cmp ebx, 5
je 0x50ecc8
cmp esi, 5
jne 0x50ee36
mov eax, dword [ebp - 8]
cmp byte [eax + 0x4f], 0
je 0x50fffc
cmp dword [eax + 0xb4], 1
jg 0x50fffc
cmp ebx, 5
jne 0x50ee03
cmp dword [edi + 0xd8], 0
mov dword [ebp - 0xc], 0
jne 0x50ed9b
mov al, byte [edi + 0x11]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xc], 0
cmp al, 1
jb 0x50ed1b
cmp al, bl
jne 0x50ed4b
cmp byte [edi + 0xd], 0
je 0x50ed2a
mov dword [ebp - 0xc], 0
jmp 0x50ed41
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 0x50ed4b
cmp byte [edi + 0x11], 5
je 0x50ed4b
mov byte [edi + 0x11], 1
cmp dword [ebp - 0xc], 0
jne 0x50edf7
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 0x50edf7
cmp dword [ebp - 0xb4], eax
je 0x50ed92
push edi
call fcn.004d7050
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50edf7
cmp dword [edi + 0xd8], 0
je 0x50edf7
push edi
call fcn.004d6d30
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50edf7
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.005156f0
push edi
mov dword [ebp - 0xc], eax
mov dword [edi + 0xd8], 0
call fcn.004d6db0
add esp, 0x18
cmp dword [ebp - 0xc], 0
je 0x50edf7
cmp byte [edi + 4], 0
jne 0x50edf7
push 1
push edi
call fcn.004d7820
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
test ecx, ecx
jne 0x50ee3b
push esi
jmp 0x50ee0a
cmp ebx, 4
jne 0x50ee13
push 2
push edi
call fcn.004fb6b0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
test ecx, ecx
jne 0x50ee3b
xor eax, eax
cmp esi, 5
sete al
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.004e6950
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.004fb6b0
mov ebx, dword [ebp - 0x3c]
add esp, 8
mov ecx, 0xa02
mov word [ebx + 8], cx
cmp eax, 6
jne 0x50ee5d
xor eax, eax
jmp 0x50ee64
mov eax, dword [eax*4 + 0x584970]
push eax
mov dword [ebx + 0x10], eax
call fcn.00505cc0
mov dword [ebx + 0xc], eax
movzx eax, byte [ebp - 0x4c]
push eax
push ebx
mov byte [ebx + 0xa], 1
call fcn.00509320
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edi, dword [ebp - 8]
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
test eax, eax
je 0x50eeb6
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
jmp 0x50eeb8
xor eax, eax
push eax
push dword [edx + 4]
mov eax, dword [ebp + 8]
add eax, 0x7c
push edi
push eax
call fcn.005014b0
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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 0x50ef12
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x50ef12
push edi
call fcn.004c2580
add esp, 4
cmp byte [ebx + 0x11], 0
je 0x50efc9
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.004cc4e0
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x3c], eax
jae 0x50ef67
push 0x58dd34
push 0x10984
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b8510
add esp, 0x14
mov dword [ebp - 0xc], 0xb
jmp 0x50efd0
test esi, esi
je 0x50efc9
mov eax, dword [ebx + 8]
test eax, eax
je 0x50ef88
push 0
push 0
push eax
call fcn.004deaa0
mov edx, eax
add esp, 0xc
mov dword [ebp - 0xc], edx
test edx, edx
jne 0x50efd0
push ebx
call fcn.004d1a20
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
push ebx
call fcn.004d1440
mov edx, eax
add esp, 0x14
mov dword [ebp - 0xc], edx
test edx, edx
jne 0x50efd0
mov eax, dword [ebx + 0xc]
push dword [eax + 0x48]
call fcn.004fbe30
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 0x50efd0
mov dword [ebp - 0xc], 0x65
cmp byte [edi + 9], 0
je 0x50efe5
add dword [edi + 0xc], 0xffffffff
jne 0x50efe5
push edi
call fcn.0051e740
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x509f7e
cmp eax, 0x65
jne 0x50bd74
mov dword [ebp - 0xc], 0
jmp 0x509bb3
cmp dword [esi + 4], 0
jne 0x50f027
push dword [esi + 8]
push edi
call fcn.004ebd10
mov eax, dword [ebp - 0x10]
add esp, 8
mov ecx, 4
add esi, 0x14
jmp 0x509b65
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 0x509b65
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 0x509b65
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 0x509b65
mov ebx, dword [ebp - 4]
mov bl, byte [ebx + 0xc]
test bl, bl
jne 0x50f0a9
mov eax, dword [edi + 0x20]
and eax, 0x400
mov dword [ebp - 0x30], eax
jne 0x50e69f
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 0x50f173
inc dword [esi + 0xc]
inc bl
mov byte [ebp - 0x90], bl
cmp byte [esi + 0xa], al
jne 0x50f0e5
push esi
call fcn.004c2580
add esp, 4
push dword [ebp - 0x90]
push edi
push esi
call fcn.004db0c0
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50f15b
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x50f120
nop dword [eax]
cmp dword [ecx + 4], edi
jne 0x50f119
cmp dword [ecx], esi
je 0x50f149
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x50f110
push 0
push 0x10
call fcn.004f9810
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x50f1a1
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 0x50f151
mov byte [ecx + 8], bl
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
cmp byte [esi + 9], 0
je 0x50f173
add dword [esi + 0xc], 0xffffffff
jne 0x50f173
push esi
call fcn.0051e740
mov eax, dword [ebp - 0xc]
add esp, 4
test eax, eax
je 0x50e313
cmp al, 6
jne 0x50bd74
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push str.database_table_is_locked:__s
push dword [ebp + 8]
call fcn.00509a60
mov eax, dword [ebp - 0xc]
add esp, 0xc
jmp 0x50bd74
mov dword [ebp - 0xc], 7
mov eax, 7
jmp 0x50f15b
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], 0
mov esi, dword [edx + 0x10]
mov edx, dword [edi + 0x164]
test edx, edx
jle 0x50f1db
cmp dword [edi + 0x17c], 0
jne 0x50f1db
mov dword [ebp - 0xc], 6
jmp 0x50f28a
test esi, esi
jne 0x50f1f4
mov esi, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ecx, 4
add esi, 0x14
jmp 0x509b65
mov eax, dword [esi + 8]
mov edi, dword [eax]
cmp dword [edi + 0x38], 0
je 0x50f287
mov ebx, dword [ebp - 8]
xor ecx, ecx
test edx, edx
jle 0x50f222
mov eax, dword [ebx + 0x17c]
cmp dword [eax], esi
je 0x50f2b8
inc ecx
add eax, 4
cmp ecx, edx
jl 0x50f212
push ebx
call fcn.004d0eb0
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50f287
push dword [esi + 8]
mov eax, dword [edi + 0x38]
call eax
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50f287
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 0x50f287
cmp dword [edi + 0x50], 0
je 0x50f287
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 0x50f29c
push dword [esi + 8]
push dword [ebp + 8]
call fcn.00514e40
add esp, 8
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov dword [ebp - 0xc], 0
mov edi, ebx
jmp 0x50f28a
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.00511e40
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x290]
push eax
call fcn.004b1cd0
add esp, 0xc
test eax, eax
je 0x50f3e0
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.004f10b0
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.004cc7e0
add esp, 0x18
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x50f3c5
mov eax, dword [ecx]
mov edx, dword [eax + 4]
test edx, edx
je 0x50f3c5
cmp dword [eax + 0x14], 0
je 0x50f3c5
mov edi, dword [ebp - 8]
push esi
push edx
push ecx
push ebx
push edi
call fcn.00522db0
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50f3e0
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x50f3e0
cmp dword [eax], edi
je 0x50f391
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x50f384
jmp 0x50f3e0
push edi
call fcn.004d0eb0
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50f3e0
push ebx
push edi
call fcn.004f5cb0
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 0x50f3e0
push edi
mov edi, dword [ebp - 8]
push str.no_such_module:__s
push edi
call fcn.004f97f0
add esp, 0xc
mov dword [esi], eax
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x290]
push eax
call fcn.00512400
mov eax, dword [ebp - 0xc]
add esp, 4
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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.004f10b0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x50f4ac
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x50f4ac
nop
mov eax, dword [ecx + 8]
cmp dword [eax + 4], 0
jg 0x50f4d1
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x50f440
mov ebx, dword [ebp - 8]
push edi
push ebx
call fcn.00523230
mov esi, eax
add esp, 8
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x50f472
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 0x50f493
mov dword [esi + 8], eax
push esi
mov dword [edi + 0x40], eax
call fcn.005150e0
add esp, 4
cmp dword [ebx + 0x1f8], 0
jne 0x50f4a2
add dword [edi + 0x20], 0xffffffff
jne 0x50f4ac
push edi
push ebx
call fcn.004c8540
add esp, 8
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
dec dword [edi + 0xc0]
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov eax, 6
mov dword [ebp - 0xc], eax
jmp 0x50f4af
mov edx, dword [ebp - 4]
mov dword [ebp - 0x88], 0
mov eax, dword [edx + 0x10]
mov esi, dword [eax + 8]
test esi, esi
je 0x510055
mov edi, dword [esi]
test edi, edi
je 0x510052
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.00514e40
mov eax, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
jne 0x50bd74
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.004be410
add esp, 0x14
test eax, eax
je 0x510017
mov ecx, dword [ebp - 0x88]
mov dword [eax + 0x28], ecx
inc dword [esi + 4]
jmp 0x50e313
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 0x50f69d
cmp esi, 0x10
jb 0x50f685
cmp dword [0x5baf74], 2
jl 0x50f685
movaps xmm2, xmmword [0x58dea0]
mov eax, esi
and eax, 0x8000000f
jns 0x50f5e0
dec eax
or eax, 0xfffffff0
inc eax
movaps xmm1, xmmword [0x58deb0]
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 0x50f5f0
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x3c]
cmp ecx, esi
jge 0x50f69d
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 0x50f692
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.00514e40
mov eax, dword [ebp - 0xc]
add esp, 0x1c
test eax, eax
jne 0x50bd74
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 0x509f7e
jmp 0x509bb3
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 0x50f71a
push esi
call fcn.005124d0
add esp, 4
jmp 0x50e313
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 0x50f75a
push esi
call fcn.005124d0
mov edx, dword [ebp - 4]
add esp, 4
mov dword [esi], 0
mov eax, 0x4001
jmp 0x50f76d
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.00514e40
add esp, 0x14
cmp dword [ebp - 0x22c], 0
jle 0x50f7bd
push esi
call fcn.004b1cd0
push eax
push 0x588e14
push edi
call fcn.00509a60
mov eax, dword [ebp - 0x22c]
add esp, 0x10
mov dword [ebp - 0xc], eax
movzx eax, byte [ebp - 0x4c]
push eax
push esi
call fcn.00509320
push esi
call fcn.005129e0
add esp, 0xc
test eax, eax
jne 0x50eb68
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
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 0x509f7e
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.00514e40
mov eax, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
jne 0x50bd74
push dword [edi + 0x28]
mov eax, dword [ebx + 0x28]
call eax
add esp, 4
test eax, eax
jne 0x50d724
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 0x50d72a
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.00509320
add esp, 8
test eax, eax
jne 0x50bd74
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 0x50f8d1
mov eax, dword [edi + 0x24]
and dword [edi + 0x20], 0xfbffffff
mov dword [edi + 0x24], eax
push esi
push dword [ebp + 8]
call fcn.00514e40
mov eax, dword [ebp + 8]
add esp, 8
and dword [eax + 0x98], 0xfffffffc
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
cmp byte [edi + 0x51], 0
jne 0x510028
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov edi, dword [eax + 8]
test edi, edi
je 0x51005f
mov ebx, dword [edi]
test ebx, ebx
je 0x51005f
cmp dword [ebx + 0x34], 0
mov edx, dword [edx + 8]
je 0x50fbf6
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 0x50f96b
nop dword [eax]
mov dword [esi + eax*4], ecx
inc eax
add ecx, 0x28
cmp eax, edx
jl 0x50f960
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.00514e40
mov eax, dword [ebp - 0xc]
add esp, 0x18
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
test eax, eax
jne 0x50f9c5
cmp dword [ecx + 4], eax
je 0x50f9c5
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 0x50fa0c
mov eax, dword [ecx + 0x10]
cmp byte [eax + 0x10], 0
je 0x50fa0c
movzx ecx, word [ecx + 2]
cmp ecx, 4
jne 0x50f9f3
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 0x509b65
movzx eax, cl
cmp ecx, 5
mov ecx, 2
cmove eax, ecx
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x92], al
jmp 0x50fa12
mov eax, dword [ebp + 8]
inc dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x50bd77
mov esi, dword [ebp - 4]
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d6510
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 0x509b65
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004d6510
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 0x50faad
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 0x50fac5
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x50fac5
push esi
call fcn.004c2580
add esp, 4
mov eax, dword [esi + 4]
mov eax, dword [eax]
test edi, edi
jle 0x50fad6
mov dword [eax + 0x9c], edi
jmp 0x50fadc
mov edi, dword [eax + 0x9c]
cmp byte [esi + 9], 0
je 0x50faf1
add dword [esi + 0xc], 0xffffffff
jne 0x50faf1
push esi
call fcn.0051e740
add esp, 4
mov eax, edi
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x50e313
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 0x50fb4f
movzx ecx, byte [esi + 0x19]
sub ecx, 1
mov dword [esi + 0xc], ebx
mov dword [esi], edi
js 0x50fb4f
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 0x50fb34
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 0x50fbcb
jle 0x50fb9c
push edi
call fcn.004b1cd0
push eax
push 0x588e14
push ebx
call fcn.00509a60
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.005098a0
mov eax, dword [ebp - 0xc]
add esp, 0x10
mov dword [esi + 0x14], 0
test eax, eax
jne 0x50bd74
test byte [edi + 8], 0x12
je 0x509f7e
movzx eax, byte [ebp - 0x4c]
push eax
push edi
call fcn.00509320
push edi
call fcn.005129e0
add esp, 0xc
test eax, eax
jne 0x50eb68
jmp 0x50e313
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, 0x14
jmp 0x509b65
mov cl, byte [edi + 0x58]
test cl, 0x41
je 0x50fcbd
mov edx, dword [ebp + 8]
test byte [edx + 0x98], 0x10
jne 0x50fcbd
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x50fc38
mov eax, dword [edx + 0xc0]
test eax, eax
je 0x50fcbd
push eax
test cl, 0x40
je 0x50fc69
mov edi, dword [edi + 0xcc]
push edx
call fcn.00510700
mov esi, eax
mov eax, dword [ebp - 8]
push esi
push dword [eax + 0xd0]
call edi
push esi
call fcn.004af550
mov edi, dword [ebp - 8]
add esp, 0x14
mov esi, dword [ebp - 4]
jmp 0x50fcbd
cmp dword [edi + 0xbc], 1
jle 0x50fca9
push str.____s
push edi
call fcn.004f97f0
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 0x50fca4
push esi
push edi
call fcn.004e9ef0
add esp, 8
mov esi, dword [ebp - 4]
jmp 0x50fcbd
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 [0x5b4d34]
jl 0x50fd11
cmp byte [esi], 0xaa
je 0x509d8a
mov esi, dword [ebp + 8]
mov edx, 1
cmp dword [esi + 0x6c], edx
jle 0x50fcfd
mov eax, 0x14
mov ecx, dword [esi + 0x68]
cmp byte [eax + ecx], 0x11
jne 0x50fcf4
mov dword [eax + ecx + 4], 0
inc edx
add eax, 0x14
cmp edx, dword [esi + 0x6c]
jl 0x50fce3
mov edi, dword [ebp - 4]
xor eax, eax
inc eax
mov dword [edi + 4], eax
inc dword [esi + 0xbc]
jmp 0x509bb6
mov edi, dword [ebp - 4]
inc eax
mov esi, dword [ebp + 8]
mov dword [edi + 4], eax
inc dword [esi + 0xbc]
jmp 0x509bb6
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 0x50fda9
movzx eax, word [edx + 2]
test ax, ax
je 0x50fd7b
push dword [eax*4 + 0x5848cc]
push str._s_constraint_failed
push ebx
call fcn.00509a60
mov eax, dword [ebp - 4]
add esp, 0xc
mov eax, dword [eax + 0x10]
test eax, eax
je 0x50fd8c
push eax
push dword [ebx + 0x7c]
push str._z:__s
push edi
call fcn.004f97f0
add esp, 0x10
mov dword [ebx + 0x7c], eax
jmp 0x50fd8c
push dword [edx + 0x10]
push 0x588e14
push ebx
call fcn.00509a60
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.004b8510
add esp, 0x14
push ebx
call fcn.00510f00
mov esi, dword [ebp - 0x14]
mov ecx, eax
add esp, 4
mov dword [ebp - 0xc], ecx
cmp ecx, 5
jne 0x50fdc9
mov dword [ebx + 0x28], eax
mov ebx, eax
jmp 0x5103d0
cmp dword [ebx + 0x28], 0
mov ecx, 0x65
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0xc], ecx
mov ebx, ecx
jmp 0x5103d0
push 0x1569f
call fcn.004e8980
mov edi, dword [ebp - 8]
add esp, 4
jmp 0x50bd7a
push str.cannot_open_savepoint___SQL_statements_in_progress
push dword [ebp + 8]
call fcn.00509a60
add esp, 8
mov eax, 5
mov edi, esi
jmp 0x50bd77
push str.cannot_release_savepoint___SQL_statements_in_progress
push dword [ebp + 8]
call fcn.00509a60
add esp, 8
mov eax, 5
jmp 0x50bd74
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 0x5103d0
mov eax, 8
jmp 0x50bd77
mov esi, dword [ebp - 0x14]
cmp al, 5
jne 0x50a9a6
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 0x5103d0
mov eax, dword [edx + 0x7c]
test eax, eax
je 0x50feb7
push eax
push edi
call fcn.004e9ef0
add esp, 8
push 0
push 0x1c
push edi
call fcn.004e9f60
mov esi, eax
add esp, 0xc
test esi, esi
je 0x50feda
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 0x50ff05
push edx
push edi
call fcn.00500470
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 0x50bd7d
mov eax, 0x204
jmp 0x50bd77
test dword [ebp - 0x148], 0x2400
jne 0x50ff49
cmp dword [ebp - 0x138], 0
je 0x50ff58
lea eax, [ebp - 0x150]
push eax
call fcn.005207e0
add esp, 4
push 0x58dd34
push 0x14136
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b8510
add esp, 0x14
mov eax, 0xb
jmp 0x50bd74
mov ecx, dword [ebp + 8]
mov eax, 6
mov ebx, dword [ebp - 0x18]
mov edi, edx
mov byte [ecx + 0x92], 2
jmp 0x50bd7d
mov dword [ebp - 0xc], 7
push edi
call fcn.005003f0
mov eax, dword [ebp - 0xc]
add esp, 4
mov esi, dword [ebp - 0x14]
cmp eax, 7
je 0x5102b0
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
jmp 0x50bd80
push str.too_many_levels_of_trigger_recursion
push edx
call fcn.00509a60
add esp, 8
mov eax, 1
mov edi, ebx
jmp 0x50bd77
push esi
call fcn.004b1cd0
push eax
push 0x588e14
push dword [ebp + 8]
call fcn.00509a60
add esp, 0x10
mov eax, dword [ebp - 0xc]
jmp 0x50bd77
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 0x50bd64
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.004fa070
push str.out_of_memory
push edx
call fcn.00509a60
mov ecx, dword [ebp + 8]
add esp, 0xc
mov ebx, dword [ebp - 0x18]
mov eax, 7
jmp 0x50bd80
mov edi, dword [ebp - 8]
mov eax, 6
jmp 0x50bd77
mov eax, 6
jmp 0x50bd74
mov eax, dword [ebp + 8]
cmp dword [eax + 0x44], 0
jl 0x5100a0
jg 0x51007a
cmp dword [eax + 0x40], 0
jbe 0x5100a0
push str.FOREIGN_KEY_constraint_failed
push eax
mov dword [eax + 0x28], 0x313
mov byte [eax + 0x92], 2
call fcn.00509a60
add esp, 8
mov eax, 1
jmp 0x50bd77
push 1
push eax
call fcn.00509740
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 0x510106
mov eax, 0x1000
test word [esi + 8], ax
je 0x5100f1
push esi
call fcn.005121f0
add esp, 4
test eax, eax
jne 0x510025
push esi
call fcn.005122a0
inc edi
add esp, 4
add esi, 0x28
cmp edi, dword [ebx + 8]
jl 0x5100d5
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 8]
cmp byte [edi + 0x51], 0
jne 0x51002b
test byte [edi + 0x58], 4
je 0x51012f
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 0x5103d0
mov edx, dword [ebp - 4]
movzx eax, byte [edi + 0x4f]
mov ebx, dword [edx + 4]
mov ecx, dword [edx + 8]
cmp ebx, eax
je 0x51023b
test ecx, ecx
je 0x510184
push 0x204
push edi
call fcn.00500ba0
add esp, 8
mov al, 1
jmp 0x5101c9
test ebx, ebx
je 0x5101ab
cmp dword [edi + 0xb8], 0
jle 0x5101ab
push str.cannot_commit_transaction___SQL_statements_in_progress
push dword [ebp + 8]
call fcn.00509a60
add esp, 8
mov eax, 5
jmp 0x50bd77
push 1
push dword [ebp + 8]
mov dword [ebp - 0x90], ebx
call fcn.00509500
mov ecx, eax
add esp, 8
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x510230
mov eax, ebx
push dword [ebp + 8]
mov byte [edi + 0x4f], al
call fcn.00510f00
add esp, 4
cmp eax, 5
jne 0x510210
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 0x5103d0
push edi
call fcn.004e7250
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 0x5103d0
test ebx, ebx
jne 0x510246
mov eax, str.cannot_start_a_transaction_within_a_transaction
jmp 0x510255
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.00509a60
add esp, 8
mov eax, 1
jmp 0x50bd77
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.004b0140
push eax
push 0x588e14
push edx
call fcn.00509a60
mov eax, dword [ebp - 0xc]
add esp, 0x10
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
jmp 0x50bd80
mov edi, dword [ebp - 8]
mov edx, esi
jmp 0x51002b
mov edx, dword [ebp + 8]
jmp 0x51002e
mov ecx, str.abort_due_to_ROLLBACK
jmp 0x5102cb
mov ecx, str.no_more_rows_available
jmp 0x5102cb
mov ecx, str.another_row_available
push ecx
push 0x588e14
push dword [ebp + 8]
call fcn.00509a60
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
cmp eax, 0xc0a
je 0x510313
movzx eax, al
cmp eax, 0xe
je 0x5102f9
cmp eax, 0xa
jne 0x510313
mov eax, dword [edi]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x51030e
push 0
push 0
push eax
call ecx
add esp, 0xc
jmp 0x510310
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.004b8510
push dword [ebp + 8]
call fcn.00510f00
add esp, 0x18
cmp dword [ebp - 0xc], 0xc0a
jne 0x51039a
cmp byte [edi + 0x51], 0
jne 0x51039a
cmp byte [edi + 0x52], 0
jne 0x51039a
cmp dword [edi + 0xbc], 0
mov byte [edi + 0x51], 1
jle 0x51037a
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 0x51039a
mov dword [eax + 0xc], 7
mov al, byte [ebp - 0x59]
mov dword [ebp - 0xc], 1
test al, al
je 0x5103c6
movzx eax, al
dec eax
push eax
push edi
call fcn.00500470
mov ebx, dword [ebp - 0xc]
add esp, 8
jmp 0x5103d0
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
jmp 0x5103d0
mov ebx, 1
nop dword [eax + eax]
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
jb 0x510409
mov eax, dword [edi + 0x158]
test eax, eax
je 0x510409
push dword [edi + 0x15c]
add esi, dword [edi + 0x160]
call eax
add esp, 4
test eax, eax
je 0x5103d0
mov ecx, dword [ebp + 8]
or esi, 0xffffffff
mov ebx, dword [ebp - 0x18]
mov eax, 9
jmp 0x50bd80
mov edx, dword [ebp + 8]
add dword [edx + 0xb4], ecx
cmp dword [edx + 0xa0], 0
je 0x510424
push edx
call fcn.00520720
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret