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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
test edi, edi
jne 0x1008a33f
mov eax, str.NULL
jmp 0x1008a358
mov al, byte [edi + 0x61]
cmp al, 0x76
je 0x1008a392
cmp al, 0xba
je 0x1008a353
cmp al, 0x6d
mov eax, str.invalid
jne 0x1008a358
mov eax, str.unopened
push eax
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.10021740
add esp, 0xc
push 0x10156e9c
push 0x20354
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.10021740
add esp, 0x14
mov eax, 0x15
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc]
test ecx, ecx
mov esi, 0x1015671b
cmovne esi, ecx
test eax, eax
je 0x1008a3ad
push eax
call dword [0x10165b48]
add esp, 4
mov dword [edi + 0x40], ebx
cmp dword [edi + 0x124], ebx
je 0x1008a3c3
xor edx, edx
mov ecx, edi
call fcn.100223b0
jmp 0x1008a3d0
mov dword [edi + 0x44], 0xffffffff
nop word [eax + eax]
cmp byte [esi], 0
je 0x1008a768
lea eax, [esp + 0x2c]
xor ebx, ebx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], ebx
push eax
push ebx
push 0x80
push 0xffffffffffffffff
mov edx, esi
mov dword [esp + 0x38], ebx
mov ecx, edi
mov dword [esp + 0x3c], ebx
call fcn.100937b0
mov edi, dword [esp + 0x3c]
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1008a737
test edi, edi
jne 0x1008a424
mov esi, dword [esp + 0x2c]
mov ebx, eax
mov edi, dword [ebp + 8]
jmp 0x1008a3d0
xor esi, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], esi
nop
push edi
call fcn.10049ed0
add esp, 4
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x10], 0
je 0x1008a690
cmp eax, 0x64
je 0x1008a476
cmp eax, 0x65
jne 0x1008a699
cmp dword [esp + 0x28], 0
jne 0x1008a699
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
and eax, 0x100
or eax, 0
je 0x1008a699
jmp 0x1008a47d
cmp dword [esp + 0x28], 0
jne 0x1008a4e8
movzx ebx, word [edi + 0x90]
mov ecx, dword [ebp + 8]
push 0
mov dword [esp + 0x24], ebx
lea eax, [ebx*8 + 4]
push eax
call fcn.1001ec50
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
test esi, esi
je 0x1008a739
xor esi, esi
test ebx, ebx
je 0x1008a4cd
push 0
push 0
mov edx, esi
mov ecx, edi
call fcn.1004ae80
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [ecx + esi*4], eax
inc esi
cmp esi, ebx
jl 0x1008a4b1
cmp dword [esp + 0x14], 0x64
mov esi, dword [esp + 0x18]
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], 1
jne 0x1008a678
lea ecx, [esi + ebx*4]
xor ebx, ebx
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x20], ebx
jle 0x1008a66b
xor edx, edx
mov dword [esp + 0x1c], edx
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008a518
push eax
call dword [0x10165b48]
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x1008a536
movzx eax, word [edi + 0x90]
cmp ebx, eax
jge 0x1008a536
test ebx, ebx
js 0x1008a536
add ecx, edx
jne 0x1008a54e
xor esi, esi
jmp 0x1008a57d
mov ecx, dword [edi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.100223b0
mov ecx, 0x10151a48
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x1008a56b
cmp byte [ecx + 0x12], 1
jne 0x1008a56b
mov esi, dword [ecx + 8]
jmp 0x1008a57d
test dl, 1
je 0x1008a574
xor esi, esi
jmp 0x1008a57d
mov dl, 1
call fcn.100436a0
mov esi, eax
mov ecx, dword [edi]
mov edx, dword [edi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x1008a590
test edx, edx
jne 0x1008a590
xor eax, eax
jmp 0x1008a595
call fcn.1001f000
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008a5ab
push eax
call dword [0x10165b50]
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [ecx + ebx*4], esi
test esi, esi
jne 0x1008a651
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008a5cd
push eax
call dword [0x10165b48]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x1008a5eb
movzx eax, word [edi + 0x90]
cmp ebx, eax
jge 0x1008a5eb
test ebx, ebx
js 0x1008a5eb
mov eax, dword [esp + 0x1c]
add eax, ecx
jmp 0x1008a603
mov ecx, dword [edi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.100223b0
mov eax, 0x10151a48
movzx eax, word [eax + 0x10]
mov ecx, dword [edi]
and eax, 0x3f
mov edx, dword [edi + 0x24]
cmp byte [ecx + 0x57], 0
mov al, byte [eax + 0x101557e0]
mov byte [esp + 0x13], al
jne 0x1008a627
test edx, edx
jne 0x1008a627
xor eax, eax
jmp 0x1008a62c
call fcn.1001f000
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008a642
push eax
call dword [0x10165b50]
add esp, 4
cmp byte [esp + 0x13], 5
jne 0x1008a6fc
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
inc ebx
add edx, 0x28
mov dword [esp + 0x1c], edx
cmp ebx, dword [esp + 0x20]
jl 0x1008a501
mov esi, dword [esp + 0x18]
mov dword [ecx + ebx*4], 0
mov ebx, dword [esp + 0x20]
jmp 0x1008a67c
mov ecx, dword [esp + 0x24]
push esi
push ecx
push ebx
push dword [ebp + 0x14]
call dword [ebp + 0x10]
add esp, 0x10
test eax, eax
jne 0x1008a70a
mov eax, dword [esp + 0x14]
cmp eax, 0x64
je 0x1008a430
xor ebx, ebx
cmp byte [edi + 0x95], 1
mov dword [esp + 0x14], ebx
jb 0x1008a6b5
mov ecx, edi
call fcn.10046c60
mov ebx, eax
mov dword [esp + 0x14], eax
mov ecx, edi
call fcn.10046d40
mov esi, dword [esp + 0x2c]
xor edi, edi
movzx eax, byte [esi]
test byte [eax + 0x10150e68], 1
je 0x1008a6de
nop
movzx eax, byte [esi + 1]
inc esi
test byte [eax + 0x10150e68], 1
jne 0x1008a6d0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1008a6f0
mov ecx, dword [ebp + 8]
mov edx, eax
call fcn.1001e7b0
test ebx, ebx
jne 0x1008a737
mov edi, dword [ebp + 8]
jmp 0x1008a3d0
mov ecx, dword [ebp + 8]
call fcn.1001ef20
mov esi, dword [esp + 0x18]
jmp 0x1008a739
cmp byte [edi + 0x95], 1
mov ebx, 4
jb 0x1008a71f
mov ecx, edi
call fcn.10046c60
mov ecx, edi
call fcn.10046d40
mov edi, dword [ebp + 8]
mov edx, ebx
mov ecx, edi
mov dword [edi + 0x40], ebx
call fcn.100223b0
jmp 0x1008a75b
xor esi, esi
test edi, edi
je 0x1008a754
cmp byte [edi + 0x95], 1
jb 0x1008a74d
mov ecx, edi
call fcn.10046c60
mov ecx, edi
call fcn.10046d40
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
test esi, esi
je 0x1008a768
mov edx, esi
mov ecx, edi
call fcn.1001e7b0
cmp byte [edi + 0x57], 0
jne 0x1008a776
test ebx, ebx
jne 0x1008a776
xor esi, esi
jmp 0x1008a781
mov edx, ebx
mov ecx, edi
call fcn.1001f000
mov esi, eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1008a7fb
test esi, esi
je 0x1008a7f5
push edi
call fcn.100cdd00
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1008a7a2
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
jmp 0x1008a7e2
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008a7a7
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
mov dword [esp + 0x34], eax
call fcn.1001e4e0
mov edi, eax
add esp, 8
test edi, edi
je 0x1008a7d6
push dword [esp + 0x2c]
push ebx
push edi
call fcn.1012bff0
add esp, 0xc
mov eax, dword [ebp + 0x18]
test edi, edi
mov dword [eax], edi
mov edi, dword [ebp + 8]
jne 0x1008a7fb
mov esi, 7
mov ecx, edi
mov edx, esi
mov dword [edi + 0x40], esi
call fcn.100223b0
jmp 0x1008a7fb
mov dword [eax], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1008a80c
push eax
call dword [0x10165b50]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret