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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 8]
sub esp, 0x114
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push edi
test edx, edx
jne 0x480932
mov eax, str.NULL
jmp 0x480954
mov eax, dword [edx + 0x60]
cmp eax, 0xa029a697
je 0x48098e
cmp eax, 0x4b771290
je 0x48094f
cmp eax, 0xf03b7906
mov eax, str.invalid
jne 0x480954
mov eax, str.unopened
push eax
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.004272e0
add esp, 0xc
push 0x55eb74
push 0x1cf8e
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.004272e0
add esp, 0x14
mov eax, 0x15
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0xc]
test ecx, ecx
mov edi, 0x5581b4
cmovne edi, ecx
test eax, eax
je 0x4809ac
push eax
call dword [0x577ac4]
mov edx, dword [ebp + 8]
add esp, 4
mov ebx, dword [ebp + 8]
mov dword [edx + 0x40], esi
cmp dword [edx + 0x104], esi
je 0x4809c3
xor edx, edx
mov ecx, ebx
call fcn.00427b80
cmp byte [edi], 0
je 0x481298
xor eax, eax
mov edx, edi
mov dword [esp + 0x20], eax
mov ecx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x80
push 0xffffffffffffffff
call fcn.00487770
mov ebx, dword [esp + 0x48]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4811d4
test ebx, ebx
jne 0x480a14
mov edi, dword [esp + 0x3c]
mov ebx, dword [ebp + 8]
jmp 0x4809c3
xor eax, eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], eax
xor esi, esi
test ebx, ebx
jne 0x480a39
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.004272e0
add esp, 8
jmp 0x480a59
cmp dword [ebx], esi
jne 0x480a53
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.004272e0
add esp, 8
mov eax, 1
jmp 0x480a55
xor eax, eax
test eax, eax
je 0x480a85
push 0x55eb74
push 0x13f72
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.004272e0
mov edi, 0x15
add esp, 0x14
mov dword [esp + 0x10], edi
jmp 0x480dce
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x480a9c
push eax
call dword [0x577ac4]
add esp, 4
and dword [ebx + 0x98], 0xffffffef
mov ecx, ebx
call fcn.0044cba0
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, 0x11
jne 0x480db9
nop dword [eax]
mov eax, esi
inc esi
mov dword [esp + 0x28], esi
cmp eax, 0x32
jge 0x480db9
mov eax, dword [ebx + 0x24]
lea ecx, [esp + 0x38]
mov esi, dword [ebx]
mov edx, dword [ebx + 0xc0]
push 0
push ecx
mov dword [esp + 0x18], eax
mov ecx, esi
movzx eax, byte [ebx + 0x94]
push ebx
push eax
push 0xffffffffffffffff
call fcn.00487770
mov edi, eax
add esp, 0x14
mov dword [esp + 0x24], edi
test edi, edi
jne 0x480ca7
mov esi, dword [esp + 0x38]
lea edi, [esp + 0x40]
mov ecx, 0x38
mov edx, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x38]
mov ecx, 0x38
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x38
lea esi, [esp + 0x40]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x38]
mov eax, dword [ebx + 8]
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0xc0]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 0xc0]
mov dword [esi + 0xc0], eax
mov dword [ebx + 0xc0], ecx
mov ecx, esi
mov eax, dword [esi + 0xd4]
mov dword [ebx + 0xd4], eax
mov al, byte [esi + 0x94]
mov byte [ebx + 0x94], al
movups xmm0, xmmword [esi + 0xa4]
movups xmmword [ebx + 0xa4], xmm0
movq xmm0, qword [esi + 0xb4]
movq qword [ebx + 0xb4], xmm0
mov eax, dword [esi + 0xbc]
mov dword [ebx + 0xbc], eax
inc dword [ebx + 0xb8]
call fcn.0044e870
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x14]
cmp eax, 0x2df20da3
je 0x480bcf
cmp eax, 0x319c2973
jne 0x480bd6
mov ecx, esi
call fcn.00449840
mov ecx, esi
call fcn.00449e50
mov esi, dword [ebx]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x480bf0
push eax
call dword [0x577ac4]
add esp, 4
cmp dword [ebx + 0x8c], 0
jl 0x480c0d
jg 0x480c04
cmp dword [ebx + 0x88], 0
jbe 0x480c0d
mov edx, ebx
mov ecx, esi
call fcn.0044bde0
mov ecx, ebx
call fcn.00449840
mov dword [ebx + 0x14], 0x2df20da3
mov dword [ebx + 0x24], 0xffffffff
mov dword [ebx + 0x28], 0
mov word [ebx + 0x92], 0xff02
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x20], 1
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
cmp byte [esi + 0x51], 0
jne 0x480c62
cmp eax, 0xc0a
jne 0x480c69
mov ecx, esi
call fcn.00423d20
mov eax, dword [esi + 0xc]
test eax, eax
je 0x480c7a
push eax
call dword [0x577acc]
add esp, 4
cmp dword [esp + 0x10], 0
jl 0x480c88
or dword [ebx + 0x98], 0x10
mov ecx, ebx
call fcn.0044cba0
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, 0x11
jne 0x480db9
mov esi, dword [esp + 0x28]
jmp 0x480ac0
cmp edi, 7
jne 0x480cd5
cmp byte [esi + 0x51], 0
jne 0x480cd5
cmp byte [esi + 0x52], 0
jne 0x480cd5
cmp dword [esi + 0xb8], 0
mov byte [esi + 0x51], 1
jle 0x480ccf
mov dword [esi + 0x108], 1
inc dword [esi + 0x110]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x104]
test ecx, ecx
jne 0x480ce7
xor esi, esi
jmp 0x480d16
movzx edx, word [ecx + 8]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x480d04
cmp byte [ecx + 0xa], 1
jne 0x480d04
mov esi, dword [ecx + 0x10]
jmp 0x480d16
test dl, 1
je 0x480d0d
xor esi, esi
jmp 0x480d16
mov dl, 1
call fcn.00445ab0
mov esi, eax
mov edx, dword [ebx + 0x7c]
mov ecx, dword [esp + 0x1c]
call fcn.00423630
mov edx, dword [esp + 0x1c]
cmp byte [edx + 0x51], 0
jne 0x480da6
test esi, esi
jne 0x480d34
xor eax, eax
jmp 0x480d7d
mov ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 0x28], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x480d40
sub ecx, dword [esp + 0x28]
push 0
lea eax, [ecx + 1]
mov ecx, edx
push eax
mov dword [esp + 0x30], eax
call fcn.00423950
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x480d79
push dword [esp + 0x28]
push esi
push eax
call fcn.005190f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x7c], eax
cmp byte [edx + 0x51], 0
jne 0x480d97
cmp edi, 0xc0a
je 0x480d97
mov edi, dword [edx + 0x44]
and edi, dword [esp + 0x24]
jmp 0x480db2
mov ecx, edx
call fcn.00423d20
mov edi, eax
mov dword [esp + 0x10], eax
jmp 0x480db6
mov dword [ebx + 0x7c], 0
mov edi, 7
mov dword [esp + 0x10], edi
mov dword [ebx + 0x28], edi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x480dce
push eax
call dword [0x577acc]
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x480eaa
cmp edi, 0x64
je 0x480e07
cmp edi, 0x65
jne 0x480eb3
cmp dword [esp + 0x30], 0
jne 0x480eb3
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20]
and eax, 0x100
or eax, 0
je 0x480eb3
jmp 0x480e15
cmp dword [esp + 0x30], 0
jne 0x480f28
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x480e22
movzx eax, word [ebx + 0x90]
jmp 0x480e24
xor eax, eax
mov dword [esp + 0x20], eax
mov ecx, esi
lea eax, [eax*8 + 4]
push 0
push eax
call fcn.00423950
mov ecx, eax
add esp, 8
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x481199
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
je 0x480e7d
mov edi, eax
push 0
push fcn.0044c3c0
mov edx, esi
mov ecx, ebx
call fcn.0044dbd0
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [ecx + esi*4], eax
inc esi
cmp esi, edi
jl 0x480e56
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], 1
cmp edi, 0x64
je 0x480f30
mov edx, dword [esp + 0x2c]
push ecx
push edx
push eax
push dword [ebp + 0x14]
call dword [ebp + 0x10]
add esp, 0x10
test eax, eax
jne 0x48119f
cmp edi, 0x64
je 0x480a22
mov eax, dword [ebx + 0x14]
xor esi, esi
cmp eax, 0x2df20da3
je 0x480ec6
cmp eax, 0x319c2973
jne 0x480ecf
mov ecx, ebx
call fcn.00449840
mov esi, eax
mov ecx, ebx
call fcn.00449e50
mov edi, dword [esp + 0x3c]
xor ebx, ebx
movzx eax, byte [edi]
test byte [eax + 0x554150], 1
je 0x480efe
nop dword [eax + eax]
movzx eax, byte [edi + 1]
inc edi
test byte [eax + 0x554150], 1
jne 0x480ef0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x481161
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1e0], ebx
je 0x4810e2
mov edx, ecx
mov ecx, dword [ebp + 8]
call fcn.00423550
jmp 0x481161
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax*4]
xor esi, esi
mov dword [esp + 0x2c], edx
test eax, eax
jle 0x4810d6
xor edx, edx
mov dword [esp + 0x1c], edx
test ebx, ebx
je 0x480f93
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x480f62
push eax
call dword [0x577ac4]
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x480f80
movzx eax, word [ebx + 0x90]
cmp esi, eax
jge 0x480f80
test esi, esi
js 0x480f80
add ecx, edx
jne 0x480f98
xor edi, edi
jmp 0x480fc7
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.00427b80
mov ecx, 0x554b70
movzx edx, word [ecx + 8]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x480fb5
cmp byte [ecx + 0xa], 1
jne 0x480fb5
mov edi, dword [ecx + 0x10]
jmp 0x480fc7
test dl, 1
je 0x480fbe
xor edi, edi
jmp 0x480fc7
mov dl, 1
call fcn.00445ab0
mov edi, eax
test ebx, ebx
je 0x481000
mov ecx, dword [ebx]
cmp byte [ecx + 0x51], 0
jne 0x480fe5
mov edx, dword [ebx + 0x28]
cmp edx, 0xc0a
je 0x480fe5
mov eax, dword [ecx + 0x44]
and eax, edx
jmp 0x480fea
call fcn.00423d20
mov dword [ebx + 0x28], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x481000
push eax
call dword [0x577acc]
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [eax + esi*4], edi
test edi, edi
jne 0x4810b2
test ebx, ebx
je 0x481057
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x481026
push eax
call dword [0x577ac4]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x481044
movzx eax, word [ebx + 0x90]
cmp esi, eax
jge 0x481044
test esi, esi
js 0x481044
mov eax, dword [esp + 0x1c]
add eax, ecx
jmp 0x48105c
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.00427b80
mov eax, 0x554b70
movzx eax, word [eax + 8]
and eax, 0x1f
mov al, byte [eax + 0x55758c]
mov byte [esp + 0x17], al
test ebx, ebx
je 0x4810aa
mov ecx, dword [ebx]
cmp byte [ecx + 0x51], 0
jne 0x48108b
mov edx, dword [ebx + 0x28]
cmp edx, 0xc0a
je 0x48108b
mov eax, dword [ecx + 0x44]
and eax, edx
jmp 0x481090
call fcn.00423d20
mov dword [ebx + 0x28], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4810a6
push eax
call dword [0x577acc]
add esp, 4
mov al, byte [esp + 0x17]
cmp al, 5
jne 0x48116d
mov edx, dword [esp + 0x1c]
inc esi
mov eax, dword [esp + 0x20]
add edx, 0x28
mov dword [esp + 0x1c], edx
cmp esi, eax
jl 0x480f47
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov dword [edx + esi*4], 0
jmp 0x480e96
cmp ecx, dword [edx + 0x130]
jb 0x481102
cmp ecx, dword [edx + 0x134]
jae 0x481102
mov eax, dword [edx + 0x12c]
mov dword [ecx], eax
mov dword [edx + 0x12c], ecx
jmp 0x481161
cmp dword [0x577a68], ebx
je 0x481157
mov eax, dword [0x57adf8]
test eax, eax
je 0x481121
push eax
call dword [0x577ac4]
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call dword [0x577aa0]
sub dword [0x57ad28], eax
add esp, 4
mov eax, dword [esp + 0x18]
dec dword [0x57ad4c]
push eax
call dword [0x577a98]
mov eax, dword [0x57adf8]
add esp, 4
test eax, eax
je 0x481161
push eax
call dword [0x577acc]
jmp 0x48115e
push ecx
call dword [0x577a98]
add esp, 4
test esi, esi
jne 0x4811d4
mov ebx, dword [ebp + 8]
jmp 0x4809c3
mov esi, dword [ebp + 8]
cmp byte [esi + 0x51], 0
jne 0x481199
cmp byte [esi + 0x52], 0
jne 0x481199
cmp dword [esi + 0xb8], 0
mov byte [esi + 0x51], 1
jle 0x481193
mov dword [esi + 0x108], 1
inc dword [esi + 0x110]
mov esi, dword [esp + 0x10]
jmp 0x4811da
mov eax, dword [ebx + 0x14]
mov esi, 4
cmp eax, 0x2df20da3
je 0x4811b5
cmp eax, 0x319c2973
jne 0x4811bc
mov ecx, ebx
call fcn.00449840
mov ecx, ebx
call fcn.00449e50
mov edi, dword [ebp + 8]
mov edx, esi
mov ecx, edi
mov dword [edi + 0x40], esi
call fcn.00427b80
jmp 0x481200
xor eax, eax
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x4811fd
mov eax, dword [ebx + 0x14]
cmp eax, 0x2df20da3
je 0x4811ef
cmp eax, 0x319c2973
jne 0x4811f6
mov ecx, ebx
call fcn.00449840
mov ecx, ebx
call fcn.00449e50
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x481298
cmp dword [edi + 0x1e0], 0
je 0x481220
mov edx, ebx
mov ecx, edi
call fcn.00423550
jmp 0x481298
cmp ebx, dword [edi + 0x130]
jb 0x481240
cmp ebx, dword [edi + 0x134]
jae 0x481240
mov eax, dword [edi + 0x12c]
mov dword [ebx], eax
mov dword [edi + 0x12c], ebx
jmp 0x481298
cmp dword [0x577a68], 0
je 0x48128e
mov eax, dword [0x57adf8]
test eax, eax
je 0x48125c
push eax
call dword [0x577ac4]
add esp, 4
push ebx
call dword [0x577aa0]
sub dword [0x57ad28], eax
add esp, 4
dec dword [0x57ad4c]
push ebx
call dword [0x577a98]
mov eax, dword [0x57adf8]
add esp, 4
test eax, eax
je 0x481298
push eax
call dword [0x577acc]
jmp 0x481295
push ebx
call dword [0x577a98]
add esp, 4
mov edi, dword [ebp + 8]
cmp byte [edi + 0x51], 0
jne 0x4812ae
cmp esi, 0xc0a
je 0x4812ae
and esi, dword [edi + 0x44]
jmp 0x4812b7
mov ecx, edi
call fcn.00423d20
mov esi, eax
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x481464
test esi, esi
je 0x481459
mov eax, dword [edi + 0x60]
cmp eax, 0x4b771290
je 0x481385
cmp eax, 0xa029a697
je 0x481385
cmp eax, 0xf03b7906
je 0x481385
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.004272e0
add esp, 0xc
push 0x55eb74
push 0x261cc
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.004272e0
add esp, 0x14
mov edi, str.bad_parameter_or_other_API_misuse
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x481330
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
mov dword [esp + 0x2c], eax
call fcn.00423320
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x48135f
push dword [esp + 0x24]
push edi
push ebx
call fcn.005190f0
add esp, 0xc
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
test ebx, ebx
jne 0x481461
mov edi, dword [ebp + 8]
mov esi, 7
mov edx, esi
mov ecx, edi
mov dword [edi + 0x40], esi
call fcn.00427b80
jmp 0x481464
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x481399
push ecx
call dword [0x577ac4]
mov ecx, dword [edi + 0xc]
add esp, 4
cmp byte [edi + 0x51], 0
je 0x4813a9
mov edi, str.out_of_memory
jmp 0x48143c
cmp dword [edi + 0x40], 0
je 0x4813f7
mov edi, dword [edi + 0x104]
test edi, edi
je 0x4813f0
movzx edx, word [edi + 8]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x4813d6
cmp byte [edi + 0xa], 1
jne 0x4813d6
mov edi, dword [edi + 0x10]
jmp 0x4813f0
test dl, 1
je 0x4813df
xor edi, edi
jmp 0x4813f0
mov dl, 1
mov ecx, edi
call fcn.00445ab0
mov ecx, dword [ebp + 8]
mov edi, eax
mov ecx, dword [ecx + 0xc]
test edi, edi
jne 0x48143c
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x40]
mov eax, edx
mov edi, str.unknown_error
sub eax, 0x64
je 0x481437
sub eax, 1
je 0x481430
sub eax, 0x19f
je 0x481429
movzx eax, dl
cmp eax, 0x1d
jae 0x48143c
mov eax, dword [eax*4 + 0x553200]
test eax, eax
je 0x48143c
mov edi, eax
jmp 0x48143c
mov edi, str.abort_due_to_ROLLBACK
jmp 0x48143c
mov edi, str.no_more_rows_available
jmp 0x48143c
mov edi, str.another_row_available
test ecx, ecx
je 0x48144a
push ecx
call dword [0x577acc]
add esp, 4
test edi, edi
jne 0x481325
mov dword [ebx], edi
jmp 0x48136c
mov dword [ebx], 0
jmp 0x481464
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x481475
push eax
call dword [0x577acc]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret