Function at 0x492540
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 0x49255a
mov eax, str.NULL
jmp 0x492573
mov al, byte [ebx + 0x61]
cmp al, 0x76
je 0x4925a9
cmp al, 0xba
je 0x49256e
cmp al, 0x6d
mov eax, str.invalid
jne 0x492573
mov eax, str.unopened
push eax
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.004849d0
push 0x5797bc
push 0x20b79
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.004849d0
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, 0x5853d0
cmovne esi, ecx
test eax, eax
je 0x4925c5
push eax
call dword [0x58d478]
add esp, 4
mov dword [ebx + 0x40], ebp
cmp dword [ebx + 0x124], ebp
je 0x4925dd
push 0
push ebx
call fcn.004d7ab0
add esp, 8
jmp 0x4925e4
mov dword [ebx + 0x44], 0xffffffff
push edi
cmp byte [esi], 0
je 0x492c03
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.004e83f0
mov edi, dword [esp + 0x44]
mov ebp, eax
add esp, 0x1c
test ebp, ebp
jne 0x4929e8
test edi, edi
jne 0x49263b
mov esi, dword [esp + 0x2c]
jmp 0x4925e5
xor esi, esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], esi
nop dword [eax]
xor ebx, ebx
cmp dword [edi], ebx
jne 0x49268e
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.004849d0
push 0x5797bc
push 0x15f89
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.004849d0
mov ebp, 0x15
add esp, 0x1c
mov dword [esp + 0x1c], ebp
jmp 0x4927cc
mov eax, dword [edi]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4926a5
push eax
call dword [0x58d478]
add esp, 4
push edi
call fcn.004f8c30
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
cmp ebp, 0x11
jne 0x4927b7
nop dword [eax]
mov eax, ebx
inc ebx
cmp eax, 0x32
jge 0x4927b3
mov eax, dword [edi + 0x20]
push edi
mov dword [esp + 0x20], eax
call fcn.004f2760
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x49280e
mov esi, dword [edi]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4926f9
push eax
call dword [0x58d478]
add esp, 4
cmp dword [edi + 0x8c], 0
jl 0x492717
jg 0x49270d
cmp dword [edi + 0x88], 0
jbe 0x492717
push edi
push esi
call fcn.004b1710
add esp, 8
push edi
call fcn.0050a930
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 0x492772
test eax, eax
je 0x49277c
push eax
push esi
call fcn.00499df0
add esp, 8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x49278d
push eax
call dword [0x58d480]
add esp, 4
cmp dword [esp + 0x1c], 0
jl 0x49279b
mov byte [edi + 0x95], 0xfe
push edi
call fcn.004f8c30
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
cmp ebp, 0x11
je 0x4926c0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4927cc
push eax
call dword [0x58d480]
add esp, 4
cmp dword [esp + 0x3c], 0
je 0x49297e
cmp ebp, 0x64
je 0x4928ee
mov ebx, dword [esp + 0x34]
cmp ebp, 0x65
jne 0x49298b
cmp dword [esp + 0x28], 0
jne 0x49298b
mov eax, dword [ebx + 0x20]
and eax, 0x100
or eax, 0
je 0x49298b
jmp 0x4928f9
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x124]
test ecx, ecx
jne 0x492820
xor esi, esi
jmp 0x492857
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x49283d
cmp byte [ecx + 0x12], 1
jne 0x49283d
mov esi, dword [ecx + 8]
jmp 0x492853
test dl, 1
je 0x492846
xor esi, esi
jmp 0x492853
push 1
push ecx
call fcn.00518f50
add esp, 8
mov esi, eax
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x492868
push eax
push edx
call fcn.004d5a50
add esp, 8
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x57], 0
jne 0x4928d2
test esi, esi
jne 0x49287a
xor ebx, ebx
jmp 0x4928b7
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x492880
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.004d5b60
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4928b3
push dword [esp + 0x1c]
push esi
push ebx
call fcn.00532150
add esp, 0xc
mov eax, dword [esp + 0x14]
push ebp
push eax
mov dword [edi + 0x7c], ebx
call fcn.00499df0
mov ebp, eax
add esp, 8
mov dword [esp + 0x1c], ebp
mov dword [edi + 0x24], ebp
jmp 0x4927b3
mov esi, dword [esp + 0x18]
mov ebp, 7
mov dword [edi + 0x7c], 0
mov dword [esp + 0x1c], ebp
mov dword [edi + 0x24], ebp
jmp 0x4927bb
cmp dword [esp + 0x28], 0
jne 0x4929ef
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.004d5b60
mov esi, eax
add esp, 0xc
mov dword [esp + 0x18], esi
test esi, esi
je 0x492bd2
xor esi, esi
test ebx, ebx
je 0x49294b
mov ebp, eax
push 0
push 0
push esi
push edi
call fcn.004a1dd0
mov dword [ebp + esi*4], eax
add esp, 0x10
inc esi
cmp esi, ebx
jl 0x492930
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], 1
cmp ebp, 0x64
je 0x4929f3
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 0x492ba1
cmp ebp, 0x64
je 0x492650
mov ebx, dword [esp + 0x34]
xor ebp, ebp
cmp byte [edi + 0x97], 1
jb 0x4929a1
push edi
call fcn.0050a930
add esp, 4
mov ebp, eax
push edi
call fcn.004fe650
mov esi, dword [esp + 0x30]
add esp, 4
xor edi, edi
movzx eax, byte [esi]
test byte [eax + 0x571828], 1
je 0x4929ce
nop dword [eax]
movzx eax, byte [esi + 1]
inc esi
test byte [eax + 0x571828], 1
jne 0x4929c0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4929e0
push eax
push ebx
call fcn.004d5a50
add esp, 8
test ebp, ebp
je 0x4925e5
xor esi, esi
jmp 0x492bd6
mov ebx, dword [esp + 0x20]
lea ecx, [esi + ebx*4]
xor ebx, ebx
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x20], ebx
jle 0x492b7e
xor edx, edx
mov dword [esp + 0x1c], edx
nop dword [eax]
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x492a27
push eax
call dword [0x58d478]
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x492a45
movzx eax, word [edi + 0x90]
cmp ebx, eax
jge 0x492a45
test ebx, ebx
js 0x492a45
add ecx, edx
jne 0x492a5e
xor esi, esi
jmp 0x492a91
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.004d7ab0
add esp, 8
mov ecx, 0x572428
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x492a7b
cmp byte [ecx + 0x12], 1
jne 0x492a7b
mov esi, dword [ecx + 8]
jmp 0x492a91
test dl, 1
je 0x492a84
xor esi, esi
jmp 0x492a91
push 1
push ecx
call fcn.00518f50
add esp, 8
mov esi, eax
mov ecx, dword [edi]
mov eax, dword [edi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x492aa0
test eax, eax
je 0x492aaa
push eax
push ecx
call fcn.00499df0
add esp, 8
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x492ac0
push eax
call dword [0x58d480]
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [ecx + ebx*4], esi
test esi, esi
jne 0x492b64
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x492ae2
push eax
call dword [0x58d478]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x492b00
movzx eax, word [edi + 0x90]
cmp ebx, eax
jge 0x492b00
test ebx, ebx
js 0x492b00
mov eax, dword [esp + 0x1c]
add eax, ecx
jmp 0x492b19
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.004d7ab0
add esp, 8
mov eax, 0x572428
movzx eax, word [eax + 0x10]
mov ecx, dword [edi]
and eax, 0x3f
cmp byte [ecx + 0x57], 0
mov al, byte [eax + 0x571a38]
mov byte [esp + 0x13], al
mov eax, dword [edi + 0x24]
jne 0x492b39
test eax, eax
je 0x492b43
push eax
push ecx
call fcn.00499df0
add esp, 8
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x492b59
push eax
call dword [0x58d480]
add esp, 4
cmp byte [esp + 0x13], 5
jne 0x492b8e
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 0x492a10
mov esi, dword [esp + 0x18]
mov dword [ecx + ebx*4], 0
mov ebx, dword [esp + 0x20]
jmp 0x492968
mov ebx, dword [esp + 0x34]
push ebx
call fcn.004e9170
mov esi, dword [esp + 0x1c]
add esp, 4
jmp 0x492bd6
cmp byte [edi + 0x97], 1
mov ebp, 4
jb 0x492bb8
push edi
call fcn.0050a930
add esp, 4
push edi
call fcn.004fe650
mov ebx, dword [esp + 0x38]
push 4
push ebx
mov dword [ebx + 0x40], ebp
call fcn.004d7ab0
add esp, 0xc
jmp 0x492bf5
mov ebx, dword [esp + 0x34]
test edi, edi
je 0x492bf5
cmp byte [edi + 0x97], 1
jb 0x492bec
push edi
call fcn.0050a930
add esp, 4
push edi
call fcn.004fe650
add esp, 4
test esi, esi
je 0x492c03
push esi
push ebx
call fcn.004d5a50
add esp, 8
cmp byte [ebx + 0x57], 0
jne 0x492c11
test ebp, ebp
jne 0x492c11
xor esi, esi
jmp 0x492c1d
push ebp
push ebx
call fcn.00499df0
add esp, 8
mov esi, eax
mov edi, dword [esp + 0x44]
test edi, edi
je 0x492c97
test esi, esi
je 0x492c8b
push ebx
call fcn.00494f70
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x492c3c
mov dword [edi], eax
jmp 0x492c73
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x492c41
sub ecx, edx
push 0
lea ebp, [ecx + 1]
push ebp
call fcn.004e8780
mov edi, eax
add esp, 8
test edi, edi
je 0x492c69
push ebp
push ebx
push edi
call fcn.00532150
add esp, 0xc
mov eax, dword [esp + 0x44]
mov dword [eax], edi
test edi, edi
jne 0x492c93
mov ebx, dword [esp + 0x34]
mov esi, 7
push esi
push ebx
mov dword [ebx + 0x40], esi
call fcn.004d7ab0
add esp, 8
jmp 0x492c97
mov dword [edi], 0
jmp 0x492c97
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0xc]
pop edi
test eax, eax
je 0x492ca9
push eax
call dword [0x58d480]
add esp, 4
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret