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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], esi
xorps xmm0, xmm0
mov esi, ecx
mov dword [esp + 0x20], 0
xor ebx, ebx
mov dword [esp + 0x24], 0
push edi
mov dword [esp + 0x10], ebx
mov edx, dword [esi]
mov dword [esp + 0x3c], edx
movlpd qword [esp + 0x34], xmm0
mov dword [esp + 0x30], esi
call fcn.101217a0
mov edi, eax
test edi, edi
jne 0x10121f29
lea edx, [ebx + 1]
mov ecx, esi
call fcn.10120da0
mov edi, eax
test edi, edi
jne 0x10121f29
push eax
lea eax, [esp + 0x14]
mov ecx, esi
push eax
lea edx, [ebx + 0xa]
call fcn.1011f980
mov ebx, dword [esp + 0x18]
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
jne 0x10121f29
nop dword [eax]
xor ebp, ebp
test ebx, ebx
je 0x10121efc
cmp dword [ebx], ebp
jne 0x101218c2
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.10021710
add esp, 8
lea eax, [ebp + 1]
jmp 0x101218c4
xor eax, eax
test eax, eax
jne 0x10121f0b
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x101218e3
push eax
call dword [0x10165b88]
add esp, 4
mov ecx, ebx
call fcn.10049b40
mov esi, eax
cmp esi, 0x11
jne 0x10121b07
mov ecx, ebp
inc ebp
mov dword [esp + 0x20], ebp
cmp ecx, 0x32
jge 0x10121b03
mov eax, dword [ebx + 0x20]
lea ecx, [esp + 0x4c]
mov esi, dword [ebx]
mov edx, dword [ebx + 0xc8]
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.10092ad0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10121a32
mov ebp, dword [esp + 0x4c]
lea edi, [esp + 0x50]
mov ecx, 0x3a
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3a
mov esi, ebx
mov edi, ebp
mov edx, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3a
lea esi, [esp + 0x50]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp + 4]
mov dword [ebp + 4], eax
mov eax, dword [ebx + 0xc8]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp + 0xc8]
mov dword [ebp + 0xc8], eax
mov dword [ebx + 0xc8], ecx
mov ecx, ebp
mov eax, dword [ebp + 0xdc]
mov dword [ebx + 0xdc], eax
mov al, byte [ebp + 0x94]
mov byte [ebx + 0x94], al
movups xmm0, xmmword [ebp + 0xa4]
movups xmmword [ebx + 0xa4], xmm0
movups xmm0, xmmword [ebp + 0xb4]
movups xmmword [ebx + 0xb4], xmm0
mov eax, dword [ebp + 0xc4]
mov dword [ebx + 0xc4], eax
inc dword [ebx + 0xb8]
call fcn.1004bc30
mov dword [ebp + 0x24], 0
cmp byte [ebp + 0x95], 1
jb 0x101219f9
mov ecx, ebp
call fcn.10046b70
mov ecx, ebp
call fcn.10046c50
push ebx
call fcn.10048db0
add esp, 4
cmp dword [esp + 0x10], 0
jl 0x10121a17
mov byte [ebx + 0x93], 0xfe
mov ecx, ebx
call fcn.10049b40
mov esi, eax
cmp esi, 0x11
jne 0x10121b03
mov ebp, dword [esp + 0x20]
jmp 0x101218f5
cmp edi, 7
jne 0x10121a3e
mov ecx, esi
call fcn.1001ef40
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp + 0x124]
test ecx, ecx
jne 0x10121a50
xor esi, esi
jmp 0x10121a7f
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x10121a6d
cmp byte [ecx + 0x12], 1
jne 0x10121a6d
mov esi, dword [ecx + 8]
jmp 0x10121a7f
test dl, 1
je 0x10121a76
xor esi, esi
jmp 0x10121a7f
mov dl, 1
call fcn.10043540
mov esi, eax
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x10121a8d
mov ecx, ebp
call fcn.1001e7d0
cmp byte [ebp + 0x57], 0
jne 0x10121aee
test esi, esi
jne 0x10121a9b
xor eax, eax
jmp 0x10121ad7
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10121aa0
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, ebp
push eax
mov dword [esp + 0x28], eax
call fcn.1001ec70
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x10121ad7
push dword [esp + 0x20]
push esi
push eax
call fcn.1012b000
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, edi
mov dword [ebx + 0x7c], eax
mov ecx, ebp
call fcn.1001f020
mov edi, dword [esp + 0x14]
mov esi, eax
mov dword [ebx + 0x24], esi
jmp 0x10121b0b
mov edi, dword [esp + 0x14]
mov esi, 7
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x24], esi
jmp 0x10121b0b
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10121b1c
push eax
call dword [0x10165b90]
add esp, 4
cmp esi, 0x64
jne 0x10121f29
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10121b38
push eax
call dword [0x10165b88]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x10121b4a
xor eax, eax
cmp ax, word [ebx + 0x90]
jb 0x10121b62
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10022380
mov ecx, 0x10150a48
movzx eax, word [ecx + 0x10]
test al, 0x24
je 0x10121b71
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
jmp 0x10121bae
test al, 8
je 0x10121b84
movsd xmm0, qword [ecx]
call fcn.10042880
mov esi, eax
mov edi, edx
jmp 0x10121bae
test al, 0x12
je 0x10121b9d
cmp dword [ecx + 8], 0
je 0x10121b9d
call fcn.100428b0
mov esi, eax
mov dword [esp + 0x10], eax
mov edi, edx
jmp 0x10121bb2
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x10], esi
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x18], edi
cmp byte [ecx + 0x57], 0
jne 0x10121bc9
test edx, edx
jne 0x10121bc9
xor eax, eax
jmp 0x10121bce
call fcn.1001f020
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10121be4
push eax
call dword [0x10165b90]
add esp, 4
push edi
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x30], ebp
mov ecx, dword [esi + 4]
call fcn.10118130
mov edi, eax
xor ecx, ecx
add esp, 8
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], ecx
test edi, edi
jne 0x10121eca
mov eax, dword [esp + 0x3c]
cmp ecx, dword [eax + 0xc]
jge 0x10121ec6
xor edx, edx
mov dword [esp + 0x38], edx
mov eax, dword [eax + 0x14]
cmp byte [ecx + eax], dl
jne 0x10121dc7
mov eax, dword [ebx]
lea esi, [ecx + 1]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10121c46
push eax
call dword [0x10165b88]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x10121c6a
movzx eax, word [ebx + 0x90]
cmp esi, eax
jge 0x10121c6a
test esi, esi
js 0x10121c6a
lea eax, [esi + esi*4]
lea ecx, [ecx + eax*8]
test ecx, ecx
jne 0x10121c82
xor edi, edi
jmp 0x10121cb1
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10022380
mov ecx, 0x10150a48
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x10121c9f
cmp byte [ecx + 0x12], 1
jne 0x10121c9f
mov edi, dword [ecx + 8]
jmp 0x10121cb1
test dl, 1
je 0x10121ca8
xor edi, edi
jmp 0x10121cb1
mov dl, 1
call fcn.10043540
mov edi, eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x10121cc4
test edx, edx
jne 0x10121cc4
xor eax, eax
jmp 0x10121cc9
call fcn.1001f020
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10121cdf
push eax
call dword [0x10165b90]
add esp, 4
mov eax, dword [ebx]
mov esi, dword [esp + 0x34]
inc esi
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10121cf7
push eax
call dword [0x10165b88]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x10121d15
movzx eax, word [ebx + 0x90]
cmp esi, eax
jge 0x10121d15
test esi, esi
js 0x10121d15
lea eax, [esi + esi*4]
lea ecx, [ecx + eax*8]
jmp 0x10121d2d
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10022380
mov ecx, 0x10150a48
movzx eax, word [ecx + 0x10]
test al, 2
je 0x10121d40
cmp byte [ecx + 0x12], 1
jne 0x10121d40
mov esi, dword [ecx + 0xc]
jmp 0x10121d69
test al, 0x10
je 0x10121d58
mov edx, dword [ecx + 0xc]
test eax, 0x400
je 0x10121d54
mov esi, dword [ecx]
add esi, edx
jmp 0x10121d69
mov esi, edx
jmp 0x10121d69
test al, 1
je 0x10121d60
xor esi, esi
jmp 0x10121d69
mov dl, 1
call fcn.10043c80
mov esi, eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x10121d7c
test edx, edx
jne 0x10121d7c
xor eax, eax
jmp 0x10121d81
call fcn.1001f020
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10121d97
push eax
call dword [0x10165b90]
add esp, 4
test edi, edi
jne 0x10121d9f
xor eax, eax
jmp 0x10121dbf
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x30]
push 0x101200d0
push esi
push edi
mov eax, dword [edx + 0x3c]
push 4
push ecx
push dword [edx + 0x38]
mov eax, dword [eax + 8]
call eax
add esp, 0x18
mov edx, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x2c]
mov eax, edx
cdq
add ebp, 9
mov dword [esp + 0x40], edx
mov ecx, eax
mov dword [esp + 0x20], ecx
cmp ebp, edi
jbe 0x10121e33
test edi, edi
mov eax, 0x40
cmovne eax, edi
cdq
mov edi, edx
mov esi, eax
test edi, edi
ja 0x10121e08
jb 0x10121df8
cmp esi, ebp
jae 0x10121e08
shld edi, esi, 1
add esi, esi
test edi, edi
jb 0x10121df8
ja 0x10121e08
cmp esi, ebp
jb 0x10121df8
call fcn.100ca320
test eax, eax
jne 0x10121e54
mov ecx, dword [esp + 0x24]
push edi
push esi
call fcn.1001e950
add esp, 8
test eax, eax
je 0x10121e54
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
add esi, ebp
test edx, edx
ja 0x10121e88
jb 0x10121e48
cmp ecx, 0x7f
ja 0x10121e63
and cl, 0x7f
mov eax, 1
mov byte [esi], cl
jmp 0x10121e94
mov ebp, dword [esp + 0x28]
mov edi, 7
mov dword [esp + 0x14], edi
jmp 0x10121e9e
test edx, edx
ja 0x10121e88
jb 0x10121e71
cmp ecx, 0x3fff
ja 0x10121e88
mov eax, ecx
shrd eax, edx, 7
or al, 0x80
and cl, 0x7f
mov byte [esi], al
mov eax, 2
mov byte [esi + 1], cl
jmp 0x10121e94
push edx
push ecx
mov ecx, esi
call fcn.100233a0
add esp, 8
mov edi, dword [esp + 0x14]
add ebp, eax
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov esi, dword [eax + 0x18]
mov eax, dword [esp + 0x38]
cdq
add dword [esi + ecx*8], eax
adc dword [esi + ecx*8 + 4], edx
mov ecx, dword [esp + 0x34]
inc ecx
mov dword [esp + 0x34], ecx
test edi, edi
je 0x10121c11
mov esi, dword [esp + 0x1c]
add dword [esi + 0x10], 1
adc dword [esi + 0x14], 0
test edi, edi
jne 0x10121f29
push dword [esp + 0x18]
lea edx, [esp + 0x28]
mov ecx, esi
push dword [esp + 0x14]
call fcn.10120950
mov edi, eax
mov dword [esp + 0x1c], eax
add esp, 8
test edi, edi
je 0x101218a0
jmp 0x10121f29
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.10021710
add esp, 8
push 0x10155e9c
push 0x159e1
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.10021710
add esp, 0x14
mov esi, dword [esp + 0x24]
test esi, esi
je 0x10121f89
cmp dword [0x10165b38], 0
je 0x10121f7f
mov eax, dword [0x10168b88]
test eax, eax
je 0x10121f4d
push eax
call dword [0x10165b88]
add esp, 4
push esi
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push esi
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x10121f89
push eax
call dword [0x10165b90]
jmp 0x10121f86
push esi
call dword [0x10165b5c]
add esp, 4
test ebx, ebx
je 0x1012203a
mov esi, dword [ebx]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10121fa4
push eax
call dword [0x10165b88]
add esp, 4
cmp dword [ebx + 0x8c], 0
jl 0x10121fc1
jg 0x10121fb8
cmp dword [ebx + 0x88], 0
jbe 0x10121fc1
mov edx, ebx
mov ecx, esi
call fcn.10048c10
mov ecx, ebx
call fcn.10046b70
mov byte [ebx + 0x95], 1
mov dword [ebx + 0x20], 0xffffffff
mov dword [ebx + 0x24], 0
mov word [ebx + 0x92], 0xff02
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
cmp byte [esi + 0x57], 0
jne 0x1012201e
test eax, eax
jne 0x1012201e
xor ebx, ebx
jmp 0x10122029
mov edx, eax
mov ecx, esi
call fcn.1001f020
mov ebx, eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1012203a
push eax
call dword [0x10165b90]
add esp, 4
test edi, edi
jne 0x1012205d
test ebx, ebx
jne 0x10122053
mov ecx, dword [esp + 0x1c]
call fcn.10120ee0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret