Function at 0x10121f50
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.10121ee0
mov edi, eax
test edi, edi
jne 0x10122669
lea edx, [ebx + 1]
mov ecx, esi
call fcn.101214e0
mov edi, eax
test edi, edi
jne 0x10122669
push eax
lea eax, [esp + 0x14]
mov ecx, esi
push eax
lea edx, [ebx + 0xa]
call fcn.101200c0
mov ebx, dword [esp + 0x18]
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
jne 0x10122669
nop dword [eax]
xor ebp, ebp
test ebx, ebx
je 0x1012263c
cmp dword [ebx], ebp
jne 0x10122002
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.10021520
add esp, 8
lea eax, [ebp + 1]
jmp 0x10122004
xor eax, eax
test eax, eax
jne 0x1012264b
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122023
push eax
call dword [0x10165b48]
add esp, 4
mov ecx, ebx
call fcn.10049950
mov esi, eax
cmp esi, 0x11
jne 0x10122247
mov ecx, ebp
inc ebp
mov dword [esp + 0x20], ebp
cmp ecx, 0x32
jge 0x10122243
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.100931f0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10122172
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.1004ba40
mov dword [ebp + 0x24], 0
cmp byte [ebp + 0x95], 1
jb 0x10122139
mov ecx, ebp
call fcn.10046980
mov ecx, ebp
call fcn.10046a60
push ebx
call fcn.10048bc0
add esp, 4
cmp dword [esp + 0x10], 0
jl 0x10122157
mov byte [ebx + 0x93], 0xfe
mov ecx, ebx
call fcn.10049950
mov esi, eax
cmp esi, 0x11
jne 0x10122243
mov ebp, dword [esp + 0x20]
jmp 0x10122035
cmp edi, 7
jne 0x1012217e
mov ecx, esi
call fcn.1001ebf0
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp + 0x124]
test ecx, ecx
jne 0x10122190
xor esi, esi
jmp 0x101221bf
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x101221ad
cmp byte [ecx + 0x12], 1
jne 0x101221ad
mov esi, dword [ecx + 8]
jmp 0x101221bf
test dl, 1
je 0x101221b6
xor esi, esi
jmp 0x101221bf
mov dl, 1
call fcn.100433c0
mov esi, eax
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x101221cd
mov ecx, ebp
call fcn.1001e480
cmp byte [ebp + 0x57], 0
jne 0x1012222e
test esi, esi
jne 0x101221db
xor eax, eax
jmp 0x10122217
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101221e0
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, ebp
push eax
mov dword [esp + 0x28], eax
call fcn.1001e920
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x10122217
push dword [esp + 0x20]
push esi
push eax
call fcn.1012bec0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, edi
mov dword [ebx + 0x7c], eax
mov ecx, ebp
call fcn.1001ecd0
mov edi, dword [esp + 0x14]
mov esi, eax
mov dword [ebx + 0x24], esi
jmp 0x1012224b
mov edi, dword [esp + 0x14]
mov esi, 7
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x24], esi
jmp 0x1012224b
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1012225c
push eax
call dword [0x10165b50]
add esp, 4
cmp esi, 0x64
jne 0x10122669
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122278
push eax
call dword [0x10165b48]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x1012228a
xor eax, eax
cmp ax, word [ebx + 0x90]
jb 0x101222a2
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.100220a0
mov ecx, 0x10151998
movzx eax, word [ecx + 0x10]
test al, 0x24
je 0x101222b1
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
jmp 0x101222ee
test al, 8
je 0x101222c4
movsd xmm0, qword [ecx]
call fcn.100426d0
mov esi, eax
mov edi, edx
jmp 0x101222ee
test al, 0x12
je 0x101222dd
cmp dword [ecx + 8], 0
je 0x101222dd
call fcn.10042700
mov esi, eax
mov dword [esp + 0x10], eax
mov edi, edx
jmp 0x101222f2
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 0x10122309
test edx, edx
jne 0x10122309
xor eax, eax
jmp 0x1012230e
call fcn.1001ecd0
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122324
push eax
call dword [0x10165b50]
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.101185b0
mov edi, eax
xor ecx, ecx
add esp, 8
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], ecx
test edi, edi
jne 0x1012260a
mov eax, dword [esp + 0x3c]
cmp ecx, dword [eax + 0xc]
jge 0x10122606
xor edx, edx
mov dword [esp + 0x38], edx
mov eax, dword [eax + 0x14]
cmp byte [ecx + eax], dl
jne 0x10122507
mov eax, dword [ebx]
lea esi, [ecx + 1]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122386
push eax
call dword [0x10165b48]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x101223aa
movzx eax, word [ebx + 0x90]
cmp esi, eax
jge 0x101223aa
test esi, esi
js 0x101223aa
lea eax, [esi + esi*4]
lea ecx, [ecx + eax*8]
test ecx, ecx
jne 0x101223c2
xor edi, edi
jmp 0x101223f1
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.100220a0
mov ecx, 0x10151998
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x101223df
cmp byte [ecx + 0x12], 1
jne 0x101223df
mov edi, dword [ecx + 8]
jmp 0x101223f1
test dl, 1
je 0x101223e8
xor edi, edi
jmp 0x101223f1
mov dl, 1
call fcn.100433c0
mov edi, eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x10122404
test edx, edx
jne 0x10122404
xor eax, eax
jmp 0x10122409
call fcn.1001ecd0
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012241f
push eax
call dword [0x10165b50]
add esp, 4
mov eax, dword [ebx]
mov esi, dword [esp + 0x34]
inc esi
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122437
push eax
call dword [0x10165b48]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x10122455
movzx eax, word [ebx + 0x90]
cmp esi, eax
jge 0x10122455
test esi, esi
js 0x10122455
lea eax, [esi + esi*4]
lea ecx, [ecx + eax*8]
jmp 0x1012246d
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.100220a0
mov ecx, 0x10151998
movzx eax, word [ecx + 0x10]
test al, 2
je 0x10122480
cmp byte [ecx + 0x12], 1
jne 0x10122480
mov esi, dword [ecx + 0xc]
jmp 0x101224a9
test al, 0x10
je 0x10122498
mov edx, dword [ecx + 0xc]
test eax, 0x400
je 0x10122494
mov esi, dword [ecx]
add esi, edx
jmp 0x101224a9
mov esi, edx
jmp 0x101224a9
test al, 1
je 0x101224a0
xor esi, esi
jmp 0x101224a9
mov dl, 1
call fcn.10043b00
mov esi, eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x101224bc
test edx, edx
jne 0x101224bc
xor eax, eax
jmp 0x101224c1
call fcn.1001ecd0
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x101224d7
push eax
call dword [0x10165b50]
add esp, 4
test edi, edi
jne 0x101224df
xor eax, eax
jmp 0x101224ff
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x30]
push 0x10120810
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 0x10122573
test edi, edi
mov eax, 0x40
cmovne eax, edi
cdq
mov edi, edx
mov esi, eax
test edi, edi
ja 0x10122548
jb 0x10122538
cmp esi, ebp
jae 0x10122548
shld edi, esi, 1
add esi, esi
test edi, edi
jb 0x10122538
ja 0x10122548
cmp esi, ebp
jb 0x10122538
call fcn.100cad40
test eax, eax
jne 0x10122594
mov ecx, dword [esp + 0x24]
push edi
push esi
call fcn.1001e600
add esp, 8
test eax, eax
je 0x10122594
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 0x101225c8
jb 0x10122588
cmp ecx, 0x7f
ja 0x101225a3
and cl, 0x7f
mov eax, 1
mov byte [esi], cl
jmp 0x101225d4
mov ebp, dword [esp + 0x28]
mov edi, 7
mov dword [esp + 0x14], edi
jmp 0x101225de
test edx, edx
ja 0x101225c8
jb 0x101225b1
cmp ecx, 0x3fff
ja 0x101225c8
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 0x101225d4
push edx
push ecx
mov ecx, esi
call fcn.100230c0
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 0x10122351
mov esi, dword [esp + 0x1c]
add dword [esi + 0x10], 1
adc dword [esi + 0x14], 0
test edi, edi
jne 0x10122669
push dword [esp + 0x18]
lea edx, [esp + 0x28]
mov ecx, esi
push dword [esp + 0x14]
call fcn.10121090
mov edi, eax
mov dword [esp + 0x1c], eax
add esp, 8
test edi, edi
je 0x10121fe0
jmp 0x10122669
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.10021520
add esp, 8
push 0x10156dc4
push 0x159e1
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.10021520
add esp, 0x14
mov esi, dword [esp + 0x24]
test esi, esi
je 0x101226c9
cmp dword [0x10165af8], 0
je 0x101226bf
mov eax, dword [0x10168b40]
test eax, eax
je 0x1012268d
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
sub dword [0x101689c8], eax
add esp, 4
dec dword [0x101689ec]
push esi
call dword [0x10165b1c]
mov eax, dword [0x10168b40]
add esp, 4
test eax, eax
je 0x101226c9
push eax
call dword [0x10165b50]
jmp 0x101226c6
push esi
call dword [0x10165b1c]
add esp, 4
test ebx, ebx
jne 0x101226d4
xor esi, esi
jmp 0x1012277d
mov ebp, dword [ebx]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101226e7
push eax
call dword [0x10165b48]
add esp, 4
cmp dword [ebx + 0x8c], 0
jl 0x10122704
jg 0x101226fb
cmp dword [ebx + 0x88], 0
jbe 0x10122704
mov edx, ebx
mov ecx, ebp
call fcn.10048a20
mov ecx, ebx
call fcn.10046980
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 [ebp + 0x57], 0
jne 0x10122761
test eax, eax
jne 0x10122761
xor esi, esi
jmp 0x1012276c
mov edx, eax
mov ecx, ebp
call fcn.1001ecd0
mov esi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1012277d
push eax
call dword [0x10165b50]
add esp, 4
test edi, edi
cmovne esi, edi
test esi, esi
jne 0x10122797
mov ecx, dword [esp + 0x1c]
call fcn.10121620
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret