Function at 0x101227a0
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.10122730
mov edi, eax
test edi, edi
jne 0x10122eb9
lea edx, [ebx + 1]
mov ecx, esi
call fcn.10121d30
mov edi, eax
test edi, edi
jne 0x10122eb9
push eax
lea eax, [esp + 0x14]
mov ecx, esi
push eax
lea edx, [ebx + 0xa]
call fcn.10120910
mov ebx, dword [esp + 0x18]
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
jne 0x10122eb9
nop dword [eax]
xor ebp, ebp
test ebx, ebx
je 0x10122e8c
cmp dword [ebx], ebp
jne 0x10122852
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.10021740
add esp, 8
lea eax, [ebp + 1]
jmp 0x10122854
xor eax, eax
test eax, eax
jne 0x10122e9b
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122873
push eax
call dword [0x10166b48]
add esp, 4
mov ecx, ebx
call fcn.10049c30
mov esi, eax
cmp esi, 0x11
jne 0x10122a97
mov ecx, ebp
inc ebp
mov dword [esp + 0x20], ebp
cmp ecx, 0x32
jge 0x10122a93
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.100937b0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x101229c2
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.1004bd20
mov dword [ebp + 0x24], 0
cmp byte [ebp + 0x95], 1
jb 0x10122989
mov ecx, ebp
call fcn.10046c60
mov ecx, ebp
call fcn.10046d40
push ebx
call fcn.10048ea0
add esp, 4
cmp dword [esp + 0x10], 0
jl 0x101229a7
mov byte [ebx + 0x93], 0xfe
mov ecx, ebx
call fcn.10049c30
mov esi, eax
cmp esi, 0x11
jne 0x10122a93
mov ebp, dword [esp + 0x20]
jmp 0x10122885
cmp edi, 7
jne 0x101229ce
mov ecx, esi
call fcn.1001ef20
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp + 0x124]
test ecx, ecx
jne 0x101229e0
xor esi, esi
jmp 0x10122a0f
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x101229fd
cmp byte [ecx + 0x12], 1
jne 0x101229fd
mov esi, dword [ecx + 8]
jmp 0x10122a0f
test dl, 1
je 0x10122a06
xor esi, esi
jmp 0x10122a0f
mov dl, 1
call fcn.100436a0
mov esi, eax
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x10122a1d
mov ecx, ebp
call fcn.1001e7b0
cmp byte [ebp + 0x57], 0
jne 0x10122a7e
test esi, esi
jne 0x10122a2b
xor eax, eax
jmp 0x10122a67
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10122a30
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 + 0x10], eax
test eax, eax
je 0x10122a67
push dword [esp + 0x20]
push esi
push eax
call fcn.1012bff0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, edi
mov dword [ebx + 0x7c], eax
mov ecx, ebp
call fcn.1001f000
mov edi, dword [esp + 0x14]
mov esi, eax
mov dword [ebx + 0x24], esi
jmp 0x10122a9b
mov edi, dword [esp + 0x14]
mov esi, 7
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x24], esi
jmp 0x10122a9b
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10122aac
push eax
call dword [0x10166b50]
add esp, 4
cmp esi, 0x64
jne 0x10122eb9
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122ac8
push eax
call dword [0x10166b48]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x10122ada
xor eax, eax
cmp ax, word [ebx + 0x90]
jb 0x10122af2
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.100223b0
mov ecx, 0x10151a48
movzx eax, word [ecx + 0x10]
test al, 0x24
je 0x10122b01
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
jmp 0x10122b3e
test al, 8
je 0x10122b14
movsd xmm0, qword [ecx]
call fcn.100429b0
mov esi, eax
mov edi, edx
jmp 0x10122b3e
test al, 0x12
je 0x10122b2d
cmp dword [ecx + 8], 0
je 0x10122b2d
call fcn.100429e0
mov esi, eax
mov dword [esp + 0x10], eax
mov edi, edx
jmp 0x10122b42
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 0x10122b59
test edx, edx
jne 0x10122b59
xor eax, eax
jmp 0x10122b5e
call fcn.1001f000
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122b74
push eax
call dword [0x10166b50]
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.10119120
mov edi, eax
xor ecx, ecx
add esp, 8
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], ecx
test edi, edi
jne 0x10122e5a
mov eax, dword [esp + 0x3c]
cmp ecx, dword [eax + 0xc]
jge 0x10122e56
xor edx, edx
mov dword [esp + 0x38], edx
mov eax, dword [eax + 0x14]
cmp byte [ecx + eax], dl
jne 0x10122d57
mov eax, dword [ebx]
lea esi, [ecx + 1]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122bd6
push eax
call dword [0x10166b48]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x10122bfa
movzx eax, word [ebx + 0x90]
cmp esi, eax
jge 0x10122bfa
test esi, esi
js 0x10122bfa
lea eax, [esi + esi*4]
lea ecx, [ecx + eax*8]
test ecx, ecx
jne 0x10122c12
xor edi, edi
jmp 0x10122c41
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.100223b0
mov ecx, 0x10151a48
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x10122c2f
cmp byte [ecx + 0x12], 1
jne 0x10122c2f
mov edi, dword [ecx + 8]
jmp 0x10122c41
test dl, 1
je 0x10122c38
xor edi, edi
jmp 0x10122c41
mov dl, 1
call fcn.100436a0
mov edi, eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x10122c54
test edx, edx
jne 0x10122c54
xor eax, eax
jmp 0x10122c59
call fcn.1001f000
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122c6f
push eax
call dword [0x10166b50]
add esp, 4
mov eax, dword [ebx]
mov esi, dword [esp + 0x34]
inc esi
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122c87
push eax
call dword [0x10166b48]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x10122ca5
movzx eax, word [ebx + 0x90]
cmp esi, eax
jge 0x10122ca5
test esi, esi
js 0x10122ca5
lea eax, [esi + esi*4]
lea ecx, [ecx + eax*8]
jmp 0x10122cbd
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.100223b0
mov ecx, 0x10151a48
movzx eax, word [ecx + 0x10]
test al, 2
je 0x10122cd0
cmp byte [ecx + 0x12], 1
jne 0x10122cd0
mov esi, dword [ecx + 0xc]
jmp 0x10122cf9
test al, 0x10
je 0x10122ce8
mov edx, dword [ecx + 0xc]
test eax, 0x400
je 0x10122ce4
mov esi, dword [ecx]
add esi, edx
jmp 0x10122cf9
mov esi, edx
jmp 0x10122cf9
test al, 1
je 0x10122cf0
xor esi, esi
jmp 0x10122cf9
mov dl, 1
call fcn.10043de0
mov esi, eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x10122d0c
test edx, edx
jne 0x10122d0c
xor eax, eax
jmp 0x10122d11
call fcn.1001f000
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10122d27
push eax
call dword [0x10166b50]
add esp, 4
test edi, edi
jne 0x10122d2f
xor eax, eax
jmp 0x10122d4f
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x30]
push 0x10121060
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 0x10122dc3
test edi, edi
mov eax, 0x40
cmovne eax, edi
cdq
mov edi, edx
mov esi, eax
test edi, edi
ja 0x10122d98
jb 0x10122d88
cmp esi, ebp
jae 0x10122d98
shld edi, esi, 1
add esi, esi
test edi, edi
jb 0x10122d88
ja 0x10122d98
cmp esi, ebp
jb 0x10122d88
call fcn.100cb480
test eax, eax
jne 0x10122de4
mov ecx, dword [esp + 0x24]
push edi
push esi
call fcn.1001e930
add esp, 8
test eax, eax
je 0x10122de4
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 0x10122e18
jb 0x10122dd8
cmp ecx, 0x7f
ja 0x10122df3
and cl, 0x7f
mov eax, 1
mov byte [esi], cl
jmp 0x10122e24
mov ebp, dword [esp + 0x28]
mov edi, 7
mov dword [esp + 0x14], edi
jmp 0x10122e2e
test edx, edx
ja 0x10122e18
jb 0x10122e01
cmp ecx, 0x3fff
ja 0x10122e18
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 0x10122e24
push edx
push ecx
mov ecx, esi
call fcn.100233d0
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 0x10122ba1
mov esi, dword [esp + 0x1c]
add dword [esi + 0x10], 1
adc dword [esi + 0x14], 0
test edi, edi
jne 0x10122eb9
push dword [esp + 0x18]
lea edx, [esp + 0x28]
mov ecx, esi
push dword [esp + 0x14]
call fcn.101218e0
mov edi, eax
mov dword [esp + 0x1c], eax
add esp, 8
test edi, edi
je 0x10122830
jmp 0x10122eb9
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.10021740
add esp, 8
push 0x10156e9c
push 0x159e1
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.10021740
add esp, 0x14
mov esi, dword [esp + 0x24]
test esi, esi
je 0x10122f19
cmp dword [0x10166af8], 0
je 0x10122f0f
mov eax, dword [0x10169b48]
test eax, eax
je 0x10122edd
push eax
call dword [0x10166b48]
add esp, 4
push esi
call dword [0x10166b24]
sub dword [0x101699d0], eax
add esp, 4
dec dword [0x101699f4]
push esi
call dword [0x10166b1c]
mov eax, dword [0x10169b48]
add esp, 4
test eax, eax
je 0x10122f19
push eax
call dword [0x10166b50]
jmp 0x10122f16
push esi
call dword [0x10166b1c]
add esp, 4
test ebx, ebx
jne 0x10122f24
xor esi, esi
jmp 0x10122fcd
mov ebp, dword [ebx]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10122f37
push eax
call dword [0x10166b48]
add esp, 4
cmp dword [ebx + 0x8c], 0
jl 0x10122f54
jg 0x10122f4b
cmp dword [ebx + 0x88], 0
jbe 0x10122f54
mov edx, ebx
mov ecx, ebp
call fcn.10048d00
mov ecx, ebx
call fcn.10046c60
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 0x10122fb1
test eax, eax
jne 0x10122fb1
xor esi, esi
jmp 0x10122fbc
mov edx, eax
mov ecx, ebp
call fcn.1001f000
mov esi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10122fcd
push eax
call dword [0x10166b50]
add esp, 4
test edi, edi
cmovne esi, edi
test esi, esi
jne 0x10122fe7
mov ecx, dword [esp + 0x1c]
call fcn.10121e70
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