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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push edi
xor edi, edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x1013c733
mov eax, str.NULL
jmp 0x1013c755
mov eax, dword [ebx + 0x38]
cmp eax, 0xa029a697
je 0x1013c786
cmp eax, 0x4b771290
je 0x1013c750
cmp eax, 0xf03b7906
mov eax, str.invalid
jne 0x1013c755
mov eax, str.unopened
push eax
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.10144920
push 0x101d8574
push 0x150da
push str.misuse_at_line__d_of___.10s_
push 0x15
call fcn.10144920
add esp, 0x1c
mov eax, 0x15
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, 0x101cbcd4
test eax, eax
cmovne ecx, eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x1013c7a7
push eax
call dword [0x1022a530]
add esp, 4
push 0
push 0
push ebx
call fcn.10175070
add esp, 0xc
push esi
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
nop dword [eax + eax]
test edi, edi
je 0x1013c7df
xor esi, esi
cmp edi, 0x11
jne 0x1013cfa3
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, 2
jge 0x1013cfa3
xor esi, esi
cmp byte [ecx], 0
je 0x1013cfa3
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push esi
push 0xffffffffffffffff
push ecx
push dword [ebp + 8]
call fcn.10180360
mov ebx, dword [ebp - 4]
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x1013c7b8
test ebx, ebx
jne 0x1013c81d
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x10], ecx
jmp 0x1013c7c0
movzx edi, word [ebx + 0x30]
mov dword [ebp - 0x24], esi
xor esi, esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], esi
nop dword [eax]
mov dword [ebp - 0x14], 0
test ebx, ebx
jne 0x1013c842
mov eax, str.API_called_with_NULL_prepared_statement
jmp 0x1013c84c
cmp dword [ebx], 0
jne 0x1013c87a
mov eax, str.API_called_with_finalized_prepared_statement
push eax
push 0x15
call fcn.10144920
push 0x101d8574
push 0xed0c
push str.misuse_at_line__d_of___.10s_
push 0x15
call fcn.10144920
mov ebx, 0x15
add esp, 0x18
mov dword [ebp - 0xc], ebx
jmp 0x1013cab3
mov edi, dword [ebx]
mov dword [ebp - 0xc], edi
mov eax, dword [edi + 0x44]
test eax, eax
je 0x1013c890
push eax
call dword [0x1022a530]
add esp, 4
push ebx
call fcn.1018c390
mov esi, eax
add esp, 4
cmp esi, 0x11
jne 0x1013ca70
mov ecx, dword [ebp - 0x14]
mov eax, ecx
inc ecx
mov dword [ebp - 0x14], ecx
cmp eax, 5
jge 0x1013ca6d
cmp byte [ebx + 0x6a], 0
je 0x1013c8c4
mov eax, dword [ebx + 0xa0]
jmp 0x1013c8c6
xor eax, eax
mov edi, dword [ebx]
lea ecx, [ebp - 0x1c]
push 0
push ecx
push ebx
push 0
push 0xffffffffffffffff
push eax
push edi
call fcn.10180360
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x1013cb36
mov edx, dword [ebp - 0x1c]
lea edi, [ebp - 0xf4]
mov esi, edx
mov ecx, 0x30
rep movsd dword es:[edi], dword [esi]
mov edi, edx
mov ecx, 0x30
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x30
lea esi, [ebp - 0xf4]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 0x40]
mov eax, dword [ebx + 0x40]
mov dword [edx + 0x40], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 0x40], ecx
mov ecx, dword [edx + 0x3c]
mov dword [edx + 0x3c], eax
mov eax, dword [ebx + 0xa0]
mov dword [ebx + 0x3c], ecx
mov ecx, dword [edx + 0xa0]
mov dword [edx + 0xa0], eax
mov dword [ebx + 0xa0], ecx
mov al, byte [edx + 0x6a]
push ebx
push dword [ebp - 0x1c]
mov byte [ebx + 0x6a], al
call fcn.1018cb90
mov eax, dword [ebp - 0x1c]
add esp, 8
mov dword [eax + 0x5c], 0
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x34]
cmp eax, 0xbdf20da3
je 0x1013c973
cmp eax, 0x519c2973
jne 0x1013c97c
push esi
call fcn.1019c700
add esp, 4
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi]
mov eax, dword [esi + 0x40]
test ecx, ecx
je 0x1013c98d
mov dword [ecx + 0x40], eax
jmp 0x1013c993
mov dword [edx + 0x88], eax
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x1013c9a0
mov eax, dword [esi + 0x3c]
mov dword [ecx + 0x3c], eax
push esi
push edx
mov dword [esi + 0x34], 0xb606c3c8
mov dword [esi], 0
call fcn.10190bb0
mov eax, dword [ebx]
add esp, 8
mov eax, dword [eax + 0x44]
test eax, eax
je 0x1013c9ca
push eax
call dword [0x1022a530]
add esp, 4
push ebx
call fcn.1019c700
mov esi, dword [ebx]
add esp, 4
mov dword [ebx + 0x58], 0xffffffff
mov ecx, eax
mov dword [ebx + 0x5c], 0
mov eax, esi
mov byte [ebx + 0x60], 2
mov dword [ebx + 0x34], 0xbdf20da3
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x54], 1
mov byte [ebx + 0x66], 0xff
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
test esi, esi
je 0x1013ca44
cmp byte [esi + 0x1e], 0
jne 0x1013ca31
cmp ecx, 0xc0a
jne 0x1013ca44
push 0
push 7
push esi
call fcn.10175070
mov byte [esi + 0x1e], 0
add esp, 0xc
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x1013ca55
push eax
call dword [0x1022a538]
add esp, 4
push ebx
mov byte [ebx + 0x64], 0
call fcn.1018c390
mov esi, eax
add esp, 4
cmp esi, 0x11
je 0x1013c8a4
mov edi, dword [ebp - 0xc]
cmp byte [edi + 0x1e], 0
jne 0x1013ca7e
cmp esi, 0xc0a
jne 0x1013ca94
push 0
push 7
push edi
call fcn.10175070
add esp, 0xc
mov byte [edi + 0x1e], 0
mov esi, 7
mov ebx, dword [edi + 0x18]
mov eax, dword [edi + 0x44]
and ebx, esi
mov dword [ebp - 0xc], ebx
test eax, eax
je 0x1013caad
push eax
call dword [0x1022a538]
add esp, 4
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmp dword [ebp + 0x10], 0
je 0x1013ced0
cmp ebx, 0x64
je 0x1013cc0c
cmp ebx, 0x65
jne 0x1013cae1
cmp dword [ebp - 0x24], 0
jne 0x1013cae1
mov eax, dword [ebp + 8]
test dword [eax + 0xc], 0x2000
jne 0x1013cc12
push dword [ebp - 4]
call fcn.1019a0d0
mov edi, eax
mov dword [ebp - 4], 0
add esp, 4
cmp edi, 0x11
je 0x1013cee1
mov ecx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], ecx
movzx eax, byte [ecx]
test byte [eax + 0x101d2048], 1
je 0x1013cee4
nop dword [eax]
movzx eax, byte [ecx + 1]
inc ecx
test byte [eax + 0x101d2048], 1
jne 0x1013cb20
mov dword [ebp - 0x10], ecx
jmp 0x1013cee4
cmp esi, 7
jne 0x1013cb3f
mov byte [edi + 0x1e], 1
cmp byte [ebx + 0x6a], 0
mov edi, dword [ebp - 0xc]
je 0x1013ca70
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x1013ca70
push 1
push eax
call fcn.10190130
mov edx, dword [edi + 0x1f8]
add esp, 8
mov ecx, dword [ebx + 0x38]
mov dword [ebp - 0x14], eax
test edx, edx
je 0x1013cba8
test ecx, ecx
je 0x1013cb94
cmp ecx, dword [edi + 0x104]
jb 0x1013cb94
cmp ecx, dword [edi + 0x108]
jae 0x1013cb94
movzx eax, word [edi + 0xe8]
add dword [edx], eax
jmp 0x1013cbdb
push ecx
call dword [0x1022a50c]
mov edx, dword [edi + 0x1f8]
add esp, 4
add dword [edx], eax
jmp 0x1013cbdb
test ecx, ecx
je 0x1013cbd2
cmp ecx, dword [edi + 0x104]
jb 0x1013cbd2
cmp ecx, dword [edi + 0x108]
jae 0x1013cbd2
mov eax, dword [edi + 0x100]
mov dword [ecx], eax
dec dword [edi + 0xec]
mov dword [edi + 0x100], ecx
jmp 0x1013cbdb
push ecx
call fcn.1013e5e0
add esp, 4
cmp byte [edi + 0x1e], 0
jne 0x1013cbf8
push dword [ebp - 0x14]
push edi
call fcn.101733e0
add esp, 8
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x5c], esi
jmp 0x1013ca70
mov esi, 7
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x5c], esi
jmp 0x1013ca70
cmp dword [ebp - 0x24], 0
jne 0x1013cc6e
lea eax, [edi*8 + 1]
push eax
push dword [ebp + 8]
call fcn.101730c0
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je 0x1013cf6a
xor esi, esi
test edi, edi
je 0x1013cc5e
mov ebx, eax
nop word [eax + eax]
push 0
push 0x10141070
push esi
push dword [ebp - 4]
call fcn.101503b0
mov dword [ebx + esi*4], eax
add esp, 0x10
inc esi
cmp esi, edi
jl 0x1013cc40
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x24], 1
cmp ebx, 0x64
jne 0x1013ceb7
mov eax, dword [ebp - 0x18]
lea esi, [eax + edi*4]
mov dword [ebp - 0x2c], esi
xor esi, esi
mov dword [ebp - 0x20], esi
test edi, edi
je 0x1013ceb7
mov ebx, dword [ebp - 4]
xor edi, edi
mov dword [ebp - 0x14], edi
nop dword [eax]
test ebx, ebx
je 0x1013ccf1
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x1013cccb
movzx eax, word [ebx + 0x30]
cmp esi, eax
jge 0x1013cccb
test esi, esi
js 0x1013cccb
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x1013ccbd
push eax
call dword [0x1022a530]
mov ecx, dword [ebx + 0x14]
add esp, 4
lea esi, [edi + ecx]
test esi, esi
jne 0x1013ccf6
xor edi, edi
jmp 0x1013cd61
mov eax, dword [ebx]
test eax, eax
je 0x1013ccf1
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x1013cce4
push ecx
call dword [0x1022a530]
mov eax, dword [ebx]
add esp, 4
push 0
push 0x19
push eax
call fcn.10175070
add esp, 0xc
mov esi, 0x101d11d8
movzx ecx, word [esi + 0x1c]
test cl, 1
jne 0x1013cd5b
mov eax, ecx
shr eax, 3
and eax, 2
or eax, ecx
mov word [esi + 0x1c], ax
movzx ecx, ax
test eax, 0x4000
je 0x1013cd24
push esi
call fcn.1019ae60
movzx ecx, word [esi + 0x1c]
add esp, 4
test cl, 2
je 0x1013cd45
cmp byte [esi + 0x1f], 1
je 0x1013cd3a
push 1
push esi
call fcn.1019bad0
add esp, 8
push esi
call fcn.1019b3a0
add esp, 4
jmp 0x1013cd50
push 1
push esi
call fcn.1019ba30
add esp, 8
cmp byte [esi + 0x1f], 1
jne 0x1013cd5b
mov edi, dword [esi + 4]
jmp 0x1013cd5d
xor edi, edi
test ebx, ebx
je 0x1013cdb2
mov esi, dword [ebx]
mov ecx, esi
mov edx, dword [ebx + 0x5c]
test esi, esi
je 0x1013cd97
cmp byte [esi + 0x1e], 0
jne 0x1013cd7a
cmp edx, 0xc0a
jne 0x1013cd92
push 0
push 7
push esi
call fcn.10175070
mov byte [esi + 0x1e], 0
add esp, 0xc
mov ecx, dword [ebx]
mov edx, 7
mov eax, dword [esi + 0x18]
jmp 0x1013cd9c
mov eax, 0xff
and eax, edx
mov dword [ebx + 0x5c], eax
mov eax, dword [ecx + 0x44]
test eax, eax
je 0x1013cdb2
push eax
call dword [0x1022a538]
add esp, 4
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov dword [eax + esi*4], edi
mov ebx, dword [ebp - 4]
test edi, edi
jne 0x1013ce9b
mov edi, ebx
test edi, edi
je 0x1013ce2a
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x1013ce01
movzx eax, word [ebx + 0x30]
cmp esi, eax
jge 0x1013ce01
test esi, esi
js 0x1013ce01
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x1013cdf5
push eax
call dword [0x1022a530]
mov ecx, dword [ebx + 0x14]
add esp, 4
mov eax, dword [ebp - 0x14]
mov al, byte [eax + ecx + 0x1e]
mov byte [ebp - 5], al
jmp 0x1013ce39
mov eax, dword [ebx]
test eax, eax
je 0x1013ce2a
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x1013ce1a
push ecx
call dword [0x1022a530]
mov eax, dword [edi]
add esp, 4
push 0
push 0x19
push eax
call fcn.10175070
mov ebx, dword [ebp - 4]
add esp, 0xc
mov eax, 0x101d11d8
mov al, byte [eax + 0x1e]
mov byte [ebp - 5], al
test edi, edi
je 0x1013ce93
mov esi, dword [edi]
mov ecx, esi
mov edx, dword [edi + 0x5c]
test esi, esi
je 0x1013ce6f
cmp byte [esi + 0x1e], 0
jne 0x1013ce52
cmp edx, 0xc0a
jne 0x1013ce6a
push 0
push 7
push esi
call fcn.10175070
mov byte [esi + 0x1e], 0
add esp, 0xc
mov ecx, dword [edi]
mov edx, 7
mov eax, dword [esi + 0x18]
jmp 0x1013ce74
mov eax, 0xff
and eax, edx
mov dword [edi + 0x5c], eax
mov eax, dword [ecx + 0x44]
test eax, eax
je 0x1013ce8a
push eax
call dword [0x1022a538]
add esp, 4
mov al, byte [ebp - 5]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 4]
cmp al, 5
jne 0x1013cf6f
mov edi, dword [ebp - 0x14]
inc esi
add edi, 0x28
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], edi
cmp esi, dword [ebp - 0x28]
jl 0x1013cc90
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
push esi
push dword [ebp - 0x2c]
push edi
push dword [ebp + 0x14]
call dword [ebp + 0x10]
add esp, 0x10
test eax, eax
jne 0x1013cf7e
cmp ebx, 0x64
jne 0x1013cae1
mov ebx, dword [ebp - 4]
jmp 0x1013c830
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x1f8]
test eax, eax
je 0x1013cf2c
test esi, esi
je 0x1013cf13
cmp esi, dword [ebx + 0x104]
jb 0x1013cf13
cmp esi, dword [ebx + 0x108]
jae 0x1013cf13
movzx ecx, word [ebx + 0xe8]
add dword [eax], ecx
jmp 0x1013c7b5
push esi
call dword [0x1022a50c]
mov ecx, eax
add esp, 4
mov eax, dword [ebx + 0x1f8]
add dword [eax], ecx
jmp 0x1013c7b5
test esi, esi
je 0x1013cf5c
cmp esi, dword [ebx + 0x104]
jb 0x1013cf5c
cmp esi, dword [ebx + 0x108]
jae 0x1013cf5c
mov eax, dword [ebx + 0x100]
mov dword [esi], eax
dec dword [ebx + 0xec]
mov dword [ebx + 0x100], esi
mov ebx, dword [ebp - 4]
jmp 0x1013c7c0
push esi
call fcn.1013e5e0
add esp, 4
jmp 0x1013c7b5
mov edi, dword [ebp - 0xc]
jmp 0x1013cfa0
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
mov byte [eax + 0x1e], 1
jmp 0x1013cfa3
push dword [ebp - 4]
mov edi, 4
call fcn.1019a0d0
push 0
push edi
push dword [ebp + 8]
mov dword [ebp - 4], 0
call fcn.10175070
add esp, 0x10
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1013cffc
mov eax, dword [ebx + 0x34]
cmp eax, 0xbdf20da3
je 0x1013cfb8
cmp eax, 0x519c2973
jne 0x1013cfc1
push ebx
call fcn.1019c700
add esp, 4
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx]
mov eax, dword [ebx + 0x40]
test ecx, ecx
je 0x1013cfd2
mov dword [ecx + 0x40], eax
jmp 0x1013cfd8
mov dword [edx + 0x88], eax
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x1013cfe5
mov eax, dword [ebx + 0x3c]
mov dword [ecx + 0x3c], eax
push ebx
push edx
mov dword [ebx + 0x34], 0xb606c3c8
mov dword [ebx], 0
call fcn.10190bb0
add esp, 8
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x1f8]
test eax, eax
je 0x1013d03e
test esi, esi
je 0x1013d028
cmp esi, dword [ebx + 0x104]
jb 0x1013d028
cmp esi, dword [ebx + 0x108]
jae 0x1013d028
movzx ecx, word [ebx + 0xe8]
add dword [eax], ecx
jmp 0x1013d071
push esi
call dword [0x1022a50c]
mov ecx, eax
add esp, 4
mov eax, dword [ebx + 0x1f8]
add dword [eax], ecx
jmp 0x1013d071
test esi, esi
je 0x1013d068
cmp esi, dword [ebx + 0x104]
jb 0x1013d068
cmp esi, dword [ebx + 0x108]
jae 0x1013d068
mov eax, dword [ebx + 0x100]
mov dword [esi], eax
dec dword [ebx + 0xec]
mov dword [ebx + 0x100], esi
jmp 0x1013d071
push esi
call fcn.1013e5e0
add esp, 4
mov cl, byte [ebx + 0x1e]
test cl, cl
jne 0x1013d080
cmp edi, 0xc0a
jne 0x1013d098
push 0
push 7
push ebx
call fcn.10175070
add esp, 0xc
mov byte [ebx + 0x1e], 0
mov edi, 7
xor cl, cl
mov edx, dword [ebx + 0x18]
mov esi, edx
and esi, edi
je 0x1013d170
mov eax, dword [ebx + 0x38]
cmp eax, 0x4b771290
je 0x1013d0ee
cmp eax, 0xa029a697
je 0x1013d0ee
cmp eax, 0xf03b7906
je 0x1013d0ee
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.10144920
push 0x101d8574
push 0x1a8a7
push str.misuse_at_line__d_of___.10s_
push 0x15
call fcn.10144920
add esp, 0x1c
mov eax, 0x15
jmp 0x1013d0fe
test cl, cl
jne 0x1013d0f9
mov eax, dword [ebx + 0x14]
and eax, edx
jmp 0x1013d0fe
mov eax, 7
cmp esi, eax
jne 0x1013d170
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x1013d17d
push ebx
call fcn.1013f140
add esp, 4
mov ecx, eax
test eax, eax
je 0x1013d12e
cmp byte [eax], 0
je 0x1013d126
nop dword [eax]
inc ecx
cmp byte [ecx], 0
jne 0x1013d120
sub ecx, eax
and ecx, 0x3fffffff
lea ebx, [ecx + 1]
push ebx
call fcn.101805a0
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x1013d15a
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.1013f140
add esp, 4
push eax
push dword [edi]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x1013d17d
mov ebx, dword [ebp + 8]
mov esi, 7
push 0
push esi
push ebx
call fcn.10175070
add esp, 0xc
jmp 0x1013d17d
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1013d17d
mov dword [eax], 0
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x1013d18e
push eax
call dword [0x1022a538]
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret