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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
mov ebx, edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ebx
dec dword [edi + 0x38]
mov edx, dword [ebx + 0x1c]
mov esi, dword [edi + 8]
and edx, 0x80
cmp byte [ebp + 0x24], 0
mov eax, dword [edi + 0x38]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edx
jne 0x1007ad32
test edx, edx
lea edi, [esi + 0x68]
mov edx, 0x1f
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x24]
mov ecx, 0x1c
cmove ecx, edx
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x28], ecx
cmp dword [esi + 0x70], edx
jg 0x1007acc5
push dword [ebp + 0x14]
mov edx, ecx
mov ecx, esi
push eax
push dword [ebp + 0xc]
call fcn.10043ee0
add esp, 0xc
mov edx, eax
jmp 0x1007ad11
mov ebx, dword [esp + 0x28]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
xor edi, edi
mov byte [eax + ecx*4], bl
mov ebx, dword [ebp + 0xc]
mov word [eax + ecx*4 + 2], di
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
lea eax, [esi + 0x68]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x1007ad32
mov eax, dword [esp + 0x20]
lea ecx, [edx + edx*4]
mov eax, dword [eax]
mov byte [eax + ecx*4 + 1], 0xfd
lea ecx, [eax + ecx*4]
mov ax, word [ebp + 0x18]
cwde
mov dword [ecx + 0x10], eax
push 0
push 0
mov edx, ebx
mov ecx, edi
call fcn.10082520
mov esi, dword [ebp + 8]
add esp, 8
test eax, eax
jne 0x1007ad59
test esi, esi
jne 0x1007ad59
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
jmp 0x1007afd5
mov dword [esp + 0x20], 0
mov ebx, esi
test esi, esi
je 0x1007adb9
mov esi, dword [esp + 0x1c]
nop dword [eax + eax]
cmp byte [ebx + 8], 0x80
jne 0x1007adaf
test byte [ebx + 9], 3
je 0x1007adaf
cmp byte [ebx + 0xa], 0
je 0x1007ad8c
mov dword [esp + 0x20], 0xffffffff
jmp 0x1007adaf
movzx eax, byte [ebp + 0x20]
mov edx, ebx
push eax
push esi
mov ecx, edi
call fcn.100a5520
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x1007adaf
mov eax, dword [esp + 0x20]
or eax, dword [ecx + 0x10]
mov dword [esp + 0x20], eax
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jne 0x1007ad70
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x1c]
mov ecx, edi
mov edx, ebx
call fcn.10082430
mov edx, dword [edi + 0x2c]
or dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
movsx eax, word [ebx + 0x22]
inc eax
add eax, edx
mov dword [edi + 0x2c], eax
mov edx, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], edx
jg 0x1007ae02
push 0
push dword [esp + 0x18]
mov edx, 0x50
push dword [ebp + 0x14]
call fcn.10043ee0
add esp, 0xc
jmp 0x1007ae38
lea eax, [edx + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x50
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
xor eax, eax
cmp ax, word [ebx + 0x22]
jge 0x1007ae9d
mov esi, dword [esp + 0x10]
xor edi, edi
mov edx, dword [esp + 0x20]
nop word [eax + eax]
cmp edx, 0xffffffff
je 0x1007ae67
cmp edi, 0x1f
jg 0x1007ae8d
mov eax, 1
mov ecx, edi
shl eax, cl
test edx, eax
je 0x1007ae8d
mov edx, edi
mov ecx, ebx
call fcn.10070440
mov ecx, dword [esp + 0x14]
mov edx, ebx
inc ecx
cwde
add eax, ecx
mov ecx, esi
push eax
push edi
push dword [ebp + 0xc]
call fcn.10061b60
mov edx, dword [esp + 0x2c]
add esp, 0xc
movsx eax, word [ebx + 0x22]
inc edi
cmp edi, eax
jl 0x1007ae50
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov ebx, esi
mov eax, dword [eax + 0x6c]
mov dword [esp + 0x28], eax
test esi, esi
je 0x1007af05
mov esi, dword [esp + 0x1c]
cmp byte [ebx + 8], 0x80
jne 0x1007aef7
cmp byte [ebx + 9], 1
jne 0x1007aef7
cmp byte [ebx + 0xa], 0
jne 0x1007aee0
push dword [esp + 0x18]
movzx eax, byte [ebp + 0x20]
mov edx, ebx
push eax
push dword [esp + 0x1c]
mov ecx, edi
push esi
call fcn.100a5570
add esp, 0x10
jmp 0x1007aef7
cmp dword [edi + 0x78], 0
jne 0x1007aef7
push dword [esp + 0x14]
mov edx, ebx
mov ecx, edi
push esi
call fcn.100a4900
add esp, 8
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jne 0x1007aeb2
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + 0x6c]
cmp eax, edx
jge 0x1007afb0
cmp dword [esp + 0x2c], 0
mov eax, 0x1c
mov ecx, 0x1f
cmove eax, ecx
mov dword [esp + 0x2c], eax
cmp dword [ebx + 0x70], edx
jg 0x1007af49
push dword [ebp + 0x14]
mov edx, eax
mov ecx, ebx
push dword [esp + 0x1c]
push dword [ebp + 0xc]
call fcn.10043ee0
add esp, 0xc
mov edx, eax
jmp 0x1007af8d
lea eax, [edx + 1]
xor esi, esi
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov ebx, dword [esp + 0x2c]
mov word [eax + ecx*4 + 2], si
mov esi, dword [ebp + 0xc]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [ebp + 0x14]
mov byte [eax + ecx*4], bl
mov ebx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [ebp + 8]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
jne 0x1007afab
mov eax, dword [ebx + 0x68]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
lea ecx, [eax + ecx*4]
mov ax, word [ebp + 0x18]
cwde
mov dword [ecx + 0x10], eax
or edx, 0xffffffff
jmp 0x1007afb3
mov edx, dword [ebp + 0x28]
mov ebx, dword [esp + 0x1c]
mov ecx, edi
push 0
push 0
push 0
push dword [esp + 0x20]
mov dword [esp + 0x30], edx
mov edx, ebx
call fcn.10081e00
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp byte [ebx + 0x2b], 2
je 0x1007b14f
push eax
push 0
push dword [ebp + 0x10]
mov edx, ebx
mov ecx, edi
push dword [ebp + 0xc]
call fcn.1007b200
mov ecx, dword [esp + 0x20]
xor edx, edx
add esp, 0x10
cmp byte [ebp + 0x1c], dl
setne dl
mov eax, dword [ecx + 0x6c]
mov dword [esp + 0x2c], eax
cmp dword [ecx + 0x70], eax
jg 0x1007b021
push 0
push edx
push dword [ebp + 0xc]
mov edx, 0x82
call fcn.10043ee0
add esp, 0xc
jmp 0x1007b058
mov esi, dword [ebp + 0xc]
inc eax
mov dword [ecx + 0x6c], eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [ebp + 8]
mov dword [eax + ecx*4], 0x82
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [edi + 0x12], 0
je 0x1007b072
mov ecx, dword [ebx]
test ecx, ecx
je 0x1007b08c
mov edx, str.sqlite_stat1
call fcn.100226c0
test eax, eax
jne 0x1007b08c
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
cmp byte [ecx + 0x57], 0
je 0x1007b0dd
push ebx
mov edx, 0xfffffffb
call fcn.10044b40
add esp, 4
mov edx, dword [esp + 0x10]
cmp byte [ebp + 0x24], 0
je 0x1007b0b0
mov eax, dword [edx + 0x6c]
test eax, eax
jle 0x1007b0b0
lea ecx, [eax + eax*4]
mov esi, 4
mov eax, dword [edx + 0x68]
mov word [eax + ecx*4 - 0x12], si
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x20]
test eax, eax
js 0x1007b124
cmp eax, dword [ebp + 0xc]
je 0x1007b124
mov ecx, dword [edx + 0x6c]
cmp dword [edx + 0x70], ecx
jg 0x1007b0f1
mov ecx, dword [esp + 0x10]
mov edx, 0x82
push 0
push 0
push eax
call fcn.10043ee0
add esp, 0xc
jmp 0x1007b124
mov eax, dword [edx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xfb
mov dword [eax + ecx*4 - 4], ebx
jmp 0x1007b090
lea eax, [ecx + 1]
mov dword [edx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x68]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x82
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x6c]
test ecx, ecx
jle 0x1007b14f
mov eax, dword [eax + 0x68]
lea ecx, [ecx + ecx*4]
mov edx, 2
mov dword [esp + 0x2c], 0
cmp byte [ebp + 0x24], dl
cmovne edx, dword [esp + 0x2c]
mov word [eax + ecx*4 - 0x12], dx
push 0
push 0
push dword [esp + 0x1c]
mov edx, ebx
mov ecx, edi
push 0
call fcn.100836d0
add esp, 0x10
test esi, esi
je 0x1007b1bc
nop dword [eax]
cmp byte [esi + 8], 0x80
jne 0x1007b1b5
cmp byte [esi + 9], 2
jne 0x1007b1b5
cmp byte [esi + 0xa], 0
jne 0x1007b19e
push dword [esp + 0x18]
movzx eax, byte [ebp + 0x20]
mov edx, esi
push eax
push dword [esp + 0x1c]
mov ecx, edi
push ebx
call fcn.100a5570
add esp, 0x10
jmp 0x1007b1b5
cmp dword [edi + 0x78], 0
jne 0x1007b1b5
push dword [esp + 0x14]
mov edx, esi
mov ecx, edi
push ebx
call fcn.100a4900
add esp, 8
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x1007b170
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
not ebx
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x1007b1e1
push ebx
call fcn.100447c0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x40]
mov eax, dword [edx + 0x6c]
pop edi
pop esi
mov dword [ecx + ebx*4], eax
pop ebx
mov esp, ebp
pop ebp
ret