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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov edx, dword [ebp]
xorps xmm0, xmm0
xor edi, edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], 0
xor esi, esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], edx
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x3c], ebp
call fcn.101330a0
mov ebx, eax
test ebx, ebx
jne 0x101337a7
lea edx, [edi + 1]
mov ecx, ebp
call fcn.10132bb0
mov ebx, eax
test ebx, ebx
jne 0x101337a7
lea edi, [ebp + 0x44]
mov dword [esp + 0x18], ebx
cmp dword [edi], ebx
jne 0x10133234
mov ebx, dword [ebp]
push dword [ebx + 0x28]
push dword [ebx + 0x38]
push str.SELECT__s_FROM__s_AS_T
call fcn.1002a830
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x101331b2
mov esi, dword [edi]
push esi
call fcn.10054fa0
add esp, 4
mov ebx, 7
jmp 0x101337a7
mov eax, dword [ebp]
mov edx, esi
push 0
push edi
push 0
inc dword [eax + 0x44]
mov ecx, dword [ebx]
push 0x85
push 0xffffffffffffffff
call fcn.1009fe60
mov ebx, eax
add esp, 0x14
mov eax, dword [ebp]
mov dword [esp + 0x18], ebx
dec dword [eax + 0x44]
cmp dword [0x10178a38], 0
je 0x1013322a
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x101331f8
push eax
call dword [0x10178a88]
add esp, 4
push esi
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push esi
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x10133234
push eax
call dword [0x10178a90]
jmp 0x10133231
push esi
call dword [0x10178a5c]
add esp, 4
mov esi, dword [edi]
push esi
call fcn.10054fa0
add esp, 4
test ebx, ebx
jne 0x101337a7
nop word [eax + eax]
xor ebx, ebx
test esi, esi
je 0x10133776
cmp dword [esi], ebx
jne 0x10133272
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.1002a9f0
add esp, 8
lea eax, [ebx + 1]
jmp 0x10133274
xor eax, eax
test eax, eax
jne 0x10133785
mov eax, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10133293
push eax
call dword [0x10178a88]
add esp, 4
mov ecx, esi
call fcn.10055c90
mov edi, eax
cmp edi, 0x11
jne 0x101332df
mov ecx, ebx
inc ebx
cmp ecx, 0x32
jge 0x101332df
mov edi, dword [esi + 0x20]
mov ecx, esi
call fcn.1009fff0
mov ebp, eax
test ebp, ebp
jne 0x10133369
push esi
call fcn.10054fa0
add esp, 4
test edi, edi
js 0x101332d1
mov byte [esi + 0x95], 0xfe
mov ecx, esi
call fcn.10055c90
mov edi, eax
cmp edi, 0x11
je 0x101332a1
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x101332f4
push eax
call dword [0x10178a90]
add esp, 4
cmp edi, 0x64
jne 0x101337a3
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10133310
push eax
call dword [0x10178a88]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x10133322
xor eax, eax
cmp ax, word [esi + 0x90]
jb 0x1013333a
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002b6b0
mov ecx, 0x10162818
call fcn.1004e6e0
mov ecx, dword [esi]
mov edi, edx
mov edx, dword [esi + 0x24]
mov ebx, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
cmp byte [ecx + 0x57], 0
jne 0x10133432
test edx, edx
jne 0x10133432
xor eax, eax
jmp 0x10133437
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x124]
test ecx, ecx
jne 0x1013337b
xor edi, edi
jmp 0x101333ae
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x10133398
cmp byte [ecx + 0x12], 1
jne 0x10133398
mov edi, dword [ecx + 8]
jmp 0x101333aa
test dl, 1
je 0x101333a1
xor edi, edi
jmp 0x101333aa
mov dl, 1
call fcn.1004f390
mov edi, eax
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x101333bc
mov ecx, eax
call fcn.10027de0
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x57], 0
jne 0x1013341e
test edi, edi
jne 0x101333ce
xor ebx, ebx
jmp 0x10133406
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101333d3
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x18]
push eax
mov dword [esp + 0x2c], eax
call fcn.10028280
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10133406
push dword [esp + 0x24]
push edi
push ebx
call fcn.1013c1a0
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, ebp
mov dword [esi + 0x7c], ebx
call fcn.10028630
mov edi, eax
mov dword [esi + 0x24], edi
jmp 0x101332df
mov edi, 7
mov dword [esi + 0x7c], 0
mov dword [esi + 0x24], edi
jmp 0x101332e3
call fcn.10028630
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1013344d
push eax
call dword [0x10178a90]
add esp, 4
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
push edi
push ebx
xor edx, edx
mov dword [esp + 0x3c], ebp
mov ecx, dword [ecx + 4]
call fcn.10128f70
mov edi, eax
xor ecx, ecx
add esp, 8
mov dword [esp + 0x18], edi
mov dword [esp + 0x40], ecx
test edi, edi
jne 0x10133743
nop word [eax + eax]
mov eax, dword [esp + 0x20]
cmp ecx, dword [eax + 0xc]
jge 0x1013373f
xor edx, edx
mov dword [esp + 0x44], edx
mov eax, dword [eax + 0x14]
cmp byte [ecx + eax], dl
jne 0x10133638
mov eax, dword [esi]
lea edi, [ecx + 1]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x101334b5
push eax
call dword [0x10178a88]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x101334d9
movzx eax, word [esi + 0x90]
cmp edi, eax
jge 0x101334d9
test edi, edi
js 0x101334d9
lea eax, [edi + edi*4]
lea ecx, [ecx + eax*8]
test ecx, ecx
jne 0x101334f1
xor ebx, ebx
jmp 0x10133520
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002b6b0
mov ecx, 0x10162818
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x1013350e
cmp byte [ecx + 0x12], 1
jne 0x1013350e
mov ebx, dword [ecx + 8]
jmp 0x10133520
test dl, 1
je 0x10133517
xor ebx, ebx
jmp 0x10133520
mov dl, 1
call fcn.1004f390
mov ebx, eax
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x10133533
test edx, edx
jne 0x10133533
xor eax, eax
jmp 0x10133538
call fcn.10028630
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1013354e
push eax
call dword [0x10178a90]
add esp, 4
mov eax, dword [esi]
mov edi, dword [esp + 0x40]
inc edi
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10133566
push eax
call dword [0x10178a88]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x10133584
movzx eax, word [esi + 0x90]
cmp edi, eax
jge 0x10133584
test edi, edi
js 0x10133584
lea eax, [edi + edi*4]
lea ecx, [ecx + eax*8]
jmp 0x1013359c
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002b6b0
mov ecx, 0x10162818
movzx eax, word [ecx + 0x10]
test al, 2
je 0x101335af
cmp byte [ecx + 0x12], 1
jne 0x101335af
mov edi, dword [ecx + 0xc]
jmp 0x101335d8
test al, 0x10
je 0x101335c7
mov edx, dword [ecx + 0xc]
test eax, 0x400
je 0x101335c3
mov edi, dword [ecx]
add edi, edx
jmp 0x101335d8
mov edi, edx
jmp 0x101335d8
test al, 1
je 0x101335cf
xor edi, edi
jmp 0x101335d8
mov dl, 1
call fcn.1004fae0
mov edi, eax
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x101335eb
test edx, edx
jne 0x101335eb
xor eax, eax
jmp 0x101335f0
call fcn.10028630
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10133606
push eax
call dword [0x10178a90]
add esp, 4
test ebx, ebx
jne 0x10133610
mov dword [esp + 0x18], ebx
jmp 0x10133634
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push 0x10131ed0
push edi
push ebx
mov eax, dword [edx + 0x40]
push 4
push ecx
push dword [edx + 0x3c]
mov eax, dword [eax + 8]
call eax
add esp, 0x18
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x38]
mov eax, edx
cdq
add ebp, 9
mov ecx, eax
mov ebx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ebx
cmp ebp, edi
jbe 0x101336ab
test edi, edi
mov eax, 0x40
cmovne eax, edi
cdq
mov ebx, edx
mov edi, eax
test ebx, ebx
ja 0x10133680
jb 0x10133670
cmp edi, ebp
jae 0x10133680
nop dword [eax + eax]
shld ebx, edi, 1
add edi, edi
test ebx, ebx
jb 0x10133670
ja 0x10133680
cmp edi, ebp
jb 0x10133670
call fcn.100d8ee0
test eax, eax
jne 0x101336cc
mov ecx, dword [esp + 0x30]
push ebx
push edi
call fcn.10027f60
add esp, 8
test eax, eax
je 0x101336cc
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
add edx, ebp
test ebx, ebx
ja 0x10133700
jb 0x101336c0
cmp ecx, 0x7f
ja 0x101336db
and cl, 0x7f
mov eax, 1
mov byte [edx], cl
jmp 0x1013370c
mov ebp, dword [esp + 0x34]
mov edi, 7
mov dword [esp + 0x18], edi
jmp 0x10133716
test ebx, ebx
ja 0x10133700
jb 0x101336e9
cmp ecx, 0x3fff
ja 0x10133700
mov eax, ecx
shrd eax, ebx, 7
or al, 0x80
and cl, 0x7f
mov byte [edx], al
mov eax, 2
mov byte [edx + 1], cl
jmp 0x1013370c
push ebx
push ecx
mov ecx, edx
call fcn.1002dde0
add esp, 8
mov edi, dword [esp + 0x18]
add ebp, eax
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x18]
mov eax, dword [esp + 0x40]
lea ecx, [ecx + eax*8]
mov eax, dword [esp + 0x44]
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
mov ecx, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x40], ecx
test edi, edi
je 0x10133480
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
add dword [ebp + 0x10], 1
adc dword [ebp + 0x14], 0
test edi, edi
jne 0x101337a3
push dword [esp + 0x2c]
lea edx, [esp + 0x34]
mov ecx, ebp
push ebx
call fcn.10132950
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x10133250
jmp 0x101337a7
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.1002a9f0
add esp, 8
push 0x10167d54
push 0x160fd
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.1002a9f0
add esp, 0x14
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x30]
test ebp, ebp
je 0x10133807
cmp dword [0x10178a38], 0
je 0x101337fd
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x101337cb
push eax
call dword [0x10178a88]
add esp, 4
push ebp
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push ebp
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x10133807
push eax
call dword [0x10178a90]
jmp 0x10133804
push ebp
call dword [0x10178a5c]
add esp, 4
test esi, esi
je 0x101338b8
mov edi, dword [esi]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10133822
push eax
call dword [0x10178a88]
add esp, 4
cmp dword [esi + 0x8c], 0
jl 0x1013383f
jg 0x10133836
cmp dword [esi + 0x88], 0
jbe 0x1013383f
mov edx, esi
mov ecx, edi
call fcn.10054e00
mov ecx, esi
call fcn.10052a30
mov byte [esi + 0x97], 1
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0
mov word [esi + 0x94], 0xff02
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x1c], 1
mov dword [esi + 0x30], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
cmp byte [edi + 0x57], 0
jne 0x1013389c
test eax, eax
jne 0x1013389c
xor esi, esi
jmp 0x101338a7
mov edx, eax
mov ecx, edi
call fcn.10028630
mov esi, eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x101338b8
push eax
call dword [0x10178a90]
add esp, 4
test ebx, ebx
jne 0x101338db
test esi, esi
jne 0x101338d1
mov ecx, dword [esp + 0x1c]
call fcn.10132cf0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, ebx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret