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

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push edi
xor ebp, ebp
xor edi, edi
test ebx, ebx
jne 0x46820d
mov eax, str.NULL
jmp 0x468226
mov al, byte [ebx + 0x61]
cmp al, 0x76
je 0x46825d
cmp al, 0xba
je 0x468221
cmp al, 0x6d
mov eax, str.invalid
jne 0x468226
mov eax, str.unopened
push eax
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.00458bb0
push 0x68cf8c
push 0x21479
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.00458bb0
add esp, 0x20
mov eax, 0x15
pop edi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [ebx + 0xc]
test ecx, ecx
push esi
mov esi, 0x70ce08
cmovne esi, ecx
test eax, eax
je 0x468279
push eax
call dword [0x713068]
add esp, 4
mov dword [ebx + 0x40], edi
cmp dword [ebx + 0x124], edi
je 0x468291
push 0
push ebx
call fcn.004b0c30
add esp, 8
jmp 0x4682a0
mov dword [ebx + 0x44], 0xffffffff
nop dword [eax + eax]
cmp byte [esi], 0
je 0x468698
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0
push eax
push 0
push 0x80
push 0xffffffffffffffff
push esi
push ebx
mov dword [esp + 0x44], 0
call fcn.004c1660
mov edi, dword [esp + 0x44]
mov ebp, eax
add esp, 0x1c
test ebp, ebp
jne 0x468698
test edi, edi
jne 0x4682f6
mov esi, dword [esp + 0x2c]
jmp 0x4682a0
xor esi, esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], esi
xor ebx, ebx
cmp dword [edi], ebx
jne 0x468342
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.00458bb0
push 0x68cf8c
push 0x16490
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.00458bb0
mov ebp, 0x15
add esp, 0x1c
mov dword [esp + 0x1c], ebp
jmp 0x46847d
mov eax, dword [edi]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x468359
push eax
call dword [0x713068]
add esp, 4
push edi
call fcn.004d22d0
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
cmp ebp, 0x11
jne 0x468468
mov eax, ebx
inc ebx
cmp eax, 0x32
jge 0x468464
mov eax, dword [edi + 0x20]
push edi
mov dword [esp + 0x20], eax
call fcn.004cbd80
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4684bf
mov esi, dword [edi]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4683aa
push eax
call dword [0x713068]
add esp, 4
cmp dword [edi + 0x8c], 0
jl 0x4683c8
jg 0x4683be
cmp dword [edi + 0x88], 0
jbe 0x4683c8
push edi
push esi
call fcn.00487870
add esp, 8
push edi
call fcn.004e3bf0
add esp, 4
mov byte [edi + 0x97], 1
mov dword [edi + 0x20], 0xffffffff
mov dword [edi + 0x24], 0
mov word [edi + 0x94], 0xff02
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x1c], 1
mov dword [edi + 0x30], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
cmp byte [esi + 0x57], 0
jne 0x468423
test eax, eax
je 0x46842d
push eax
push esi
call fcn.0046f160
add esp, 8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x46843e
push eax
call dword [0x713070]
add esp, 4
cmp dword [esp + 0x1c], 0
jl 0x46844c
mov byte [edi + 0x95], 0xfe
push edi
call fcn.004d22d0
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
cmp ebp, 0x11
je 0x468371
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x46847d
push eax
call dword [0x713070]
add esp, 4
cmp dword [esp + 0x3c], 0
je 0x46862e
cmp ebp, 0x64
je 0x46859e
mov ebx, dword [esp + 0x34]
cmp ebp, 0x65
jne 0x46863b
cmp dword [esp + 0x28], 0
jne 0x46863b
mov eax, dword [ebx + 0x20]
and eax, 0x100
or eax, 0
je 0x46863b
jmp 0x4685a9
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x124]
test ecx, ecx
jne 0x4684d1
xor esi, esi
jmp 0x468508
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x4684ee
cmp byte [ecx + 0x12], 1
jne 0x4684ee
mov esi, dword [ecx + 8]
jmp 0x468504
test dl, 1
je 0x4684f7
xor esi, esi
jmp 0x468504
push 1
push ecx
call fcn.004f2fd0
add esp, 8
mov esi, eax
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x468519
push eax
push edx
call fcn.004aeac0
add esp, 8
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x57], 0
jne 0x468582
test esi, esi
jne 0x46852b
xor ebx, ebx
jmp 0x468567
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x468530
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.004aebd0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x468563
push dword [esp + 0x1c]
push esi
push ebx
call fcn.006568a0
add esp, 0xc
mov eax, dword [esp + 0x14]
push ebp
push eax
mov dword [edi + 0x7c], ebx
call fcn.0046f160
mov ebp, eax
add esp, 8
mov dword [esp + 0x1c], ebp
mov dword [edi + 0x24], ebp
jmp 0x468464
mov esi, dword [esp + 0x18]
mov ebp, 7
mov dword [edi + 0x7c], 0
mov dword [esp + 0x1c], ebp
mov dword [edi + 0x24], ebp
jmp 0x46846c
cmp dword [esp + 0x28], 0
jne 0x4686e4
movzx ebx, word [edi + 0x90]
push 0
mov dword [esp + 0x24], ebx
lea eax, [ebx*8 + 4]
push eax
push dword [esp + 0x3c]
call fcn.004aebd0
mov esi, eax
add esp, 0xc
mov dword [esp + 0x18], esi
test esi, esi
je 0x46869a
xor esi, esi
test ebx, ebx
je 0x4685fb
mov ebp, eax
push 0
push 0
push esi
push edi
call fcn.00477300
mov dword [ebp + esi*4], eax
add esp, 0x10
inc esi
cmp esi, ebx
jl 0x4685e0
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], 1
cmp ebp, 0x64
je 0x4686e8
mov ecx, dword [esp + 0x24]
push esi
push ecx
push ebx
push dword [esp + 0x4c]
call dword [esp + 0x4c]
add esp, 0x10
test eax, eax
jne 0x468894
cmp ebp, 0x64
je 0x468304
mov ebx, dword [esp + 0x34]
xor ebp, ebp
cmp byte [edi + 0x97], 1
jb 0x468651
push edi
call fcn.004e3bf0
add esp, 4
mov ebp, eax
push edi
call fcn.004d7e20
mov esi, dword [esp + 0x30]
add esp, 4
xor edi, edi
movzx eax, byte [esi]
test byte [eax + 0x684c48], 1
je 0x46867e
nop dword [eax]
movzx eax, byte [esi + 1]
inc esi
test byte [eax + 0x684c48], 1
jne 0x468670
mov eax, dword [esp + 0x18]
test eax, eax
je 0x468690
push eax
push ebx
call fcn.004aeac0
add esp, 8
test ebp, ebp
je 0x4682a0
xor esi, esi
test edi, edi
je 0x4686b9
cmp byte [edi + 0x97], 1
jb 0x4686b0
push edi
call fcn.004e3bf0
add esp, 4
push edi
call fcn.004d7e20
add esp, 4
mov edi, dword [esp + 0x34]
test esi, esi
je 0x4686cb
push esi
push edi
call fcn.004aeac0
add esp, 8
cmp byte [edi + 0x57], 0
jne 0x4688c8
test ebp, ebp
jne 0x4688c8
xor esi, esi
jmp 0x4688d4
mov ebx, dword [esp + 0x20]
lea ecx, [esi + ebx*4]
xor ebx, ebx
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x20], ebx
jle 0x46886f
xor edx, edx
mov dword [esp + 0x1c], edx
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x468718
push eax
call dword [0x713068]
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x468736
movzx eax, word [edi + 0x90]
cmp ebx, eax
jge 0x468736
test ebx, ebx
js 0x468736
add ecx, edx
jne 0x46874f
xor esi, esi
jmp 0x468782
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.004b0c30
add esp, 8
mov ecx, 0x685438
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x46876c
cmp byte [ecx + 0x12], 1
jne 0x46876c
mov esi, dword [ecx + 8]
jmp 0x468782
test dl, 1
je 0x468775
xor esi, esi
jmp 0x468782
push 1
push ecx
call fcn.004f2fd0
add esp, 8
mov esi, eax
mov ecx, dword [edi]
mov eax, dword [edi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x468791
test eax, eax
je 0x46879b
push eax
push ecx
call fcn.0046f160
add esp, 8
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4687b1
push eax
call dword [0x713070]
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [ecx + ebx*4], esi
test esi, esi
jne 0x468855
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4687d3
push eax
call dword [0x713068]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x4687f1
movzx eax, word [edi + 0x90]
cmp ebx, eax
jge 0x4687f1
test ebx, ebx
js 0x4687f1
mov eax, dword [esp + 0x1c]
add eax, ecx
jmp 0x46880a
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.004b0c30
add esp, 8
mov eax, 0x685438
movzx eax, word [eax + 0x10]
mov ecx, dword [edi]
and eax, 0x3f
cmp byte [ecx + 0x57], 0
mov al, byte [eax + 0x684f80]
mov byte [esp + 0x13], al
mov eax, dword [edi + 0x24]
jne 0x46882a
test eax, eax
je 0x468834
push eax
push ecx
call fcn.0046f160
add esp, 8
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x46884a
push eax
call dword [0x713070]
add esp, 4
cmp byte [esp + 0x13], 5
jne 0x46887f
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 0x468701
mov esi, dword [esp + 0x18]
mov dword [ecx + ebx*4], 0
mov ebx, dword [esp + 0x20]
jmp 0x468618
push dword [esp + 0x34]
call fcn.004c2710
mov esi, dword [esp + 0x1c]
add esp, 4
jmp 0x46869a
cmp byte [edi + 0x97], 1
mov ebp, 4
jb 0x4688ab
push edi
call fcn.004e3bf0
add esp, 4
push edi
call fcn.004d7e20
mov edi, dword [esp + 0x38]
push 4
push edi
mov dword [edi + 0x40], ebp
call fcn.004b0c30
add esp, 0xc
jmp 0x4686bd
push ebp
push edi
call fcn.0046f160
add esp, 8
mov esi, eax
mov ebp, dword [esp + 0x44]
test ebp, ebp
je 0x468951
test esi, esi
je 0x46894a
push edi
call fcn.0046a710
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4688f4
mov dword [ebp], eax
jmp 0x468936
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x468900
sub ecx, edx
push 0
lea ebp, [ecx + 1]
push ebp
call fcn.004c19b0
mov edi, eax
add esp, 8
test edi, edi
je 0x468928
push ebp
push ebx
push edi
call fcn.006568a0
add esp, 0xc
mov eax, dword [esp + 0x44]
test edi, edi
mov dword [eax], edi
mov edi, dword [esp + 0x34]
jne 0x468951
mov esi, 7
push esi
push edi
mov dword [edi + 0x40], esi
call fcn.004b0c30
add esp, 8
jmp 0x468951
mov dword [ebp], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x468962
push eax
call dword [0x713070]
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x20
ret