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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
inc eax
mov dword [esp + 0xc], edx
mov dword [ebp + 0x10], eax
inc eax
mov edx, eax
mov byte [esp + 3], 1
push ebx
mov dword [esp + 0x34], edx
push esi
lea ebx, [edx + 1]
mov dword [esp + 0x50], eax
add edx, 2
mov dword [esp + 0x30], ebx
mov esi, ecx
mov dword [esp + 0x3c], edx
inc edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x4c], edx
inc edx
mov dword [esp + 0x48], edx
inc edx
cmp dword [esi + 0x2c], edx
mov ecx, edx
push edi
cmovg ecx, dword [esi + 0x2c]
mov edi, dword [esi]
mov dword [esi + 0x2c], ecx
mov esi, dword [esi + 8]
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], edx
test esi, esi
jne 0x1007da7b
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x78], esi
jne 0x1007da6a
test byte [edi + 0x44], 8
jne 0x1007da6a
mov byte [eax + 0x17], 1
mov ecx, eax
call fcn.1005f830
mov esi, eax
test esi, esi
je 0x1007e1da
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1007e1da
cmp dword [eax + 0x1c], 0
je 0x1007e1da
mov edx, dword [eax]
mov ecx, str.sqlite__
push 0x5c
push 0x105f5ed4
call fcn.10089170
add esp, 8
test eax, eax
je 0x1007e1da
mov edx, dword [esp + 0x18]
mov ecx, edi
mov edx, dword [edx + 0x48]
call fcn.10096180
mov ecx, dword [edi + 0x10]
mov edx, eax
mov edi, dword [esp + 0x1c]
add edx, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
push dword [ecx + edx*8]
mov edx, 0x1c
mov ecx, edi
push 0
push dword [eax]
call fcn.1007f7a0
add esp, 0xc
test eax, eax
jne 0x1007e1da
mov eax, dword [esp + 0x18]
mov ecx, edi
mov edx, dword [esp + 0x38]
push dword [eax]
push 0
push dword [eax + 0x1c]
call fcn.1007f830
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov edx, ecx
inc ecx
mov dword [esp + 0x14], ecx
inc ecx
cmp dword [edi + 0x28], ecx
push 0x6a
cmovg ecx, dword [edi + 0x28]
push dword [esp + 0x1c]
mov dword [edi + 0x28], ecx
mov ecx, edi
push dword [esp + 0x40]
mov dword [esp + 0x68], edx
call fcn.1008d890
mov edi, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x40]
mov ecx, esi
push dword [edi]
call fcn.1005fd70
mov edx, dword [edi + 8]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], edx
test edx, edx
je 0x1007e123
nop word [eax + eax]
test eax, eax
je 0x1007db6c
cmp eax, edx
jne 0x1007e110
movzx eax, byte [esp + 0xf]
xor ecx, ecx
cmp dword [edx + 0x24], ecx
cmovne ecx, eax
test byte [edi + 0x24], 0x20
mov byte [esp + 0xf], cl
je 0x1007ddeb
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
jne 0x1007ddeb
movzx ebx, word [edx + 0x32]
mov eax, dword [edi]
lea edi, [ebx - 1]
push 0
push eax
push 0
push dword [esp + 0x5c]
mov edx, 0x61
mov dword [esp + 0x38], edi
push 0
mov ecx, esi
call fcn.1005ff40
mov edx, dword [esp + 0x30]
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add ecx, edi
cmp dword [edx + 0x2c], ecx
push dword [esp + 0x38]
cmovg ecx, dword [edx + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, 0x6a
push dword [eax + 0x2c]
mov ecx, esi
push dword [esp + 0x1c]
call fcn.1005fb40
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
call fcn.100609e0
push dword [esp + 0x54]
mov edx, 0x43
mov ecx, esi
push ebx
call fcn.1005fc90
mov ebx, dword [ebp + 0x10]
mov edx, 0x43
mov ecx, esi
lea eax, [ebx + 2]
push eax
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + 0x32]
push eax
call fcn.1005fc90
push 0xfffffffffffffff8
push 0x105f7860
push ebx
lea eax, [ebx + 1]
mov edx, 0xa4
push eax
push 0
mov ecx, esi
call fcn.1005ff40
mov eax, dword [esi + 0x88]
add esp, 0x24
test eax, eax
jle 0x1007dc5e
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov ebx, dword [esp + 0x14]
mov edx, 0x25
push ebx
mov ecx, esi
call fcn.1005fc20
add esp, 4
mov dword [esp + 0x58], eax
mov edx, 0x43
mov ecx, esi
push dword [esp + 0x3c]
push 0
call fcn.1005fc90
mov eax, dword [esi + 0x88]
add esp, 8
mov dword [esp + 0x30], eax
test edi, edi
jle 0x1007df22
mov ecx, esi
call fcn.10060150
lea ecx, [edi*4]
mov ebx, eax
push 0
push ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x4c], ebx
call fcn.10041390
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1007e105
mov edx, 0xd
mov ecx, esi
call fcn.1005fbb0
mov eax, dword [esi + 0x88]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
cmp edi, 1
jne 0x1007dd0d
cmp word [eax + 0x32], di
jne 0x1007dd0d
cmp byte [eax + 0x36], 0
je 0x1007dd0d
push ebx
push dword [esp + 0x24]
lea edx, [edi + 0x32]
mov ecx, esi
call fcn.1005fc90
mov eax, dword [esp + 0x18]
add esp, 8
xor ebx, ebx
test edi, edi
jle 0x1007ddab
nop word [eax + eax]
mov edx, dword [eax + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + ebx*4]
call fcn.10081880
push dword [esp + 0x3c]
mov edx, 0x43
mov ecx, esi
push ebx
mov edi, eax
call fcn.1005fc90
push dword [esp + 0x3c]
mov edx, 0x63
mov ecx, esi
push ebx
push dword [esp + 0x24]
call fcn.1005fb40
mov eax, dword [esp + 0x34]
add esp, 0x14
add eax, ebx
mov edx, 0x34
mov ecx, esi
push 0xfffffffffffffffe
push edi
push eax
push 0
push dword [esp + 0x44]
call fcn.1005ff40
mov ecx, dword [esp + 0x40]
add esp, 0x14
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x1007dd9a
lea ecx, [eax + eax*4]
mov edx, 0x80
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0x28]
inc ebx
mov eax, dword [esp + 0x10]
cmp ebx, edi
jl 0x1007dd20
push dword [esp + 0x3c]
mov edx, 0x43
mov ecx, esi
push edi
call fcn.1005fc90
mov edx, dword [esp + 0x4c]
add esp, 8
mov ecx, esi
call fcn.1005fd00
mov ecx, dword [esp + 0x30]
sub ecx, 1
mov edx, dword [esi + 0x88]
jns 0x1007dddc
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x1007de05
mov eax, 0x106159c4
jmp 0x1007de0e
test byte [edx + 0x38], 8
movzx ebx, word [edx + 0x34]
mov eax, dword [edx]
je 0x1007db9a
movzx edi, word [edx + 0x32]
dec edi
jmp 0x1007db9d
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ebx, dword [esp + 0x28]
xor edi, edi
mov dword [eax + 8], edx
test ebx, ebx
jle 0x1007deb8
nop
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 0x88]
mov ecx, dword [eax + edi*4]
test ecx, ecx
jns 0x1007de34
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x1007de43
mov eax, 0x106159c4
jmp 0x1007de4c
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x1007de7a
mov eax, dword [esp + 0x20]
mov edx, 0x63
add eax, edi
mov ecx, esi
push eax
push edi
push dword [esp + 0x1c]
call fcn.1005fb00
add esp, 0xc
jmp 0x1007deaf
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x63
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x20]
add eax, edi
mov dword [ecx + 0xc], eax
inc edi
cmp edi, ebx
jl 0x1007de20
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x1007ded7
mov eax, dword [esp + 0x44]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov edi, dword [esp + 0x48]
cmp dword [edi + 0x1d8], 0
je 0x1007def1
mov edx, dword [esp + 0x2c]
mov ecx, edi
call fcn.10041070
jmp 0x1007df1e
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [edi + 0x128]
jb 0x1007df15
cmp ecx, dword [edi + 0x12c]
jae 0x1007df15
mov eax, dword [edi + 0x124]
mov dword [ecx], eax
mov dword [edi + 0x124], ecx
jmp 0x1007df1e
push ecx
call fcn.10041000
add esp, 4
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
mov edx, 0xa4
push 0xfffffffffffffff8
push 0x105f953c
push edi
push dword [ebp + 0x10]
mov ecx, esi
push 1
call fcn.1005ff40
mov eax, dword [esi + 0x88]
add esp, 0x14
test eax, eax
jle 0x1007df5c
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x1007df82
push 0
push dword [esp + 0x34]
mov edx, 7
mov ecx, esi
push ebx
call fcn.1005fb00
add esp, 0xc
jmp 0x1007dfb4
mov edx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 7
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffff8
push 0x105f7704
push dword [esp + 0x54]
mov edx, 0xa4
mov ecx, esi
push dword [ebp + 0x10]
push 0
call fcn.1005ff40
mov eax, dword [esi + 0x88]
add esp, 0x14
test eax, eax
jle 0x1007dfed
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
push 0
push 0x105fcb10
push edi
push 3
push dword [esp + 0x50]
mov edx, 0x65
mov ecx, esi
call fcn.1005ff40
mov eax, dword [esi + 0xc]
add esp, 0x14
mov ecx, dword [esi + 0x88]
mov ebx, dword [esp + 0x24]
cmp dword [eax + 0x30], ecx
jg 0x1007e036
push 0
push ebx
push dword [ebp + 0xc]
mov edx, 0x75
mov ecx, esi
call fcn.1005fb00
mov edx, dword [ebp + 0xc]
add esp, 0xc
jmp 0x1007e067
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x75
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x1007e089
push ebx
push edi
push edx
mov edx, 0x76
mov ecx, esi
call fcn.1005fb00
add esp, 0xc
jmp 0x1007e0b7
mov ebx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x76
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x1007e0d1
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esp + 0x58]
mov edx, dword [esi + 0x88]
test ecx, ecx
jns 0x1007e0e2
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x1007e0f1
mov eax, 0x106159c4
jmp 0x1007e0fa
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov al, byte [esp + 0xf]
mov byte [esp + 0xf], al
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x14]
mov dword [esp + 0x10], edx
test edx, edx
jne 0x1007db60
mov ebx, dword [esp + 0x34]
test eax, eax
jne 0x1007e1da
mov al, byte [esp + 0xf]
test al, al
je 0x1007e1da
mov edi, dword [esp + 0x4c]
mov edx, 0x66
push edi
push dword [esp + 0x60]
mov ecx, esi
call fcn.1005fc90
push edi
mov edx, 0x16
mov ecx, esi
call fcn.1005fc20
add esp, 0xc
mov edx, 0x46
mov ecx, esi
mov edi, eax
push dword [esp + 0x50]
push 0
call fcn.1005fc90
push 0
push 0x105fcb10
push ebx
push 3
push dword [esp + 0x58]
mov edx, 0x65
mov ecx, esi
call fcn.1005ff40
add esp, 0x1c
mov edx, 0x75
mov ecx, esi
push dword [esp + 0x24]
push dword [ebp + 0xc]
call fcn.1005fc90
push dword [esp + 0x2c]
mov edx, 0x76
mov ecx, esi
push ebx
push dword [ebp + 0xc]
call fcn.1005fb40
mov eax, dword [esi + 0x88]
add esp, 0x14
test eax, eax
jle 0x1007e1d1
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov edx, edi
mov ecx, esi
call fcn.100604f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret