Function at 0x1003fe10
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 0x1003fe33
mov eax, str.NULL
jmp 0x1003fe55
mov eax, dword [ebx + 0x38]
cmp eax, 0xa029a697
je 0x1003fe86
cmp eax, 0x4b771290
je 0x1003fe50
cmp eax, 0xf03b7906
mov eax, str.invalid
jne 0x1003fe55
mov eax, str.unopened
push eax
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.10048080
push 0x100c2c6c
push 0x150da
push str.misuse_at_line__d_of___.10s_
push 0x15
call fcn.10048080
add esp, 0x1c
mov eax, 0x15
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, 0x100b4344
test eax, eax
cmovne ecx, eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x1003fea7
push eax
call dword [0x100ec520]
add esp, 4
push 0
push 0
push ebx
call fcn.100786a0
add esp, 0xc
push esi
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
nop dword [eax + eax]
test edi, edi
je 0x1003fedf
xor esi, esi
cmp edi, 0x11
jne 0x1004069b
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, 2
jge 0x1004069b
xor esi, esi
cmp byte [ecx], 0
je 0x1004069b
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.10083990
mov ebx, dword [ebp - 4]
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x1003feb8
test ebx, ebx
jne 0x1003ff1d
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x10], ecx
jmp 0x1003fec0
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 0x1003ff42
mov eax, str.API_called_with_NULL_prepared_statement
jmp 0x1003ff4c
cmp dword [ebx], 0
jne 0x1003ff7a
mov eax, str.API_called_with_finalized_prepared_statement
push eax
push 0x15
call fcn.10048080
push 0x100c2c6c
push 0xed0c
push str.misuse_at_line__d_of___.10s_
push 0x15
call fcn.10048080
mov ebx, 0x15
add esp, 0x18
mov dword [ebp - 0xc], ebx
jmp 0x100401b3
mov edi, dword [ebx]
mov dword [ebp - 0xc], edi
mov eax, dword [edi + 0x44]
test eax, eax
je 0x1003ff90
push eax
call dword [0x100ec520]
add esp, 4
push ebx
call fcn.1008fa00
mov esi, eax
add esp, 4
cmp esi, 0x11
jne 0x10040170
mov ecx, dword [ebp - 0x14]
mov eax, ecx
inc ecx
mov dword [ebp - 0x14], ecx
cmp eax, 5
jge 0x1004016d
cmp byte [ebx + 0x6a], 0
je 0x1003ffc4
mov eax, dword [ebx + 0xa0]
jmp 0x1003ffc6
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.10083990
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x10040236
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.10090200
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 0x10040073
cmp eax, 0x519c2973
jne 0x1004007c
push esi
call fcn.1009fd90
add esp, 4
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi]
mov eax, dword [esi + 0x40]
test ecx, ecx
je 0x1004008d
mov dword [ecx + 0x40], eax
jmp 0x10040093
mov dword [edx + 0x88], eax
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x100400a0
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.10094220
mov eax, dword [ebx]
add esp, 8
mov eax, dword [eax + 0x44]
test eax, eax
je 0x100400ca
push eax
call dword [0x100ec520]
add esp, 4
push ebx
call fcn.1009fd90
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 0x10040144
cmp byte [esi + 0x1e], 0
jne 0x10040131
cmp ecx, 0xc0a
jne 0x10040144
push 0
push 7
push esi
call fcn.100786a0
mov byte [esi + 0x1e], 0
add esp, 0xc
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x10040155
push eax
call dword [0x100ec528]
add esp, 4
push ebx
mov byte [ebx + 0x64], 0
call fcn.1008fa00
mov esi, eax
add esp, 4
cmp esi, 0x11
je 0x1003ffa4
mov edi, dword [ebp - 0xc]
cmp byte [edi + 0x1e], 0
jne 0x1004017e
cmp esi, 0xc0a
jne 0x10040194
push 0
push 7
push edi
call fcn.100786a0
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 0x100401ad
push eax
call dword [0x100ec528]
add esp, 4
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmp dword [ebp + 0x10], 0
je 0x100405c8
cmp ebx, 0x64
je 0x1004030c
cmp ebx, 0x65
jne 0x100401e1
cmp dword [ebp - 0x24], 0
jne 0x100401e1
mov eax, dword [ebp + 8]
test dword [eax + 0xc], 0x2000
jne 0x10040312
push dword [ebp - 4]
call fcn.1009d750
mov edi, eax
mov dword [ebp - 4], 0
add esp, 4
cmp edi, 0x11
je 0x100405d9
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 + 0x100bc708], 1
je 0x100405dc
nop dword [eax]
movzx eax, byte [ecx + 1]
inc ecx
test byte [eax + 0x100bc708], 1
jne 0x10040220
mov dword [ebp - 0x10], ecx
jmp 0x100405dc
cmp esi, 7
jne 0x1004023f
mov byte [edi + 0x1e], 1
cmp byte [ebx + 0x6a], 0
mov edi, dword [ebp - 0xc]
je 0x10040170
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x10040170
push 1
push eax
call fcn.100937a0
mov edx, dword [edi + 0x1f8]
add esp, 8
mov ecx, dword [ebx + 0x38]
mov dword [ebp - 0x14], eax
test edx, edx
je 0x100402a8
test ecx, ecx
je 0x10040294
cmp ecx, dword [edi + 0x104]
jb 0x10040294
cmp ecx, dword [edi + 0x108]
jae 0x10040294
movzx eax, word [edi + 0xe8]
add dword [edx], eax
jmp 0x100402db
push ecx
call dword [0x100ec4fc]
mov edx, dword [edi + 0x1f8]
add esp, 4
add dword [edx], eax
jmp 0x100402db
test ecx, ecx
je 0x100402d2
cmp ecx, dword [edi + 0x104]
jb 0x100402d2
cmp ecx, dword [edi + 0x108]
jae 0x100402d2
mov eax, dword [edi + 0x100]
mov dword [ecx], eax
dec dword [edi + 0xec]
mov dword [edi + 0x100], ecx
jmp 0x100402db
push ecx
call fcn.10041cd0
add esp, 4
cmp byte [edi + 0x1e], 0
jne 0x100402f8
push dword [ebp - 0x14]
push edi
call fcn.10076a10
add esp, 8
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x5c], esi
jmp 0x10040170
mov esi, 7
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x5c], esi
jmp 0x10040170
cmp dword [ebp - 0x24], 0
jne 0x1004036e
lea eax, [edi*8 + 1]
push eax
push dword [ebp + 8]
call fcn.100766f0
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je 0x10040662
xor esi, esi
test edi, edi
je 0x1004035e
mov ebx, eax
nop word [eax + eax]
push 0
push 0x10044780
push esi
push dword [ebp - 4]
call fcn.10053b50
mov dword [ebx + esi*4], eax
add esp, 0x10
inc esi
cmp esi, edi
jl 0x10040340
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x24], 1
cmp ebx, 0x64
jne 0x100405af
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 0x100405af
mov ebx, dword [ebp - 4]
xor edi, edi
mov dword [ebp - 0x14], edi
nop dword [eax]
test ebx, ebx
je 0x100403ed
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x100403c7
movzx eax, word [ebx + 0x30]
cmp esi, eax
jae 0x100403c7
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x100403b9
push eax
call dword [0x100ec520]
mov ecx, dword [ebx + 0x14]
add esp, 4
lea esi, [edi + ecx]
test esi, esi
jne 0x100403f2
xor edi, edi
jmp 0x1004045d
mov eax, dword [ebx]
test eax, eax
je 0x100403ed
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x100403e0
push ecx
call dword [0x100ec520]
mov eax, dword [ebx]
add esp, 4
push 0
push 0x19
push eax
call fcn.100786a0
add esp, 0xc
mov esi, 0x100bb898
movzx ecx, word [esi + 0x1c]
test cl, 1
jne 0x10040457
mov eax, ecx
shr eax, 3
and eax, 2
or eax, ecx
mov word [esi + 0x1c], ax
movzx ecx, ax
test eax, 0x4000
je 0x10040420
push esi
call fcn.1009e4e0
movzx ecx, word [esi + 0x1c]
add esp, 4
test cl, 2
je 0x10040441
cmp byte [esi + 0x1f], 1
je 0x10040436
push 1
push esi
call fcn.1009f150
add esp, 8
push esi
call fcn.1009ea20
add esp, 4
jmp 0x1004044c
push 1
push esi
call fcn.1009f0b0
add esp, 8
cmp byte [esi + 0x1f], 1
jne 0x10040457
mov edi, dword [esi + 4]
jmp 0x10040459
xor edi, edi
test ebx, ebx
je 0x100404ae
mov esi, dword [ebx]
mov ecx, esi
mov edx, dword [ebx + 0x5c]
test esi, esi
je 0x10040493
cmp byte [esi + 0x1e], 0
jne 0x10040476
cmp edx, 0xc0a
jne 0x1004048e
push 0
push 7
push esi
call fcn.100786a0
mov byte [esi + 0x1e], 0
add esp, 0xc
mov ecx, dword [ebx]
mov edx, 7
mov eax, dword [esi + 0x18]
jmp 0x10040498
mov eax, 0xff
and eax, edx
mov dword [ebx + 0x5c], eax
mov eax, dword [ecx + 0x44]
test eax, eax
je 0x100404ae
push eax
call dword [0x100ec528]
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 0x10040593
mov edi, ebx
test edi, edi
je 0x10040522
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x100404f9
movzx eax, word [ebx + 0x30]
cmp esi, eax
jae 0x100404f9
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x100404ed
push eax
call dword [0x100ec520]
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 0x10040531
mov eax, dword [ebx]
test eax, eax
je 0x10040522
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x10040512
push ecx
call dword [0x100ec520]
mov eax, dword [edi]
add esp, 4
push 0
push 0x19
push eax
call fcn.100786a0
mov ebx, dword [ebp - 4]
add esp, 0xc
mov eax, 0x100bb898
mov al, byte [eax + 0x1e]
mov byte [ebp - 5], al
test edi, edi
je 0x1004058b
mov esi, dword [edi]
mov ecx, esi
mov edx, dword [edi + 0x5c]
test esi, esi
je 0x10040567
cmp byte [esi + 0x1e], 0
jne 0x1004054a
cmp edx, 0xc0a
jne 0x10040562
push 0
push 7
push esi
call fcn.100786a0
mov byte [esi + 0x1e], 0
add esp, 0xc
mov ecx, dword [edi]
mov edx, 7
mov eax, dword [esi + 0x18]
jmp 0x1004056c
mov eax, 0xff
and eax, edx
mov dword [edi + 0x5c], eax
mov eax, dword [ecx + 0x44]
test eax, eax
je 0x10040582
push eax
call dword [0x100ec528]
add esp, 4
mov al, byte [ebp - 5]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 4]
cmp al, 5
jne 0x10040667
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 0x10040390
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 0x10040676
cmp ebx, 0x64
jne 0x100401e1
mov ebx, dword [ebp - 4]
jmp 0x1003ff30
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x1f8]
test eax, eax
je 0x10040624
test esi, esi
je 0x1004060b
cmp esi, dword [ebx + 0x104]
jb 0x1004060b
cmp esi, dword [ebx + 0x108]
jae 0x1004060b
movzx ecx, word [ebx + 0xe8]
add dword [eax], ecx
jmp 0x1003feb5
push esi
call dword [0x100ec4fc]
mov ecx, eax
add esp, 4
mov eax, dword [ebx + 0x1f8]
add dword [eax], ecx
jmp 0x1003feb5
test esi, esi
je 0x10040654
cmp esi, dword [ebx + 0x104]
jb 0x10040654
cmp esi, dword [ebx + 0x108]
jae 0x10040654
mov eax, dword [ebx + 0x100]
mov dword [esi], eax
dec dword [ebx + 0xec]
mov dword [ebx + 0x100], esi
mov ebx, dword [ebp - 4]
jmp 0x1003fec0
push esi
call fcn.10041cd0
add esp, 4
jmp 0x1003feb5
mov edi, dword [ebp - 0xc]
jmp 0x10040698
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
mov byte [eax + 0x1e], 1
jmp 0x1004069b
push dword [ebp - 4]
mov edi, 4
call fcn.1009d750
push 0
push edi
push dword [ebp + 8]
mov dword [ebp - 4], 0
call fcn.100786a0
add esp, 0x10
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100406f4
mov eax, dword [ebx + 0x34]
cmp eax, 0xbdf20da3
je 0x100406b0
cmp eax, 0x519c2973
jne 0x100406b9
push ebx
call fcn.1009fd90
add esp, 4
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx]
mov eax, dword [ebx + 0x40]
test ecx, ecx
je 0x100406ca
mov dword [ecx + 0x40], eax
jmp 0x100406d0
mov dword [edx + 0x88], eax
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x100406dd
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.10094220
add esp, 8
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x1f8]
test eax, eax
je 0x10040736
test esi, esi
je 0x10040720
cmp esi, dword [ebx + 0x104]
jb 0x10040720
cmp esi, dword [ebx + 0x108]
jae 0x10040720
movzx ecx, word [ebx + 0xe8]
add dword [eax], ecx
jmp 0x10040769
push esi
call dword [0x100ec4fc]
mov ecx, eax
add esp, 4
mov eax, dword [ebx + 0x1f8]
add dword [eax], ecx
jmp 0x10040769
test esi, esi
je 0x10040760
cmp esi, dword [ebx + 0x104]
jb 0x10040760
cmp esi, dword [ebx + 0x108]
jae 0x10040760
mov eax, dword [ebx + 0x100]
mov dword [esi], eax
dec dword [ebx + 0xec]
mov dword [ebx + 0x100], esi
jmp 0x10040769
push esi
call fcn.10041cd0
add esp, 4
mov cl, byte [ebx + 0x1e]
test cl, cl
jne 0x10040778
cmp edi, 0xc0a
jne 0x10040790
push 0
push 7
push ebx
call fcn.100786a0
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 0x10040865
mov eax, dword [ebx + 0x38]
cmp eax, 0x4b771290
je 0x100407e6
cmp eax, 0xa029a697
je 0x100407e6
cmp eax, 0xf03b7906
je 0x100407e6
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.10048080
push 0x100c2c6c
push 0x1a8a7
push str.misuse_at_line__d_of___.10s_
push 0x15
call fcn.10048080
add esp, 0x1c
mov eax, 0x15
jmp 0x100407f6
test cl, cl
jne 0x100407f1
mov eax, dword [ebx + 0x14]
and eax, edx
jmp 0x100407f6
mov eax, 7
cmp esi, eax
jne 0x10040865
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x10040872
push ebx
call fcn.10042830
add esp, 4
mov ecx, eax
test eax, eax
je 0x10040823
cmp byte [eax], 0
je 0x1004081b
inc ecx
cmp byte [ecx], 0
jne 0x10040815
sub ecx, eax
and ecx, 0x3fffffff
lea ebx, [ecx + 1]
push ebx
call fcn.10083bd0
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x1004084f
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.10042830
add esp, 4
push eax
push dword [edi]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x10040872
mov ebx, dword [ebp + 8]
mov esi, 7
push 0
push esi
push ebx
call fcn.100786a0
add esp, 0xc
jmp 0x10040872
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10040872
mov dword [eax], 0
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x10040883
push eax
call dword [0x100ec528]
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret