Function at 0x417a00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a4fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 1
mov eax, dword [0x475f24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x24]
push eax
push 0x475b68
push 7
push ebx
push 0x475be8
mov byte [ebp - 4], 7
call esi
cmp eax, ebx
jl 0x417a89
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ole32.dll_OleRun]
cmp eax, ebx
jl 0x417a80
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push ecx
push 0x475bd8
mov edx, dword [eax]
push eax
call dword [edx]
mov eax, dword [ebp - 0x24]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x417a96
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [ebp - 0x24]
push edx
push 0x475b68
push 7
push ebx
push 0x475be8
call esi
cmp eax, ebx
jl 0x417ad5
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ole32.dll_OleRun]
cmp eax, ebx
jl 0x417acc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push 0x475bd8
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0x1c]
cmp eax, 1
jne 0x417af4
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
lea edx, [ebp - 0x1c]
push str.SELECT__FROM__s_WHERE__s_s
push edx
jmp 0x417b2a
cmp eax, 2
jne 0x417b10
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
lea eax, [ebp - 0x1c]
push 0x475b98
push eax
jmp 0x417b2a
cmp eax, 3
jne 0x417b32
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
lea ecx, [ebp - 0x1c]
push 0x475b78
push ecx
call fcn.00436a84
add esp, 0x14
push 1
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.004195b0
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.004195c0
lea ecx, [edi + 4]
mov byte [ebp - 4], 9
call fcn.00419560
lea edx, [ebp + 0x1c]
mov ecx, eax
push edx
mov byte [ebp - 4], 8
call fcn.00419270
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
call fcn.00419580
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x417b80
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x14]
push ecx
mov eax, esp
mov dword [ebp - 4], 7
mov dword [ebp + 0x1c], esp
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x417b9f
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, edi
call fcn.00418130
cmp eax, ebx
jg 0x417bda
mov esi, dword [ebp + 8]
push 0x47a440
mov ecx, esi
call fcn.0043d57b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 1
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x417daa
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x417daa
mov esi, dword [ebp + 0x18]
push 0xc
call fcn.0043dab4
add esp, 4
mov dword [ebp + 0x1c], eax
cmp eax, ebx
mov byte [ebp - 4], 0xb
je 0x417bfe
push esi
mov ecx, eax
call fcn.00419a20
mov esi, eax
jmp 0x417c00
xor esi, esi
cmp esi, ebx
mov byte [ebp - 4], 7
mov dword [ebp + 0x1c], esi
jne 0x417c15
push 0x8007000e
call fcn.0042f216
cmp esi, ebx
mov byte [ebp - 4], 0xc
mov word [ebp - 0x4c], 8
je 0x417c27
mov edi, dword [esi]
jmp 0x417c29
xor edi, edi
push edi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
cmp eax, ebx
mov dword [ebp - 0x44], eax
jne 0x417c49
push 0x8007000e
call fcn.0042f216
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xd
cmp eax, ebx
jne 0x417c5e
push 0x80004003
call fcn.0042f216
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x3c]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004194d0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 0x10
call edi
cmp eax, ebx
jge 0x417c88
push eax
call fcn.0042f216
mov bl, 0xf
test esi, esi
mov byte [ebp - 4], bl
je 0x417c98
mov ecx, esi
call fcn.00419aa0
mov eax, dword [ebp - 0x3c]
test ax, ax
jne 0x417cde
mov esi, dword [ebp + 8]
push 0x47a440
mov ecx, esi
call fcn.0043d57b
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], 1
push eax
mov byte [ebp - 4], 7
call edi
test eax, eax
jge 0x417cca
push eax
call fcn.0042f216
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
test eax, eax
je 0x417daa
jmp 0x417da4
cmp ax, 8
mov dword [ebp + 0x1c], 0
jne 0x417cf9
mov edx, dword [ebp - 0x34]
lea ecx, [ebp + 0x1c]
push edx
call fcn.00419700
jmp 0x417d34
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x11
push ecx
push 8
lea ecx, [ebp - 0x5c]
call fcn.00419b50
mov edx, dword [ebp - 0x54]
lea ecx, [ebp + 0x1c]
push edx
call fcn.00419700
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], bl
push eax
call edi
test eax, eax
jge 0x417d34
push eax
call fcn.0042f216
mov ecx, dword [ebp + 0x1c]
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x417d46
call fcn.00419af0
jmp 0x417d48
xor eax, eax
push eax
lea ecx, [ebp - 0x18]
call fcn.0043d696
mov ecx, dword [ebp + 0x1c]
mov byte [ebp - 4], bl
test ecx, ecx
je 0x417d60
call fcn.00419aa0
lea ecx, [ebp - 0x18]
call fcn.00436a97
lea ecx, [ebp - 0x18]
call fcn.00436ae3
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.0043d282
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x20], 1
push edx
mov byte [ebp - 4], 7
call edi
test eax, eax
jge 0x417d99
push eax
call fcn.0042f216
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
test eax, eax
je 0x417daa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0043d50d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0043d50d
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.0043d50d
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.0043d50d
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.0043d50d
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0
call fcn.0043d50d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18