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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov eax, ecx
mov dword [esp + 0x18], edx
push esi
push edi
xor esi, esi
mov dword [esp + 0x14], eax
mov ecx, dword [eax]
xor edi, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], esi
test edx, edx
jne 0x1013227d
lea ecx, [esp + 0x1c]
push edi
push ecx
lea edx, [esi + 2]
mov ecx, eax
call fcn.10131750
mov edi, eax
add esp, 8
test edi, edi
jne 0x1013262d
push dword [ebp + 0xc]
mov esi, dword [esp + 0x20]
push dword [ebp + 8]
push 1
push esi
call fcn.10057670
add esp, 0x10
mov dword [esp + 0x1c], edi
test esi, esi
jne 0x10132017
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.1002a9f0
add esp, 8
jmp 0x10132038
cmp dword [esi], 0
jne 0x10132032
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.1002a9f0
add esp, 8
mov eax, 1
jmp 0x10132034
xor eax, eax
test eax, eax
je 0x1013205b
push 0x10167d54
push 0x160fd
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.1002a9f0
add esp, 0x14
jmp 0x101320e2
mov eax, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10132072
push eax
call dword [0x10178a88]
add esp, 4
mov ecx, esi
call fcn.10055c90
mov ebx, eax
cmp ebx, 0x11
jne 0x101320c4
mov eax, dword [esp + 0x1c]
mov ecx, eax
inc eax
mov dword [esp + 0x1c], eax
cmp ecx, 0x32
jge 0x101320c4
mov ebx, dword [esi + 0x20]
mov ecx, esi
call fcn.1009fff0
mov dword [esp + 0x28], eax
test eax, eax
jne 0x101320f3
push esi
call fcn.10054fa0
add esp, 4
test ebx, ebx
js 0x101320b6
mov byte [esi + 0x95], 0xfe
mov ecx, esi
call fcn.10055c90
mov ebx, eax
cmp ebx, 0x11
je 0x10132080
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x101320d9
push eax
call dword [0x10178a90]
add esp, 4
cmp ebx, 0x64
je 0x10132279
test esi, esi
jne 0x101321c7
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x124]
test ecx, ecx
jne 0x10132105
xor ebx, ebx
jmp 0x10132138
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x10132122
cmp byte [ecx + 0x12], 1
jne 0x10132122
mov ebx, dword [ecx + 8]
jmp 0x10132134
test dl, 1
je 0x1013212b
xor ebx, ebx
jmp 0x10132134
mov dl, 1
call fcn.1004f390
mov ebx, eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x10132146
mov ecx, eax
call fcn.10027de0
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x57], 0
jne 0x101321b3
test ebx, ebx
jne 0x10132158
xor eax, eax
jmp 0x10132199
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10132160
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], eax
call fcn.10028280
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x10132199
push dword [esp + 0x1c]
push ebx
push eax
call fcn.1013c1a0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x7c], eax
call fcn.10028630
mov ebx, eax
mov dword [esi + 0x24], ebx
jmp 0x101320c4
mov ebx, 7
mov dword [esi + 0x7c], 0
mov dword [esi + 0x24], ebx
jmp 0x101320c8
mov edi, dword [esi]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x101321da
push eax
call dword [0x10178a88]
add esp, 4
cmp dword [esi + 0x8c], 0
jl 0x101321f7
jg 0x101321ee
cmp dword [esi + 0x88], 0
jbe 0x101321f7
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 0x10132254
test eax, eax
jne 0x10132254
xor esi, esi
jmp 0x1013225f
mov edx, eax
mov ecx, edi
call fcn.10028630
mov esi, eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10132270
push eax
call dword [0x10178a90]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, 1
mov ebx, 0x28
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x24]
cmp edx, dword [eax + 0xc]
jg 0x10132561
mov eax, dword [eax + 0x14]
cmp byte [eax + edx - 1], 0
jne 0x1013251e
test esi, esi
je 0x1013242e
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x101322dd
push eax
call dword [0x10178a88]
mov edx, dword [esp + 0x14]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x101322fb
movzx eax, word [esi + 0x90]
cmp edx, eax
jge 0x101322fb
test edx, edx
js 0x101322fb
add ecx, ebx
jne 0x10132313
xor ebx, ebx
jmp 0x10132342
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 0x10132330
cmp byte [ecx + 0x12], 1
jne 0x10132330
mov ebx, dword [ecx + 8]
jmp 0x10132342
test dl, 1
je 0x10132339
xor ebx, ebx
jmp 0x10132342
mov dl, 1
call fcn.1004f390
mov ebx, eax
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x10132355
test edx, edx
jne 0x10132355
xor eax, eax
jmp 0x1013235a
call fcn.10028630
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10132370
push eax
call dword [0x10178a90]
add esp, 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10132383
push eax
call dword [0x10178a88]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x101323a3
movzx eax, word [esi + 0x90]
mov edx, dword [esp + 0x10]
cmp edx, eax
jge 0x101323a3
test edx, edx
js 0x101323a3
add ecx, dword [esp + 0x1c]
jmp 0x101323bb
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 0x101323ce
cmp byte [ecx + 0x12], 1
jne 0x101323ce
mov edi, dword [ecx + 0xc]
jmp 0x101323f7
test al, 0x10
je 0x101323e6
mov edx, dword [ecx + 0xc]
test eax, 0x400
je 0x101323e2
mov edi, dword [ecx]
add edi, edx
jmp 0x101323f7
mov edi, edx
jmp 0x101323f7
test al, 1
je 0x101323ee
xor edi, edi
jmp 0x101323f7
mov dl, 1
call fcn.1004fae0
mov edi, eax
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x1013240a
test edx, edx
jne 0x1013240a
xor eax, eax
jmp 0x1013240f
call fcn.10028630
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x101324b4
push eax
call dword [0x10178a90]
add esp, 4
jmp 0x101324b4
cmp dword [esp + 0x20], 0
je 0x1013251e
mov ecx, dword [ecx]
test ecx, ecx
jne 0x10132443
xor ebx, ebx
jmp 0x10132472
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x10132460
cmp byte [ecx + 0x12], 1
jne 0x10132460
mov ebx, dword [ecx + 8]
jmp 0x10132472
test dl, 1
je 0x10132469
xor ebx, ebx
jmp 0x10132472
mov dl, 1
call fcn.1004f390
mov ebx, eax
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
movzx eax, word [ecx + 0x10]
test al, 2
je 0x1013248b
cmp byte [ecx + 0x12], 1
jne 0x1013248b
mov edi, dword [ecx + 0xc]
jmp 0x101324b4
test al, 0x10
je 0x101324a3
mov edx, dword [ecx + 0xc]
test eax, 0x400
je 0x1013249f
mov edi, dword [ecx]
add edi, edx
jmp 0x101324b4
mov edi, edx
jmp 0x101324b4
test al, 1
je 0x101324ab
xor edi, edi
jmp 0x101324b4
mov dl, 1
call fcn.1004fae0
mov edi, eax
xor eax, eax
mov dword [esp + 0x34], eax
test ebx, ebx
jne 0x101324c2
xor edi, edi
jmp 0x101324e8
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push 0x10131ed0
push edi
push ebx
mov eax, dword [ecx + 0x40]
push 4
push edx
push dword [ecx + 0x3c]
mov eax, dword [eax + 8]
call eax
mov edi, eax
add esp, 0x18
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
cdq
lea ebx, [ecx*8]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x18]
sub dword [ebx + ecx - 8], eax
mov eax, dword [esp + 0x14]
sbb dword [ebx + ecx - 4], edx
mov eax, dword [eax + 0x18]
cmp dword [ebx + eax - 4], 0
jl 0x1013253e
jg 0x1013251a
cmp dword [ebx + eax - 8], 0
jb 0x1013253e
mov edx, dword [esp + 0x10]
add dword [esp + 0x1c], 0x28
inc edx
add dword [esp + 0x18], 4
mov dword [esp + 0x10], edx
test edi, edi
jne 0x10132543
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
jmp 0x101322a3
mov edi, 0x10b
mov eax, dword [esp + 0x14]
add dword [eax + 0x10], 0xffffffff
adc dword [eax + 0x14], 0xffffffff
test esi, esi
jne 0x1013257d
test edi, edi
cmove edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x10132543
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x14], edi
jg 0x10132547
jl 0x10132576
cmp dword [eax + 0x10], 1
jae 0x10132547
mov edi, 0x10b
jmp 0x1013254f
mov ebx, dword [esi]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10132590
push eax
call dword [0x10178a88]
add esp, 4
cmp dword [esi + 0x8c], 0
jl 0x101325ad
jg 0x101325a4
cmp dword [esi + 0x88], 0
jbe 0x101325ad
mov edx, esi
mov ecx, ebx
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 [ebx + 0x57], 0
jne 0x1013260a
test eax, eax
jne 0x1013260a
xor esi, esi
jmp 0x10132615
mov edx, eax
mov ecx, ebx
call fcn.10028630
mov esi, eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10132626
push eax
call dword [0x10178a90]
add esp, 4
test edi, edi
cmove edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret