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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
mov eax, dword [edi + 8]
mov edx, dword [edi]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax*8]
lea ebx, [esi + eax*8 + 0x2e0]
movzx eax, byte [ebx + 0x24]
mov dword [esp + 0x3c], edx
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea ecx, [esi + 0x148]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x38]
shl edx, 4
lea eax, [edx + eax + 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x4c], 0
test eax, eax
jle 0x1006526b
lea ecx, [esi + 0x48]
mov edx, dword [esp + 0x18]
cmp dword [ecx], edx
je 0x10065440
inc dword [esp + 0x4c]
add ecx, 4
cmp dword [esp + 0x4c], eax
jl 0x10065252
xor eax, eax
xor edx, edx
mov ecx, dword [ebp + 0xc]
not eax
and eax, dword [ebp + 0x10]
not edx
and edx, dword [ebp + 0x14]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], edx
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
call fcn.1000bf90
and eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
test byte [eax + 0x24], 0x40
je 0x100652ac
test byte [esi + 0x22], 0x20
mov dword [esp + 0x68], 1
je 0x100652b4
mov dword [esp + 0x68], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x18]
mov ecx, dword [eax + 0x6c]
lea edx, [ecx + 1]
mov dword [eax + 0x6c], edx
lea edx, [ecx - 1]
mov dword [esp + 0x54], eax
mov dword [esp + 0x64], ecx
test ecx, edx
jne 0x10065300
mov eax, ecx
lea ecx, [eax*8 + 4]
push 0
push ecx
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + 0x70]
mov esi, dword [ecx]
call fcn.100322e0
mov edx, dword [esp + 0x5c]
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x6c]
mov dword [edx + 0x70], eax
add esp, 8
mov eax, edx
mov eax, dword [eax + 0x70]
test eax, eax
je 0x1006530e
mov dword [eax + ecx*4], 0xffffffff
or eax, 0xffffffff
sub eax, ecx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx + 0x6c]
lea edx, [eax + 1]
mov dword [ecx + 0x6c], edx
lea edx, [eax - 1]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x64], eax
test eax, edx
jne 0x10065367
lea ecx, [eax*8 + 4]
push 0
push ecx
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + 0x70]
mov esi, dword [ecx]
call fcn.100322e0
mov edx, dword [esp + 0x5c]
mov esi, dword [ebp + 8]
mov dword [edx + 0x70], eax
mov eax, dword [esp + 0x6c]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x70]
test ecx, ecx
je 0x10065375
mov dword [ecx + eax*4], 0xffffffff
or ecx, 0xffffffff
sub ecx, eax
cmp byte [ebx + 0x24], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x54], ecx
mov dword [ebx + 0x18], ecx
jbe 0x100653b1
test byte [eax + 0x24], 8
je 0x100653b1
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov esi, dword [esp + 0x10]
push eax
push 0
push 0x19
mov dword [ebx], eax
call fcn.1003a180
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x5c]
add esp, 0xc
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x7c], ecx
test cl, 4
je 0x10065455
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x54], esi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x74], edx
jg 0x100653ef
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1006541f
mov eax, dword [esp + 0x10]
inc dword [eax + 0x20]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x64]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x74]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x14
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x10]
push eax
push ecx
push 0x16
call fcn.1003a180
add esp, 0xc
mov byte [ebx + 0x25], 0x10
jmp 0x1006657d
mov ecx, dword [esp + 0x4c]
mov eax, 1
xor edx, edx
call fcn.100a7780
jmp 0x1006526f
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x24]
test edx, 0x400
je 0x1006566d
movzx eax, word [ecx + 0x28]
mov esi, dword [edi + 0x38]
inc dword [edi + 0x64]
mov edx, dword [edi + 0x3c]
mov dword [esp + 0x48], eax
add eax, 2
cmp eax, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], edx
jg 0x10065494
add edx, eax
sub esi, eax
mov dword [edi + 0x3c], edx
mov dword [edi + 0x38], esi
jmp 0x100654a3
mov edx, dword [edi + 0x48]
lea esi, [edx + 1]
add eax, edx
mov dword [esp + 0x38], esi
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0xc]
xor esi, esi
cmp dword [esp + 0x48], esi
mov dword [esp + 0x64], eax
jle 0x1006550b
mov edx, dword [esp + 0x38]
add edx, 2
mov dword [esp + 0x50], edx
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x10065500
test byte [eax + 0x12], 1
mov ecx, dword [esp + 0x50]
push ecx
je 0x100654ed
mov edx, dword [esp + 0x24]
push edx
push esi
push eax
push edi
mov eax, ebx
call fcn.1003ba20
mov eax, dword [ebx + 0x10]
add esp, 0x14
mov dword [esp + 0x64], eax
jmp 0x100654fc
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
push eax
push edi
call fcn.10085bc0
add esp, 0xc
mov ecx, dword [esp + 0x2c]
inc dword [esp + 0x50]
inc esi
cmp esi, dword [esp + 0x48]
jl 0x100654bd
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x20]
mov edx, dword [eax + 0x18]
cmp dword [edx + 0x54], esi
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x74], ecx
jg 0x1006552e
push eax
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1006555e
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 4]
inc dword [eax + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x38]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x19
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x54], eax
mov dword [esp + 0x74], eax
jg 0x10065582
push esi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x100655af
mov eax, dword [esp + 0x74]
inc dword [esi + 0x20]
mov ecx, dword [esp + 0x48]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x38]
inc edx
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x19
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x2c]
movzx ecx, byte [eax + 0x1c]
mov edx, dword [eax + 0x20]
mov eax, dword [esp + 0x38]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffff7
add ecx, 0xfffffffe
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
push 0xe
call fcn.1003f5a0
mov eax, dword [esp + 0x44]
xor esi, esi
add esp, 0x18
cmp dword [esp + 0x48], esi
mov byte [eax + 0x1c], 0
jle 0x10065624
nop
cmp esi, 0x10
jge 0x10065624
mov eax, dword [esp + 0x2c]
mov dx, word [eax + 0x1e]
mov cx, si
shr dx, cl
test dl, 1
je 0x1006561d
mov eax, dword [eax + 0x30]
mov eax, dword [eax + esi*4]
mov edi, ebx
call fcn.100122a0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
inc esi
cmp esi, dword [esp + 0x48]
jl 0x100655f0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x28], ecx
mov ecx, dword [esp + 0x38]
mov byte [ebx + 0x25], 0x95
mov eax, dword [edx + 0x20]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x4c]
push ecx
mov esi, edi
call fcn.1001b950
mov edx, dword [esp + 0x50]
add esp, 4
cmp edx, dword [edi + 0x38]
jle 0x10065661
mov ecx, dword [esp + 0x38]
mov eax, edx
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
mov eax, edi
call fcn.1001b900
jmp 0x10066580
mov eax, edx
and eax, 0x100
je 0x1006570c
test dl, 5
je 0x1006570c
mov edx, ecx
mov eax, dword [edx + 0x30]
mov eax, dword [eax]
inc dword [edi + 0x48]
mov esi, dword [edi + 0x48]
mov ecx, dword [esp + 0x20]
push esi
push ecx
push 0
push eax
push edi
mov eax, ebx
call fcn.1003ba20
mov ebx, eax
add esp, 0x14
cmp ebx, esi
je 0x100656b1
mov edx, edi
call fcn.10013380
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
mov esi, dword [esp + 0x10]
push eax
push ebx
push 0x26
mov dword [esp + 0x50], eax
call fcn.1003a180
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ebx
push eax
push ecx
push 0x46
call fcn.100370c0
push ebx
mov eax, 1
mov esi, edi
call fcn.1001b950
mov edx, dword [esp + 0x2c]
add esp, 0x14
push 0xffffffffffffffff
push edx
mov edx, edi
call fcn.100136a0
mov eax, dword [esp + 0x1c]
add esp, 8
mov byte [eax + 0x25], 0x9a
jmp 0x10066580
test eax, eax
je 0x10065907
test dl, 2
je 0x10065907
xor eax, eax
xor esi, esi
mov dword [esp + 0x40], 0x9a
mov dword [esp + 0x64], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], esi
test dl, 0x20
je 0x10065748
mov eax, dword [ecx + 0x30]
mov esi, dword [eax]
mov dword [esp + 0x44], esi
mov eax, 1
test dl, 0x10
je 0x10065757
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + eax*4]
mov dword [esp + 0x48], edx
cmp dword [esp + 0x20], 0
je 0x1006576c
mov eax, esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], eax
test esi, esi
je 0x100657f7
mov eax, dword [esp + 0x44]
mov esi, dword [eax]
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x70]
push ecx
mov ecx, edi
mov byte [esp + 0x54], 0x41
mov byte [esp + 0x55], 0x3f
mov byte [esp + 0x56], 0x3e
mov byte [esp + 0x57], 0x40
call fcn.1003e3c0
movzx ecx, byte [esi]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x14]
add esp, 4
push eax
push edx
movzx edx, byte [esp + ecx + 8]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x20]
push eax
push edx
call fcn.100370c0
mov eax, dword [esp + 0x84]
push eax
mov eax, 1
mov esi, edi
call fcn.1001b950
mov esi, dword [esp + 0x84]
add esp, 0x14
mov edx, edi
call fcn.10013380
mov eax, dword [esp + 0x44]
mov edi, ebx
call fcn.100122a0
mov edi, dword [esp + 0x1c]
jmp 0x1006581c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
neg eax
sbb eax, eax
push ecx
and eax, 0xfffffffd
push edx
add eax, 0x6c
push eax
call fcn.1003a180
add esp, 0xc
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1006587f
mov esi, dword [eax]
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov ecx, dword [esi + 0x10]
push eax
push ecx
push edi
mov dword [esp + 0x70], eax
call fcn.10085bc0
mov al, byte [esi]
add esp, 0xc
cmp al, 0x52
je 0x1006585b
cmp al, 0x50
je 0x1006585b
xor edx, edx
cmp dword [esp + 0x20], edx
setne dl
lea edx, [edx + edx + 0x50]
mov dword [esp + 0x40], edx
jmp 0x1006586c
xor eax, eax
cmp dword [esp + 0x20], eax
sete al
lea eax, [eax + eax + 0x51]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
mov edi, ebx
call fcn.100122a0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x20], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x20]
mov ecx, dword [esp + 0x18]
sete dl
add dl, 8
cmp dword [esp + 0x40], 0x9a
mov byte [ebx + 0x25], dl
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x2c], eax
je 0x10066580
inc dword [edi + 0x48]
mov ebx, dword [edi + 0x48]
mov esi, dword [esp + 0x10]
push ebx
mov edx, ecx
push edx
push 0x67
call fcn.1003a180
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0xffffffffffffffff
push eax
mov edx, edi
call fcn.100136a0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x48]
push ebx
push ecx
push edx
push eax
call fcn.100370c0
mov eax, dword [esi + 4]
add esp, 0x18
test eax, eax
je 0x10066580
mov ecx, esi
mov ecx, dword [ecx + 0x20]
lea edx, [ecx + ecx*4]
mov byte [eax + edx*4 - 0x11], 0x53
jmp 0x10066580
test edx, 0x200
je 0x10065e29
movzx eax, word [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x28], eax
xor eax, eax
test byte [esi + 0x22], 1
mov dword [esp + 0x50], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov byte [esp + 0xe], al
mov byte [esp + 0xd], al
mov byte [esp + 0xf], al
mov dword [esp + 0x48], edx
je 0x10065963
cmp byte [esi + 0x24], al
jle 0x10065963
mov edx, dword [esp + 0x50]
mov dx, word [edx + 0x2e]
cmp dx, word [esp + 0x28]
jbe 0x10065963
mov byte [esp + 0xd], 1
mov eax, 1
movzx esi, word [esp + 0x28]
mov edx, dword [ecx + 0x24]
mov dword [esp + 0x24], esi
test dl, 0x20
je 0x10065984
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x34], eax
inc esi
mov eax, 1
test dl, 0x10
je 0x100659c6
cmp dword [esp + 0x34], 0
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + esi*4]
mov dword [esp + 0x38], edx
mov eax, 1
jne 0x100659c6
mov edx, dword [esp + 0x50]
mov ecx, dword [edx + 4]
mov esi, dword [esp + 0x24]
movsx ecx, word [ecx + esi*2]
test ecx, ecx
jl 0x100659c6
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 4]
lea ecx, [ecx + ecx*2]
cmp byte [edx + ecx*8 + 0x14], 0
jne 0x100659c6
mov byte [esp + 0xd], al
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
push ecx
push eax
push esi
push ebx
push edi
call fcn.10040f70
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
add esp, 0x14
test eax, eax
je 0x100659f2
mov edx, dword [esp + 0x24]
mov al, byte [edx + eax]
mov byte [esp + 0xe], al
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x50]
movzx eax, word [ecx + 0x2e]
cmp word [esp + 0x28], ax
jae 0x10065a1f
mov edx, dword [ecx + 0x1c]
mov esi, dword [esp + 0x24]
xor ecx, ecx
cmp byte [esi + edx], cl
mov esi, dword [esp + 0x20]
sete cl
cmp esi, ecx
je 0x10065a2a
test esi, esi
je 0x10065a49
cmp ax, word [esp + 0x28]
jne 0x10065a49
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov cl, byte [esp + 0xd]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], eax
mov byte [esp + 0xd], 0
mov byte [esp + 0xf], cl
jmp 0x10065a4d
mov eax, dword [esp + 0x34]
mov cl, 0x28
test eax, eax
je 0x10065a60
mov dword [esp + 0x58], 0
test byte [eax + 0x12], cl
je 0x10065a68
mov dword [esp + 0x58], 1
mov edx, dword [esp + 0x38]
test edx, edx
je 0x10065a7d
mov dword [esp + 0x5c], 0
test byte [edx + 0x12], cl
je 0x10065a85
mov dword [esp + 0x5c], 1
test eax, eax
jne 0x10065a94
cmp word [esp + 0x28], ax
ja 0x10065a94
xor esi, esi
jmp 0x10065a99
mov esi, 1
cmp dword [esp + 0x34], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], esi
mov dword [esp + 0x28], eax
je 0x10065b40
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x40]
mov ebx, dword [edx + 0x10]
lea esi, [eax + ecx]
push esi
push ebx
push edi
mov dword [esp + 0x70], ebx
call fcn.10085bc0
mov edx, dword [esp + 0x40]
add esp, 0xc
test byte [edx + 0x14], 0x80
jne 0x10065af8
mov eax, ebx
call fcn.100138e0
test eax, eax
je 0x10065af8
mov eax, dword [esp + 0x44]
push eax
push esi
mov esi, dword [esp + 0x18]
push 0x4c
call fcn.1003a180
add esp, 0xc
cmp dword [esp + 0x4c], 0
je 0x10065b32
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x4c]
mov bl, byte [ecx + esi]
mov eax, dword [esp + 0x64]
call fcn.10020d50
mov ebx, dword [esp + 0x24]
cmp al, 0x41
jne 0x10065b1e
mov byte [ebx + esi], al
mov dl, byte [ebx + esi]
mov ecx, dword [esp + 0x64]
call fcn.10013820
test eax, eax
je 0x10065b32
mov byte [ebx + esi], 0x41
inc dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
jmp 0x10065b71
cmp byte [esp + 0xd], 0
je 0x10065b71
mov esi, dword [esp + 0x10]
mov edx, eax
mov eax, dword [esp + 0x40]
add edx, eax
push edx
push 0
push 0x1c
call fcn.1003a180
mov esi, 1
add esp, 0xc
add dword [esp + 0x28], esi
mov dword [esp + 0x58], 0
movzx edx, byte [esp + 0xd]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x50]
sub ecx, edx
push edi
call fcn.10041300
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x68]
push eax
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [edx + esi*2]
movzx edx, byte [ecx + eax*2 + 0x100b16d0]
mov eax, dword [esp + 0x28]
push edx
call fcn.1003f420
mov eax, dword [esp + 0x40]
add esp, 0x1c
cmp dword [esp + 0x38], 0
mov dword [esp + 0x28], eax
je 0x10065c75
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
lea ebx, [ecx + edx]
mov dword [esp + 0x64], eax
push ebx
mov eax, 1
mov esi, edi
mov dword [esp + 0x78], ebx
call fcn.1001b950
mov esi, dword [esp + 0x68]
add esp, 4
push ebx
push esi
push edi
call fcn.10085bc0
mov eax, dword [esp + 0x44]
add esp, 0xc
test byte [eax + 0x14], 0x80
jne 0x10065c36
mov eax, esi
call fcn.100138e0
test eax, eax
je 0x10065c36
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x10]
push ecx
push ebx
push 0x4c
call fcn.1003a180
add esp, 0xc
mov esi, dword [esp + 0x64]
mov bl, byte [esp + 0xe]
mov eax, esi
call fcn.10020d50
cmp al, 0x41
je 0x10065c6f
mov dl, byte [esp + 0xe]
mov ecx, esi
call fcn.10013820
test eax, eax
jne 0x10065c6f
mov edx, dword [esp + 0x74]
push edx
push edi
lea eax, [esp + 0x16]
mov ecx, 1
call fcn.10041300
add esp, 8
mov ebx, dword [esp + 0x14]
jmp 0x10065c9b
cmp byte [esp + 0xf], 0
je 0x10065c9f
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
add eax, ecx
push eax
push 0
push 0x1c
call fcn.1003a180
add esp, 0xc
mov dword [esp + 0x5c], 0
inc dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
call fcn.10025ff0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax + 0x20]
mov dword [ebx + 0x2c], edx
test ecx, ecx
je 0x10065ce7
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x6c]
movzx edx, byte [ecx + edx*2 + 0x100b16d8]
push edx
call fcn.1003f420
add esp, 0x14
mov eax, dword [esp + 0x34]
mov edi, ebx
call fcn.100122a0
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
call fcn.100122a0
cmp dword [esp + 0x68], 0
jne 0x10065ddd
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0xc]
test byte [eax + 0x2c], 0x20
mov ecx, dword [esp + 0x48]
jne 0x10065d55
mov edi, dword [esp + 0x1c]
inc dword [edi + 0x48]
mov ebx, dword [edi + 0x48]
mov esi, dword [esp + 0x10]
push ebx
push ecx
push 0x70
call fcn.1003a180
mov edx, dword [esp + 0x24]
add esp, 0xc
push 0xffffffffffffffff
push edx
mov edx, edi
call fcn.100136a0
mov eax, dword [esp + 0x20]
push ebx
push eax
push 0x42
call fcn.1003a180
jmp 0x10065dd6
cmp dword [esp + 0x18], ecx
je 0x10065ddd
call fcn.10013030
mov ecx, dword [esp + 0x1c]
mov edi, eax
movzx esi, word [edi + 0x2e]
call fcn.10013350
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x68], eax
cmp dx, word [edi + 0x2e]
jae 0x10065db7
mov eax, dword [esp + 0x68]
mov edx, dword [edi + 4]
mov si, word [edx + ebx*2]
mov edx, dword [esp + 0x50]
lea ecx, [ebx + eax]
push ecx
call fcn.10013000
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x14]
cwde
push eax
push ecx
push 0x2f
call fcn.100370c0
movzx edx, word [edi + 0x2e]
inc ebx
add esp, 0x10
cmp ebx, edx
jl 0x10065d81
movzx eax, word [edi + 0x2e]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x20]
push 0x44
call fcn.1003f420
mov edi, dword [esp + 0x28]
add esp, 0x14
mov eax, dword [esp + 0x2c]
test dword [eax + 0x24], 0x1000
je 0x10065df0
mov byte [edi + 0x25], 0x9a
jmp 0x10065dfe
cmp dword [esp + 0x20], 0
sete cl
add cl, 8
mov byte [edi + 0x25], cl
mov edx, dword [esp + 0x48]
mov dword [edi + 0x28], edx
mov cl, byte [eax + 0x26]
and cl, 1
mov byte [edi + 0x26], cl
test byte [eax + 0x24], 0xf
mov edi, dword [esp + 0x1c]
jne 0x10066580
mov edx, dword [esp + 0x14]
mov byte [edx + 0x27], 1
jmp 0x10066580
test edx, 0x2000
je 0x1006653d
mov eax, dword [edi + 0x44]
inc dword [edi + 0x48]
mov dword [esp + 0x6c], eax
inc eax
mov dword [edi + 0x44], eax
mov eax, dword [edi + 0x48]
xor ecx, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], ecx
call fcn.10037070
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
mov byte [ebx + 0x25], 0x12
mov dword [ebx + 0x28], eax
mov al, byte [esi + 0x29]
mov dword [esp + 0x60], edx
cmp al, 1
jbe 0x10065f7b
mov esi, dword [esp + 0x3c]
movzx ebx, al
sub ebx, dword [ebp + 0xc]
push 0
dec ebx
lea ecx, [ebx + ebx*4]
shl ecx, 4
add ecx, 0x58
push ecx
call fcn.10028800
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x10065ed8
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x50]
mov dl, bl
inc dl
movzx eax, dl
mov edx, dword [esp + 0x38]
mov dword [edx + 4], eax
mov dword [edx], eax
mov eax, dword [ebp + 8]
lea edi, [edx + 8]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 4]
add eax, 8
cmp ebx, 1
mov dword [esp + 0x5c], eax
jl 0x10065f43
add edx, 0x58
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x64]
add edx, 0x6c
mov edi, edi
movzx eax, byte [edx]
lea esi, [eax + eax*4]
shl esi, 4
add esi, dword [esp + 0x5c]
mov edi, ebx
mov ecx, 0x14
add edx, 0x48
add ebx, 0x50
sub dword [esp + 0x68], 1
rep movsd dword es:[edi], dword [esi]
jne 0x10065f20
mov edi, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
test byte [edx + 0x22], 8
mov ebx, dword [esp + 0x30]
jne 0x10065fc3
mov eax, dword [esp + 0x44]
test byte [eax + 0x2c], 0x20
jne 0x10065f84
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov esi, dword [esp + 0x10]
push eax
push 0
push 0x1c
mov dword [esp + 0x58], eax
call fcn.1003a180
add esp, 0xc
jmp 0x10065fb9
mov ecx, dword [esi + 4]
mov dword [esp + 0x38], ecx
jmp 0x10065f47
call fcn.10013030
mov esi, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [edi + 0x44]
lea ecx, [eax + 1]
mov dword [edi + 0x44], ecx
movzx edx, word [ebx + 0x2e]
push edx
push eax
push 0x39
mov dword [esp + 0x58], eax
call fcn.1003a180
add esp, 0xc
mov ecx, ebx
mov eax, edi
call fcn.100527a0
mov ebx, dword [esp + 0x30]
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x10]
push ecx
push 0
push 0x19
call fcn.1003a180
mov dword [esp + 0x88], eax
mov eax, dword [ebx + 0xc]
add esp, 0xc
cmp eax, 1
jle 0x100660fe
mov dword [esp + 0x68], 0
test eax, eax
jle 0x100660fe
xor ecx, ecx
mov dword [esp + 0x64], ecx
mov edx, dword [ebx + 0x14]
lea eax, [ecx + edx]
mov edx, dword [eax]
cmp eax, dword [esp + 0x2c]
je 0x10066055
test byte [edx + 4], 1
jne 0x10066055
mov eax, dword [ebx + 0x14]
add eax, ecx
test byte [eax + 0x14], 2
jne 0x10066055
mov esi, 0xfff
test word [eax + 0x12], si
je 0x10066055
mov esi, dword [esp + 0x3c]
push 0
push 0
push edx
push esi
call fcn.10031460
mov ebx, dword [esp + 0x44]
push eax
mov eax, esi
call fcn.10036930
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x44]
add esp, 0x14
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
inc eax
add ecx, 0x30
cmp eax, dword [ebx + 0xc]
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
jl 0x10066001
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x10066102
mov esi, dword [edi]
push 0
push 0x30
call fcn.10028800
mov esi, eax
add esp, 8
test esi, esi
je 0x100660a8
push 0x30
push 0
push esi
call fcn.10004b00
add esp, 0xc
or ecx, 0xffffffff
mov byte [esi], 0x48
mov word [esi + 0x22], cx
mov dword [esi + 0x18], 1
mov ebx, dword [edi]
test esi, esi
jne 0x100660c5
push esi
push ebx
call fcn.100316b0
mov edx, dword [esp + 0x3c]
push edx
push ebx
call fcn.100316b0
add esp, 0x10
jmp 0x100660fa
mov eax, dword [esp + 0x34]
mov dword [esi + 0x10], eax
mov eax, dword [eax + 4]
and eax, 0x100
or dword [esi + 4], eax
mov ebx, esi
call fcn.10024cb0
mov ecx, dword [edi]
mov eax, dword [ecx + 0x64]
cmp dword [esi + 0x18], eax
jle 0x100660fa
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
call fcn.100320c0
mov edi, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x34], esi
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x60]
xor eax, eax
cmp dword [esi + 0xc], eax
mov dword [esp + 0x20], 0x70
mov dword [esp + 0x50], eax
jle 0x10066404
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x14]
add eax, dword [esp + 0x64]
mov edx, dword [eax + 8]
cmp edx, dword [esp + 0x18]
je 0x10066140
mov ecx, 0x200
test word [eax + 0x12], cx
je 0x100663ed
mov eax, dword [eax]
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x10066159
test byte [eax + 4], 1
jne 0x10066159
mov dword [ebx + 0xc], eax
mov eax, ebx
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x3c]
push ecx
push 0
push 0
push eax
push edx
push edi
call fcn.10074990
add esp, 0x1c
mov dword [esp + 0x78], eax
test eax, eax
je 0x100663ed
mov ecx, dword [esp + 0x14]
movzx edx, byte [ecx + 0x24]
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
lea edx, [eax + 0x2e0]
mov eax, dword [esp + 0x44]
push eax
mov ecx, edi
call fcn.10063120
mov ecx, dword [ebp + 8]
add esp, 0x10
test byte [ecx + 0x22], 8
jne 0x10066310
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0xc]
mov esi, dword [esp + 0x50]
dec eax
cmp esi, eax
jne 0x100661c6
or esi, 0xffffffff
mov eax, dword [esp + 0x44]
test byte [eax + 0x2c], 0x20
mov dword [esp + 0x5c], esi
jne 0x10066210
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
push 0xffffffffffffffff
push eax
mov eax, edi
call fcn.1005ce30
add esp, 0x14
push esi
push eax
mov eax, dword [esp + 0x54]
push 0
push eax
mov eax, dword [esp + 0x20]
push 0x82
call fcn.1003f420
add esp, 0x14
mov dword [esp + 0x24], eax
jmp 0x10066310
call fcn.10013030
movzx ebx, word [eax + 0x2e]
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x68], eax
mov eax, dword [edi + 0x38]
cmp ebx, eax
mov dword [esp + 0x48], ecx
jg 0x10066237
add ecx, ebx
sub eax, ebx
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x38], eax
jmp 0x10066246
mov eax, dword [edi + 0x48]
lea edx, [eax + 1]
add eax, ebx
mov dword [esp + 0x48], edx
mov dword [edi + 0x48], eax
xor esi, esi
test ebx, ebx
jle 0x1006627e
lea esp, [esp]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x18]
push 0
add ecx, esi
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x4c]
push edx
movsx edx, word [ecx + esi*2]
push edx
push eax
mov eax, edi
call fcn.1005ce30
inc esi
add esp, 0x14
cmp esi, ebx
jl 0x10066250
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x100662a9
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
push ebx
push ecx
push 0
push edx
push 0x45
call fcn.1003f420
add esp, 0x14
mov dword [esp + 0x24], eax
test esi, esi
jl 0x100662f0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x10]
push eax
push ebx
push ecx
push 0x31
call fcn.100370c0
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
push 0
push edx
push eax
push 0x6e
call fcn.100370c0
add esp, 0x20
cmp dword [esp + 0x5c], 0
je 0x100662f0
mov eax, esi
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100662f0
mov eax, dword [eax + 0x20]
lea edx, [eax + eax*4]
mov byte [ecx + edx*4 - 0x11], 0x10
mov eax, dword [esp + 0x48]
push eax
mov eax, ebx
mov esi, edi
call fcn.1001b950
add esp, 4
cmp ebx, dword [edi + 0x38]
jle 0x10066310
mov ecx, dword [esp + 0x48]
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ecx
mov esi, dword [esp + 0x10]
mov ebx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x54], ebx
jg 0x1006632c
push esi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1006635a
mov ecx, dword [esi + 4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x58]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
xor edx, edx
mov byte [eax], 0x11
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
jmp 0x1006635c
xor edx, edx
mov eax, dword [esp + 0x24]
cmp eax, edx
je 0x1006637f
mov ecx, dword [esi + 0x20]
cmp ecx, eax
jbe 0x10066375
mov ebx, dword [esi + 4]
lea eax, [eax + eax*4]
mov dword [ebx + eax*4 + 8], ecx
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x58], ecx
mov eax, dword [esp + 0x78]
cmp byte [eax + 0x27], 0
je 0x10066391
mov dword [esp + 0x74], 1
mov ecx, dword [eax + 0x318]
test dword [ecx + 0x24], 0x200
je 0x100663d8
cmp dword [esp + 0x50], edx
je 0x100663af
mov esi, dword [esp + 0x28]
cmp dword [ecx + 0x1c], esi
jne 0x100663d8
mov esi, dword [esp + 0x44]
test byte [esi + 0x2c], 0x20
je 0x100663c7
mov esi, dword [ecx + 0x1c]
mov ebx, dword [esi + 0x34]
and bl, 3
cmp bl, 2
je 0x100663d8
mov ecx, dword [ecx + 0x1c]
or dword [esp + 0x20], 0x1000
mov dword [esp + 0x28], ecx
jmp 0x100663dc
mov dword [esp + 0x28], edx
push eax
call fcn.1003b2a0
mov esi, dword [esp + 0x64]
mov ebx, dword [esp + 0x38]
add esp, 4
mov eax, dword [esp + 0x50]
add dword [esp + 0x64], 0x30
inc eax
cmp eax, dword [esi + 0xc]
mov dword [esp + 0x50], eax
jl 0x10066121
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov dword [eax + 0x30], ecx
test ecx, ecx
je 0x1006641a
mov edx, dword [esp + 0x6c]
mov dword [eax + 8], edx
test ebx, ebx
je 0x10066433
mov eax, dword [esp + 0x3c]
push ebx
push eax
mov dword [ebx + 0xc], 0
call fcn.100316b0
add esp, 8
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
jbe 0x1006644c
mov edx, dword [edx + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 4], eax
mov edx, dword [esp + 0x10]
mov esi, dword [edx + 0x20]
mov ecx, dword [edx + 0x18]
cmp dword [ecx + 0x54], esi
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0xc]
jg 0x10066473
push edx
call fcn.100318e0
mov edx, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x1006649a
mov ecx, dword [edx + 4]
inc dword [edx + 0x20]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor esi, esi
mov byte [eax], 0x10
mov byte [eax + 3], 0
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
jmp 0x1006649c
xor esi, esi
mov ecx, dword [edx + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x70]
js 0x100664b5
mov ebx, dword [ecx + 0x70]
cmp ebx, esi
je 0x100664b5
mov esi, dword [edx + 0x20]
mov dword [ebx + eax*4], esi
mov edx, dword [edx + 0x20]
mov eax, dword [ebp + 8]
dec edx
mov dword [ecx + 0x58], edx
cmp byte [eax + 0x29], 1
jbe 0x10066523
cmp dword [esp + 0x38], 0
je 0x10066523
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10066516
cmp dword [eax + 0x208], 0
je 0x100664ec
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
call fcn.10022ca0
jmp 0x10066523
mov ecx, dword [esp + 0x38]
cmp ecx, dword [eax + 0x114]
jb 0x10066516
cmp ecx, dword [eax + 0x118]
jae 0x10066516
mov edx, dword [eax + 0x110]
mov dword [ecx], edx
dec dword [eax + 0xfc]
mov dword [eax + 0x110], ecx
jmp 0x10066523
mov eax, dword [esp + 0x38]
push eax
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
cmp dword [esp + 0x74], 0
jne 0x10066580
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
call fcn.100122a0
mov edi, dword [esp + 0x1c]
jmp 0x10066580
test byte [esp + 0x7c], 8
je 0x1006654a
mov byte [ebx + 0x25], 0x9a
jmp 0x10066580
mov eax, dword [esp + 0x20]
mov cl, byte [eax + 0x100b16dc]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x10]
mov byte [ebx + 0x25], cl
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x28], ecx
movzx eax, byte [eax + 0x100b16e0]
push edx
push ecx
push eax
call fcn.1003a180
add esp, 0xc
inc eax
mov byte [ebx + 0x27], 1
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 0xc]
mov esi, dword [eax + 0x14]
test ebx, ebx
jle 0x100665e1
mov edi, edi
test byte [esi + 0x14], 6
jne 0x100665d5
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
and eax, dword [edx + 0x40]
and ecx, dword [edx + 0x44]
or eax, ecx
je 0x100665b3
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x27], 1
jmp 0x100665d5
cmp dword [edx], 0
mov eax, dword [esi]
je 0x100665c0
test byte [eax + 4], 1
je 0x100665d5
mov edx, dword [esp + 0x54]
push 0x10
push edx
push eax
push edi
call fcn.10083db0
add esp, 0x10
or byte [esi + 0x14], 4
dec ebx
add esi, 0x30
test ebx, ebx
jg 0x10066590
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x74], eax
test eax, eax
jle 0x10066722
jmp 0x10066600
test byte [esi + 0x14], 6
jne 0x1006670a
mov eax, 0x402
cmp word [esi + 0x12], ax
jne 0x1006670a
mov ecx, dword [esp + 0x18]
cmp dword [esi + 8], ecx
jne 0x1006670a
mov edx, dword [esp + 0x14]
cmp dword [edx], 0
jne 0x1006670a
mov eax, dword [esi]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 0
push ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0xc]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, 3
call fcn.1005b390
add esp, 0x10
mov dword [esp + 0x7c], eax
test eax, eax
je 0x1006670a
test byte [eax + 0x14], 4
jne 0x1006670a
mov esi, dword [esp + 0x3c]
push 0
push 0x30
call fcn.10028800
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10066706
mov edx, dword [esp + 0x7c]
mov esi, dword [edx]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x78]
push 0x10
mov ecx, 0xc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x20]
push edx
push ebx
push eax
mov dword [ebx + 0xc], ecx
call fcn.10083db0
mov ecx, dword [esp + 0x4c]
add esp, 0x10
test ecx, ecx
je 0x100666f9
cmp dword [ecx + 0x208], 0
je 0x100666d3
mov eax, ebx
call fcn.10022ca0
jmp 0x10066702
cmp ebx, dword [ecx + 0x114]
jb 0x100666f9
cmp ebx, dword [ecx + 0x118]
jae 0x100666f9
mov edx, dword [ecx + 0x110]
mov dword [ebx], edx
dec dword [ecx + 0xfc]
mov dword [ecx + 0x110], ebx
jmp 0x10066702
push ebx
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x74]
dec eax
add esi, 0x30
mov dword [esp + 0x74], eax
mov dword [esp + 0x2c], esi
test eax, eax
jg 0x10066600
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
je 0x10066810
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x20]
mov edx, dword [eax]
mov dword [eax + 0x1c], ecx
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x54], esi
mov dword [esp + 0x7c], edx
jg 0x10066757
push ebx
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x10066784
mov eax, dword [ebx + 4]
mov ecx, 1
add dword [ebx + 0x20], ecx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x19
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
lea eax, [edi + 0x80]
mov esi, 0xa
nop
mov edx, dword [eax]
test edx, edx
je 0x100667b8
cmp byte [eax - 6], 0
je 0x100667b2
mov cl, byte [edi + 0x13]
cmp cl, 8
jae 0x100667ae
movzx ecx, cl
mov dword [edi + ecx*4 + 0x18], edx
inc byte [edi + 0x13]
mov byte [eax - 6], 0
mov dword [eax], 0
add eax, 0x14
sub esi, 1
jne 0x10066790
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x14]
xor ebx, ebx
cmp dword [eax + 0xc], ebx
jle 0x10066810
mov edx, dword [esp + 0x14]
test byte [esi + 0x14], 6
jne 0x10066803
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
and eax, dword [edx + 0x40]
and ecx, dword [edx + 0x44]
or eax, ecx
jne 0x10066803
mov edx, dword [esp + 0x54]
mov eax, dword [esi]
push 0x10
push edx
push eax
push edi
call fcn.10083db0
mov edx, dword [esp + 0x24]
add esp, 0x10
or byte [esi + 0x14], 4
mov ecx, dword [esp + 0x30]
inc ebx
add esi, 0x30
cmp ebx, dword [ecx + 0xc]
jl 0x100667d2
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret