Function at 0x4bfaa0
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
xor ebp, ebp
test ebx, ebx
jne 0x4bfaba
mov eax, str.NULL
jmp 0x4bfad3
mov al, byte [ebx + 0x61]
cmp al, 0x76
je 0x4bfb09
cmp al, 0xba
je 0x4bface
cmp al, 0x6d
mov eax, str.invalid
jne 0x4bfad3
mov eax, str.unopened
push eax
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.004b1f90
push 0x6f10ac
push 0x20b74
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.004b1f90
add esp, 0x20
mov eax, 0x15
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [ebx + 0xc]
test ecx, ecx
push esi
mov esi, 0x774272
cmovne esi, ecx
test eax, eax
je 0x4bfb25
push eax
call dword [0x78d068]
add esp, 4
mov dword [ebx + 0x40], ebp
cmp dword [ebx + 0x124], ebp
je 0x4bfb3d
push 0
push ebx
call fcn.00504f70
add esp, 8
jmp 0x4bfb44
mov dword [ebx + 0x44], 0xffffffff
push edi
cmp byte [esi], 0
je 0x4c0163
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.00515880
mov edi, dword [esp + 0x44]
mov ebp, eax
add esp, 0x1c
test ebp, ebp
jne 0x4bff48
test edi, edi
jne 0x4bfb9b
mov esi, dword [esp + 0x2c]
jmp 0x4bfb45
xor esi, esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], esi
nop dword [eax]
xor ebx, ebx
cmp dword [edi], ebx
jne 0x4bfbee
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.004b1f90
push 0x6f10ac
push 0x15f87
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.004b1f90
mov ebp, 0x15
add esp, 0x1c
mov dword [esp + 0x1c], ebp
jmp 0x4bfd2c
mov eax, dword [edi]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4bfc05
push eax
call dword [0x78d068]
add esp, 4
push edi
call fcn.005260d0
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
cmp ebp, 0x11
jne 0x4bfd17
nop dword [eax]
mov eax, ebx
inc ebx
cmp eax, 0x32
jge 0x4bfd13
mov eax, dword [edi + 0x20]
push edi
mov dword [esp + 0x20], eax
call fcn.0051fc00
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4bfd6e
mov esi, dword [edi]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4bfc59
push eax
call dword [0x78d068]
add esp, 4
cmp dword [edi + 0x8c], 0
jl 0x4bfc77
jg 0x4bfc6d
cmp dword [edi + 0x88], 0
jbe 0x4bfc77
push edi
push esi
call fcn.004debf0
add esp, 8
push edi
call fcn.00537dc0
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 0x4bfcd2
test eax, eax
je 0x4bfcdc
push eax
push esi
call fcn.004c7320
add esp, 8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4bfced
push eax
call dword [0x78d070]
add esp, 4
cmp dword [esp + 0x1c], 0
jl 0x4bfcfb
mov byte [edi + 0x95], 0xfe
push edi
call fcn.005260d0
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
cmp ebp, 0x11
je 0x4bfc20
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4bfd2c
push eax
call dword [0x78d070]
add esp, 4
cmp dword [esp + 0x3c], 0
je 0x4bfede
cmp ebp, 0x64
je 0x4bfe4e
mov ebx, dword [esp + 0x34]
cmp ebp, 0x65
jne 0x4bfeeb
cmp dword [esp + 0x28], 0
jne 0x4bfeeb
mov eax, dword [ebx + 0x20]
and eax, 0x100
or eax, 0
je 0x4bfeeb
jmp 0x4bfe59
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x124]
test ecx, ecx
jne 0x4bfd80
xor esi, esi
jmp 0x4bfdb7
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x4bfd9d
cmp byte [ecx + 0x12], 1
jne 0x4bfd9d
mov esi, dword [ecx + 8]
jmp 0x4bfdb3
test dl, 1
je 0x4bfda6
xor esi, esi
jmp 0x4bfdb3
push 1
push ecx
call fcn.005463e0
add esp, 8
mov esi, eax
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4bfdc8
push eax
push edx
call fcn.00502f20
add esp, 8
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x57], 0
jne 0x4bfe32
test esi, esi
jne 0x4bfdda
xor ebx, ebx
jmp 0x4bfe17
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bfde0
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.00503030
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4bfe13
push dword [esp + 0x1c]
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x14]
push ebp
push eax
mov dword [edi + 0x7c], ebx
call fcn.004c7320
mov ebp, eax
add esp, 8
mov dword [esp + 0x1c], ebp
mov dword [edi + 0x24], ebp
jmp 0x4bfd13
mov esi, dword [esp + 0x18]
mov ebp, 7
mov dword [edi + 0x7c], 0
mov dword [esp + 0x1c], ebp
mov dword [edi + 0x24], ebp
jmp 0x4bfd1b
cmp dword [esp + 0x28], 0
jne 0x4bff4f
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.00503030
mov esi, eax
add esp, 0xc
mov dword [esp + 0x18], esi
test esi, esi
je 0x4c0132
xor esi, esi
test ebx, ebx
je 0x4bfeab
mov ebp, eax
push 0
push 0
push esi
push edi
call fcn.004cf2e0
mov dword [ebp + esi*4], eax
add esp, 0x10
inc esi
cmp esi, ebx
jl 0x4bfe90
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], 1
cmp ebp, 0x64
je 0x4bff53
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 0x4c0101
cmp ebp, 0x64
je 0x4bfbb0
mov ebx, dword [esp + 0x34]
xor ebp, ebp
cmp byte [edi + 0x97], 1
jb 0x4bff01
push edi
call fcn.00537dc0
add esp, 4
mov ebp, eax
push edi
call fcn.0052bae0
mov esi, dword [esp + 0x30]
add esp, 4
xor edi, edi
movzx eax, byte [esi]
test byte [eax + 0x6e9040], 1
je 0x4bff2e
nop dword [eax]
movzx eax, byte [esi + 1]
inc esi
test byte [eax + 0x6e9040], 1
jne 0x4bff20
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4bff40
push eax
push ebx
call fcn.00502f20
add esp, 8
test ebp, ebp
je 0x4bfb45
xor esi, esi
jmp 0x4c0136
mov ebx, dword [esp + 0x20]
lea ecx, [esi + ebx*4]
xor ebx, ebx
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x20], ebx
jle 0x4c00de
xor edx, edx
mov dword [esp + 0x1c], edx
nop dword [eax]
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4bff87
push eax
call dword [0x78d068]
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x4bffa5
movzx eax, word [edi + 0x90]
cmp ebx, eax
jge 0x4bffa5
test ebx, ebx
js 0x4bffa5
add ecx, edx
jne 0x4bffbe
xor esi, esi
jmp 0x4bfff1
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.00504f70
add esp, 8
mov ecx, 0x6e9c40
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x4bffdb
cmp byte [ecx + 0x12], 1
jne 0x4bffdb
mov esi, dword [ecx + 8]
jmp 0x4bfff1
test dl, 1
je 0x4bffe4
xor esi, esi
jmp 0x4bfff1
push 1
push ecx
call fcn.005463e0
add esp, 8
mov esi, eax
mov ecx, dword [edi]
mov eax, dword [edi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x4c0000
test eax, eax
je 0x4c000a
push eax
push ecx
call fcn.004c7320
add esp, 8
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4c0020
push eax
call dword [0x78d070]
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [ecx + ebx*4], esi
test esi, esi
jne 0x4c00c4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4c0042
push eax
call dword [0x78d068]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x4c0060
movzx eax, word [edi + 0x90]
cmp ebx, eax
jge 0x4c0060
test ebx, ebx
js 0x4c0060
mov eax, dword [esp + 0x1c]
add eax, ecx
jmp 0x4c0079
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.00504f70
add esp, 8
mov eax, 0x6e9c40
movzx eax, word [eax + 0x10]
mov ecx, dword [edi]
and eax, 0x3f
cmp byte [ecx + 0x57], 0
mov al, byte [eax + 0x6e9250]
mov byte [esp + 0x13], al
mov eax, dword [edi + 0x24]
jne 0x4c0099
test eax, eax
je 0x4c00a3
push eax
push ecx
call fcn.004c7320
add esp, 8
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4c00b9
push eax
call dword [0x78d070]
add esp, 4
cmp byte [esp + 0x13], 5
jne 0x4c00ee
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 0x4bff70
mov esi, dword [esp + 0x18]
mov dword [ecx + ebx*4], 0
mov ebx, dword [esp + 0x20]
jmp 0x4bfec8
mov ebx, dword [esp + 0x34]
push ebx
call fcn.00516600
mov esi, dword [esp + 0x1c]
add esp, 4
jmp 0x4c0136
cmp byte [edi + 0x97], 1
mov ebp, 4
jb 0x4c0118
push edi
call fcn.00537dc0
add esp, 4
push edi
call fcn.0052bae0
mov ebx, dword [esp + 0x38]
push 4
push ebx
mov dword [ebx + 0x40], ebp
call fcn.00504f70
add esp, 0xc
jmp 0x4c0155
mov ebx, dword [esp + 0x34]
test edi, edi
je 0x4c0155
cmp byte [edi + 0x97], 1
jb 0x4c014c
push edi
call fcn.00537dc0
add esp, 4
push edi
call fcn.0052bae0
add esp, 4
test esi, esi
je 0x4c0163
push esi
push ebx
call fcn.00502f20
add esp, 8
cmp byte [ebx + 0x57], 0
jne 0x4c0171
test ebp, ebp
jne 0x4c0171
xor esi, esi
jmp 0x4c017d
push ebp
push ebx
call fcn.004c7320
add esp, 8
mov esi, eax
mov edi, dword [esp + 0x44]
test edi, edi
je 0x4c01f7
test esi, esi
je 0x4c01eb
push ebx
call fcn.004c24a0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4c019c
mov dword [edi], eax
jmp 0x4c01d3
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c01a1
sub ecx, edx
push 0
lea ebp, [ecx + 1]
push ebp
call fcn.00515c10
mov edi, eax
add esp, 8
test edi, edi
je 0x4c01c9
push ebp
push ebx
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x44]
mov dword [eax], edi
test edi, edi
jne 0x4c01f3
mov ebx, dword [esp + 0x34]
mov esi, 7
push esi
push ebx
mov dword [ebx + 0x40], esi
call fcn.00504f70
add esp, 8
jmp 0x4c01f7
mov dword [edi], 0
jmp 0x4c01f7
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0xc]
pop edi
test eax, eax
je 0x4c0209
push eax
call dword [0x78d070]
add esp, 4
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret