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

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov dword [esp + 0x10], 0
dec dword [ebp + 0x38]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebp + 0x38]
and cl, 0x80
mov edi, dword [ebp + 8]
neg cl
mov dword [esp + 0x18], edx
sbb cl, cl
and cl, 0xfd
add cl, 0x21
cmp byte [esp + 0x4c], 0
mov dword [esp + 0x20], ecx
jne 0x6a7c5c
mov ax, word [esp + 0x40]
cwde
push eax
push dword [esp + 0x40]
movzx eax, cl
push edx
push dword [esp + 0x40]
push eax
push edi
call fcn.006bfbb0
add esp, 0x18
push 0
push 0
push ebx
push ebp
call fcn.006a0540
add esp, 0x10
test eax, eax
mov eax, dword [esp + 0x30]
jne 0x6a7c7f
test eax, eax
jne 0x6a7c7f
mov esi, dword [esp + 0x50]
jmp 0x6a7e2a
movzx ecx, byte [esp + 0x48]
push ecx
push ebx
push 3
push 0
push 0
push eax
push ebp
mov dword [esp + 0x38], ecx
call fcn.006bb7a0
push ebx
push ebp
mov dword [esp + 0x38], eax
call fcn.006a0430
mov ecx, dword [ebp + 0x2c]
add esp, 0x24
mov edx, dword [esp + 0x14]
or edx, eax
movsx eax, word [ebx + 0x22]
mov dword [esp + 0x14], edx
lea esi, [ecx + 1]
inc ecx
add eax, ecx
mov dword [esp + 0x10], esi
mov dword [ebp + 0x2c], eax
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x6a7ce3
push 0
push esi
push dword [esp + 0x44]
push 0x4f
push edi
call fcn.00674520
mov edx, dword [esp + 0x28]
add esp, 0x14
jmp 0x6a7d16
mov ebp, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
xor eax, eax
xor esi, esi
cmp ax, word [ebx + 0x22]
jge 0x6a7dbe
cmp edx, 0xffffffff
je 0x6a7d3b
cmp esi, 0x1f
jg 0x6a7dad
mov eax, 1
mov ecx, esi
shl eax, cl
test edx, eax
je 0x6a7dad
test byte [ebx + 0x1c], 0x20
je 0x6a7d8e
movzx eax, si
test ax, ax
js 0x6a7d8e
movsx ecx, ax
xor ebp, ebp
xor edx, edx
test ecx, ecx
jle 0x6a7d6c
mov eax, dword [ebx + 4]
mov ebp, ecx
add eax, 0xe
lea esp, [esp]
test byte [eax], 0x20
jne 0x6a7d66
inc edx
add eax, 0x10
dec ecx
jne 0x6a7d60
mov eax, dword [ebx + 4]
mov ecx, ebp
add ecx, ecx
test byte [eax + ecx*8 + 0xe], 0x20
je 0x6a7d89
mov ax, word [ebx + 0x24]
sub ax, dx
add ax, bp
movzx eax, ax
jmp 0x6a7d91
movzx eax, dx
jmp 0x6a7d91
movzx eax, si
mov ecx, dword [esp + 0x10]
cwde
inc ecx
add eax, ecx
push eax
push esi
push dword [esp + 0x3c]
push ebx
push edi
call fcn.00699a10
mov edx, dword [esp + 0x28]
add esp, 0x14
movsx eax, word [ebx + 0x22]
inc esi
cmp esi, eax
jl 0x6a7d24
mov ebp, dword [esp + 0x28]
push dword [esp + 0x18]
mov esi, dword [edi + 0x74]
push dword [esp + 0x20]
push dword [esp + 0x18]
push ebx
push 1
push 0
push pe_nt_image_headers32
push dword [esp + 0x4c]
push ebp
call fcn.006932e0
add esp, 0x24
cmp esi, dword [edi + 0x74]
jge 0x6a7e12
mov ax, word [esp + 0x40]
cwde
push eax
push dword [esp + 0x40]
mov eax, dword [esp + 0x28]
push dword [esp + 0x20]
movzx eax, al
push dword [esp + 0x40]
push eax
push edi
call fcn.006bfbb0
add esp, 0x18
or esi, 0xffffffff
jmp 0x6a7e16
mov esi, dword [esp + 0x50]
push 0
push 0
push 0
push dword [esp + 0x1c]
push ebx
push ebp
call fcn.0069f530
add esp, 0x18
cmp byte [ebx + 0x2b], 2
je 0x6a7f85
push esi
push 0
push dword [esp + 0x40]
mov byte [esp + 0x34], 0
push dword [esp + 0x40]
push ebx
push ebp
call fcn.006a7ff0
mov ecx, dword [edi + 0x74]
xor edx, edx
add esp, 0x18
cmp byte [esp + 0x44], dl
setne dl
cmp dword [edi + 0x78], ecx
jg 0x6a7e76
push 0
push edx
push dword [esp + 0x3c]
push 0x81
push edi
call fcn.00674520
add esp, 0x14
jmp 0x6a7ea9
mov ebx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x81
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [ebp + 0x12], 0
je 0x6a7ec7
mov eax, dword [ebx]
test eax, eax
je 0x6a7eef
push str.sqlite_stat1
push eax
call fcn.006bb120
add esp, 8
test eax, eax
jne 0x6a7eef
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x6a7edd
push ebx
push 0xfffffffffffffffa
push eax
call fcn.006612f0
add esp, 0xc
jmp 0x6a7eef
mov eax, dword [edi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xfa
mov dword [eax + ecx*4 - 4], ebx
cmp byte [esp + 0x4c], 0
je 0x6a7f0d
mov eax, dword [edi + 0x74]
test eax, eax
jle 0x6a7f0d
lea ecx, [eax + eax*4]
mov edx, 4
mov eax, dword [edi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
test esi, esi
js 0x6a7f63
cmp esi, dword [esp + 0x34]
je 0x6a7f63
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x6a7f34
push 0
push 0
push esi
push 0x81
push edi
call fcn.00674520
add esp, 0x14
jmp 0x6a7f63
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x81
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x4c], 2
mov cl, 2
je 0x6a7f70
mov cl, byte [esp + 0x28]
mov eax, dword [edi + 0x74]
test eax, eax
jle 0x6a7f85
movzx edx, cl
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
push 0
push 0
push dword [esp + 0x18]
push 0
push ebx
push ebp
call fcn.0069f4a0
mov esi, dword [esp + 0x30]
movzx eax, byte [esp + 0x60]
push esi
push eax
push dword [esp + 0x30]
push ebx
push 2
push 0
push pe_nt_image_headers32
push dword [esp + 0x64]
push ebp
call fcn.006932e0
mov ecx, dword [edi + 0xc]
add esp, 0x3c
not esi
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x6a7fdc
push esi
push edi
push ecx
call fcn.006865c0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
pop edi
mov dword [ecx + esi*4], eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret