Function at 0x10121c40
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
push edi
mov ebp, ecx
mov edx, dword [ebp]
xorps xmm0, xmm0
xor esi, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], 0
xor ebx, ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], edx
movlpd qword [esp + 0x34], xmm0
mov dword [esp + 0x30], ebp
call fcn.10121bd0
mov edi, eax
test edi, edi
jne 0x1012240e
lea edx, [esi + 1]
mov ecx, ebp
call fcn.10121720
mov edi, eax
test edi, edi
jne 0x1012240e
lea ebx, [ebp + 0x44]
mov dword [esp + 0x10], edi
cmp dword [ebx], esi
jne 0x10121d65
mov edi, dword [ebp]
push dword [edi + 0x24]
push dword [edi + 0x34]
push str.SELECT__s_FROM__s_AS_T
call fcn.10021540
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10121ce3
mov ebx, dword [ebx]
push ebx
call fcn.10048d60
add esp, 4
lea edi, [esi + 7]
jmp 0x1012240e
mov eax, dword [ebp]
mov edx, esi
push 0
push ebx
push 0
inc dword [eax + 0x40]
mov ecx, dword [edi]
push 0x85
push 0xffffffffffffffff
call fcn.10092a20
mov edi, eax
add esp, 0x14
mov eax, dword [ebp]
mov dword [esp + 0x10], edi
dec dword [eax + 0x40]
cmp dword [0x10165b38], 0
je 0x10121d5b
mov eax, dword [0x10168b88]
test eax, eax
je 0x10121d29
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 0x10121d65
push eax
call dword [0x10165b90]
jmp 0x10121d62
push esi
call dword [0x10165b5c]
add esp, 4
mov ebx, dword [ebx]
push ebx
call fcn.10048d60
add esp, 4
test edi, edi
jne 0x1012240e
nop dword [eax + eax]
xor ebp, ebp
test ebx, ebx
je 0x101223dd
cmp dword [ebx], ebp
jne 0x10121da2
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.10021700
add esp, 8
lea eax, [ebp + 1]
jmp 0x10121da4
xor eax, eax
test eax, eax
jne 0x101223ec
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10121dc3
push eax
call dword [0x10165b88]
add esp, 4
mov ecx, ebx
call fcn.10049af0
mov esi, eax
cmp esi, 0x11
jne 0x10121fe7
mov ecx, ebp
inc ebp
mov dword [esp + 0x20], ebp
cmp ecx, 0x32
jge 0x10121fe3
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 + 0x20], eax
mov ecx, esi
movzx eax, byte [ebx + 0x94]
push ebx
push eax
push 0xffffffffffffffff
call fcn.10092a20
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10121f12
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.1004bbe0
mov dword [ebp + 0x24], 0
cmp byte [ebp + 0x95], 1
jb 0x10121ed9
mov ecx, ebp
call fcn.10046b40
mov ecx, ebp
call fcn.10046c20
push ebx
call fcn.10048d60
add esp, 4
cmp dword [esp + 0x18], 0
jl 0x10121ef7
mov byte [ebx + 0x93], 0xfe
mov ecx, ebx
call fcn.10049af0
mov esi, eax
cmp esi, 0x11
jne 0x10121fe3
mov ebp, dword [esp + 0x20]
jmp 0x10121dd5
cmp edi, 7
jne 0x10121f1e
mov ecx, esi
call fcn.1001ef20
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp + 0x124]
test ecx, ecx
jne 0x10121f30
xor esi, esi
jmp 0x10121f5f
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x10121f4d
cmp byte [ecx + 0x12], 1
jne 0x10121f4d
mov esi, dword [ecx + 8]
jmp 0x10121f5f
test dl, 1
je 0x10121f56
xor esi, esi
jmp 0x10121f5f
mov dl, 1
call fcn.10043510
mov esi, eax
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x10121f6d
mov ecx, ebp
call fcn.1001e7b0
cmp byte [ebp + 0x57], 0
jne 0x10121fce
test esi, esi
jne 0x10121f7b
xor eax, eax
jmp 0x10121fb7
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10121f80
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, ebp
push eax
mov dword [esp + 0x28], eax
call fcn.1001ec50
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x10121fb7
push dword [esp + 0x20]
push esi
push eax
call fcn.1012ad80
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, edi
mov dword [ebx + 0x7c], eax
mov ecx, ebp
call fcn.1001f000
mov edi, dword [esp + 0x10]
mov esi, eax
mov dword [ebx + 0x24], esi
jmp 0x10121feb
mov edi, dword [esp + 0x10]
mov esi, 7
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x24], esi
jmp 0x10121feb
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10121ffc
push eax
call dword [0x10165b90]
add esp, 4
cmp esi, 0x64
jne 0x1012240a
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122018
push eax
call dword [0x10165b88]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x1012202a
xor eax, eax
cmp ax, word [ebx + 0x90]
jb 0x10122042
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10022340
mov ecx, 0x10150a48
movzx eax, word [ecx + 0x10]
test al, 0x24
je 0x10122051
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
jmp 0x1012208e
test al, 8
je 0x10122064
movsd xmm0, qword [ecx]
call fcn.10042840
mov esi, eax
mov edi, edx
jmp 0x1012208e
test al, 0x12
je 0x1012207d
cmp dword [ecx + 8], 0
je 0x1012207d
call fcn.10042870
mov esi, eax
mov dword [esp + 0x14], eax
mov edi, edx
jmp 0x10122092
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], esi
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x18], edi
cmp byte [ecx + 0x57], 0
jne 0x101220a9
test edx, edx
jne 0x101220a9
xor eax, eax
jmp 0x101220ae
call fcn.1001f000
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x101220c4
push eax
call dword [0x10165b90]
add esp, 4
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
push edi
push esi
xor edx, edx
mov dword [esp + 0x30], ebp
mov ecx, dword [ecx + 4]
call fcn.10118d50
mov edi, eax
xor ecx, ecx
add esp, 8
mov dword [esp + 0x10], edi
mov dword [esp + 0x34], ecx
test edi, edi
jne 0x101223aa
mov eax, dword [esp + 0x3c]
cmp ecx, dword [eax + 0xc]
jge 0x101223a6
xor edx, edx
mov dword [esp + 0x38], edx
mov eax, dword [eax + 0x14]
cmp byte [ecx + eax], dl
jne 0x101222a7
mov eax, dword [ebx]
lea esi, [ecx + 1]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122126
push eax
call dword [0x10165b88]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x1012214a
movzx eax, word [ebx + 0x90]
cmp esi, eax
jge 0x1012214a
test esi, esi
js 0x1012214a
lea eax, [esi + esi*4]
lea ecx, [ecx + eax*8]
test ecx, ecx
jne 0x10122162
xor edi, edi
jmp 0x10122191
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10022340
mov ecx, 0x10150a48
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x1012217f
cmp byte [ecx + 0x12], 1
jne 0x1012217f
mov edi, dword [ecx + 8]
jmp 0x10122191
test dl, 1
je 0x10122188
xor edi, edi
jmp 0x10122191
mov dl, 1
call fcn.10043510
mov edi, eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x101221a4
test edx, edx
jne 0x101221a4
xor eax, eax
jmp 0x101221a9
call fcn.1001f000
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x101221bf
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 0x101221d7
push eax
call dword [0x10165b88]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x101221f5
movzx eax, word [ebx + 0x90]
cmp esi, eax
jge 0x101221f5
test esi, esi
js 0x101221f5
lea eax, [esi + esi*4]
lea ecx, [ecx + eax*8]
jmp 0x1012220d
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10022340
mov ecx, 0x10150a48
movzx eax, word [ecx + 0x10]
test al, 2
je 0x10122220
cmp byte [ecx + 0x12], 1
jne 0x10122220
mov esi, dword [ecx + 0xc]
jmp 0x10122249
test al, 0x10
je 0x10122238
mov edx, dword [ecx + 0xc]
test eax, 0x400
je 0x10122234
mov esi, dword [ecx]
add esi, edx
jmp 0x10122249
mov esi, edx
jmp 0x10122249
test al, 1
je 0x10122240
xor esi, esi
jmp 0x10122249
mov dl, 1
call fcn.10043c50
mov esi, eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x1012225c
test edx, edx
jne 0x1012225c
xor eax, eax
jmp 0x10122261
call fcn.1001f000
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122277
push eax
call dword [0x10165b90]
add esp, 4
test edi, edi
jne 0x1012227f
xor eax, eax
jmp 0x1012229f
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x30]
push 0x10120ce0
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 + 0x10], 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 0x10122313
test edi, edi
mov eax, 0x40
cmovne eax, edi
cdq
mov edi, edx
mov esi, eax
test edi, edi
ja 0x101222e8
jb 0x101222d8
cmp esi, ebp
jae 0x101222e8
shld edi, esi, 1
add esi, esi
test edi, edi
jb 0x101222d8
ja 0x101222e8
cmp esi, ebp
jb 0x101222d8
call fcn.100cb1b0
test eax, eax
jne 0x10122334
mov ecx, dword [esp + 0x24]
push edi
push esi
call fcn.1001e930
add esp, 8
test eax, eax
je 0x10122334
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 0x10122368
jb 0x10122328
cmp ecx, 0x7f
ja 0x10122343
and cl, 0x7f
mov eax, 1
mov byte [esi], cl
jmp 0x10122374
mov ebp, dword [esp + 0x28]
mov edi, 7
mov dword [esp + 0x10], edi
jmp 0x1012237e
test edx, edx
ja 0x10122368
jb 0x10122351
cmp ecx, 0x3fff
ja 0x10122368
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 0x10122374
push edx
push ecx
mov ecx, esi
call fcn.10023370
add esp, 8
mov edi, dword [esp + 0x10]
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 0x101220f1
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
add dword [ebp + 0x10], 1
adc dword [ebp + 0x14], 0
test edi, edi
jne 0x1012240e
push dword [esp + 0x18]
lea edx, [esp + 0x28]
mov ecx, ebp
push esi
call fcn.10121560
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
je 0x10121d80
jmp 0x1012240e
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.10021700
add esp, 8
push 0x10155e9c
push 0x159e1
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.10021700
add esp, 0x14
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
test esi, esi
je 0x1012246e
cmp dword [0x10165b38], 0
je 0x10122464
mov eax, dword [0x10168b88]
test eax, eax
je 0x10122432
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 0x1012246e
push eax
call dword [0x10165b90]
jmp 0x1012246b
push esi
call dword [0x10165b5c]
add esp, 4
test ebx, ebx
je 0x1012251f
mov esi, dword [ebx]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10122489
push eax
call dword [0x10165b88]
add esp, 4
cmp dword [ebx + 0x8c], 0
jl 0x101224a6
jg 0x1012249d
cmp dword [ebx + 0x88], 0
jbe 0x101224a6
mov edx, ebx
mov ecx, esi
call fcn.10048bc0
mov ecx, ebx
call fcn.10046b40
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 0x10122503
test eax, eax
jne 0x10122503
xor ebx, ebx
jmp 0x1012250e
mov edx, eax
mov ecx, esi
call fcn.1001f000
mov ebx, eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1012251f
push eax
call dword [0x10165b90]
add esp, 4
test edi, edi
jne 0x10122540
test ebx, ebx
jne 0x10122536
mov ecx, ebp
call fcn.10121860
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