Function at 0x10121ea0
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.10121e30
mov edi, eax
test edi, edi
jne 0x101225b9
lea edx, [ebx + 1]
mov ecx, esi
call fcn.10121430
mov edi, eax
test edi, edi
jne 0x101225b9
push eax
lea eax, [esp + 0x14]
mov ecx, esi
push eax
lea edx, [ebx + 0xa]
call fcn.10120010
mov ebx, dword [esp + 0x18]
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
jne 0x101225b9
nop dword [eax]
xor ebp, ebp
test ebx, ebx
je 0x1012258c
cmp dword [ebx], ebp
jne 0x10121f52
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.10021490
add esp, 8
lea eax, [ebp + 1]
jmp 0x10121f54
xor eax, eax
test eax, eax
jne 0x1012259b
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10121f73
push eax
call dword [0x10165b48]
add esp, 4
mov ecx, ebx
call fcn.100498d0
mov esi, eax
cmp esi, 0x11
jne 0x10122197
mov ecx, ebp
inc ebp
mov dword [esp + 0x20], ebp
cmp ecx, 0x32
jge 0x10122193
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.100931a0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x101220c2
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.1004b9c0
mov dword [ebp + 0x24], 0
cmp byte [ebp + 0x95], 1
jb 0x10122089
mov ecx, ebp
call fcn.10046900
mov ecx, ebp
call fcn.100469e0
push ebx
call fcn.10048b40
add esp, 4
cmp dword [esp + 0x10], 0
jl 0x101220a7
mov byte [ebx + 0x93], 0xfe
mov ecx, ebx
call fcn.100498d0
mov esi, eax
cmp esi, 0x11
jne 0x10122193
mov ebp, dword [esp + 0x20]
jmp 0x10121f85
cmp edi, 7
jne 0x101220ce
mov ecx, esi
call fcn.1001eb60
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp + 0x124]
test ecx, ecx
jne 0x101220e0
xor esi, esi
jmp 0x1012210f
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x101220fd
cmp byte [ecx + 0x12], 1
jne 0x101220fd
mov esi, dword [ecx + 8]
jmp 0x1012210f
test dl, 1
je 0x10122106
xor esi, esi
jmp 0x1012210f
mov dl, 1
call fcn.10043350
mov esi, eax
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x1012211d
mov ecx, ebp
call fcn.1001e3f0
cmp byte [ebp + 0x57], 0
jne 0x1012217e
test esi, esi
jne 0x1012212b
xor eax, eax
jmp 0x10122167
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10122130
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, ebp
push eax
mov dword [esp + 0x28], eax
call fcn.1001e890
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x10122167
push dword [esp + 0x20]
push esi
push eax
call fcn.1012be10
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, edi
mov dword [ebx + 0x7c], eax
mov ecx, ebp
call fcn.1001ec40
mov edi, dword [esp + 0x14]
mov esi, eax
mov dword [ebx + 0x24], esi
jmp 0x1012219b
mov edi, dword [esp + 0x14]
mov esi, 7
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x24], esi
jmp 0x1012219b
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101221ac
push eax
call dword [0x10165b50]
add esp, 4
cmp esi, 0x64
jne 0x101225b9
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x101221c8
push eax
call dword [0x10165b48]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x101221da
xor eax, eax
cmp ax, word [ebx + 0x90]
jb 0x101221f2
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10022010
mov ecx, 0x10151958
movzx eax, word [ecx + 0x10]
test al, 0x24
je 0x10122201
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
jmp 0x1012223e
test al, 8
je 0x10122214
movsd xmm0, qword [ecx]
call fcn.10042660
mov esi, eax
mov edi, edx
jmp 0x1012223e
test al, 0x12
je 0x1012222d
cmp dword [ecx + 8], 0
je 0x1012222d
call fcn.10042690
mov esi, eax
mov dword [esp + 0x10], eax
mov edi, edx
jmp 0x10122242
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 0x10122259
test edx, edx
jne 0x10122259
xor eax, eax
jmp 0x1012225e
call fcn.1001ec40
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122274
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.101184f0
mov edi, eax
xor ecx, ecx
add esp, 8
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], ecx
test edi, edi
jne 0x1012255a
mov eax, dword [esp + 0x3c]
cmp ecx, dword [eax + 0xc]
jge 0x10122556
xor edx, edx
mov dword [esp + 0x38], edx
mov eax, dword [eax + 0x14]
cmp byte [ecx + eax], dl
jne 0x10122457
mov eax, dword [ebx]
lea esi, [ecx + 1]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x101222d6
push eax
call dword [0x10165b48]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x101222fa
movzx eax, word [ebx + 0x90]
cmp esi, eax
jge 0x101222fa
test esi, esi
js 0x101222fa
lea eax, [esi + esi*4]
lea ecx, [ecx + eax*8]
test ecx, ecx
jne 0x10122312
xor edi, edi
jmp 0x10122341
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10022010
mov ecx, 0x10151958
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x1012232f
cmp byte [ecx + 0x12], 1
jne 0x1012232f
mov edi, dword [ecx + 8]
jmp 0x10122341
test dl, 1
je 0x10122338
xor edi, edi
jmp 0x10122341
mov dl, 1
call fcn.10043350
mov edi, eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x10122354
test edx, edx
jne 0x10122354
xor eax, eax
jmp 0x10122359
call fcn.1001ec40
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012236f
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 0x10122387
push eax
call dword [0x10165b48]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x101223a5
movzx eax, word [ebx + 0x90]
cmp esi, eax
jge 0x101223a5
test esi, esi
js 0x101223a5
lea eax, [esi + esi*4]
lea ecx, [ecx + eax*8]
jmp 0x101223bd
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10022010
mov ecx, 0x10151958
movzx eax, word [ecx + 0x10]
test al, 2
je 0x101223d0
cmp byte [ecx + 0x12], 1
jne 0x101223d0
mov esi, dword [ecx + 0xc]
jmp 0x101223f9
test al, 0x10
je 0x101223e8
mov edx, dword [ecx + 0xc]
test eax, 0x400
je 0x101223e4
mov esi, dword [ecx]
add esi, edx
jmp 0x101223f9
mov esi, edx
jmp 0x101223f9
test al, 1
je 0x101223f0
xor esi, esi
jmp 0x101223f9
mov dl, 1
call fcn.10043a90
mov esi, eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x1012240c
test edx, edx
jne 0x1012240c
xor eax, eax
jmp 0x10122411
call fcn.1001ec40
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122427
push eax
call dword [0x10165b50]
add esp, 4
test edi, edi
jne 0x1012242f
xor eax, eax
jmp 0x1012244f
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x30]
push 0x10120760
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 0x101224c3
test edi, edi
mov eax, 0x40
cmovne eax, edi
cdq
mov edi, edx
mov esi, eax
test edi, edi
ja 0x10122498
jb 0x10122488
cmp esi, ebp
jae 0x10122498
shld edi, esi, 1
add esi, esi
test edi, edi
jb 0x10122488
ja 0x10122498
cmp esi, ebp
jb 0x10122488
call fcn.100cac40
test eax, eax
jne 0x101224e4
mov ecx, dword [esp + 0x24]
push edi
push esi
call fcn.1001e570
add esp, 8
test eax, eax
je 0x101224e4
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 0x10122518
jb 0x101224d8
cmp ecx, 0x7f
ja 0x101224f3
and cl, 0x7f
mov eax, 1
mov byte [esi], cl
jmp 0x10122524
mov ebp, dword [esp + 0x28]
mov edi, 7
mov dword [esp + 0x14], edi
jmp 0x1012252e
test edx, edx
ja 0x10122518
jb 0x10122501
cmp ecx, 0x3fff
ja 0x10122518
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 0x10122524
push edx
push ecx
mov ecx, esi
call fcn.10023030
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 0x101222a1
mov esi, dword [esp + 0x1c]
add dword [esi + 0x10], 1
adc dword [esi + 0x14], 0
test edi, edi
jne 0x101225b9
push dword [esp + 0x18]
lea edx, [esp + 0x28]
mov ecx, esi
push dword [esp + 0x14]
call fcn.10120fe0
mov edi, eax
mov dword [esp + 0x1c], eax
add esp, 8
test edi, edi
je 0x10121f30
jmp 0x101225b9
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.10021490
add esp, 8
push 0x10156d84
push 0x159e1
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.10021490
add esp, 0x14
mov esi, dword [esp + 0x24]
test esi, esi
je 0x10122619
cmp dword [0x10165af8], 0
je 0x1012260f
mov eax, dword [0x10168b40]
test eax, eax
je 0x101225dd
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 0x10122619
push eax
call dword [0x10165b50]
jmp 0x10122616
push esi
call dword [0x10165b1c]
add esp, 4
test ebx, ebx
jne 0x10122624
xor esi, esi
jmp 0x101226cd
mov ebp, dword [ebx]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10122637
push eax
call dword [0x10165b48]
add esp, 4
cmp dword [ebx + 0x8c], 0
jl 0x10122654
jg 0x1012264b
cmp dword [ebx + 0x88], 0
jbe 0x10122654
mov edx, ebx
mov ecx, ebp
call fcn.100489a0
mov ecx, ebx
call fcn.10046900
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 0x101226b1
test eax, eax
jne 0x101226b1
xor esi, esi
jmp 0x101226bc
mov edx, eax
mov ecx, ebp
call fcn.1001ec40
mov esi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101226cd
push eax
call dword [0x10165b50]
add esp, 4
test edi, edi
cmovne esi, edi
test esi, esi
jne 0x101226e7
mov ecx, dword [esp + 0x1c]
call fcn.10121570
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