Function at 0x416e10
Capabilities:
Check os version
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439623
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x450068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x88], ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov ebx, 2
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x84], ecx
cmp edi, ebx
ja 0x416e80
mov ecx, dword [eax]
call fcn.00416240
lea eax, [ebx - 1]
jmp 0x417310
mov edx, dword [eax + ebx*4]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416ea0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402cf0
mov esi, dword [ebp - 0x28]
lea edi, [ebp - 0x28]
inc ebx
cmp dword [ebp - 0x14], 8
cmovae edi, esi
cmp dword [ebp - 0x18], 2
jne 0x416fae
mov ecx, 0x44af60
mov edx, 2
sub edi, ecx
nop dword [eax]
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x416fae
add ecx, 2
sub edx, 1
jne 0x416ee0
mov edi, dword [ebp - 0x80]
mov eax, dword [ebp - 0x6c]
cmp ebx, edi
jae 0x416f50
mov eax, dword [eax + ebx*4]
inc ebx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x416f40
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x416f36
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41732c
push ecx
push esi
call fcn.0041aec9
add esp, 8
cmp ebx, edi
jae 0x4170a2
mov eax, dword [ebp - 0x6c]
jmp 0x416e80
mov edx, dword [ebp - 0x7c]
mov ecx, dword [eax]
call fcn.00416240
mov eax, dword [ebp - 0x14]
mov edx, 1
mov dword [ebp - 0x70], edx
cmp eax, 8
jb 0x416f9c
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x416f8f
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41732c
push ecx
push esi
call fcn.0041aec9
mov edx, dword [ebp - 0x70]
add esp, 8
xor eax, eax
mov ecx, 1
cmp edx, 0xa
cmovne eax, ecx
jmp 0x417310
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
cmp edi, 8
cmovae eax, esi
cmp dword [ebp - 0x18], 2
jne 0x416fe6
mov ecx, 0x44a150
mov edx, 2
sub eax, ecx
mov dword [ebp - 0x74], eax
nop
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x416fe6
mov eax, dword [ebp - 0x74]
add ecx, 2
sub edx, 1
jne 0x416fd0
jmp 0x417054
cmp edi, 8
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp dword [ebp - 0x18], 2
jne 0x41701a
mov ecx, 0x44a158
mov edx, 2
sub eax, ecx
mov dword [ebp - 0x74], eax
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x41701a
mov eax, dword [ebp - 0x74]
add ecx, 2
sub edx, 1
jne 0x417004
jmp 0x417054
cmp edi, 8
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp dword [ebp - 0x18], 6
jne 0x4170b7
mov ecx, str.__help
mov edx, 6
sub eax, ecx
mov dword [ebp - 0x74], eax
nop dword [eax]
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x4170b7
mov eax, dword [ebp - 0x74]
add ecx, 2
sub edx, 1
jne 0x417040
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x7c]
mov ecx, dword [eax]
call fcn.00416240
mov edx, 0xa
mov dword [ebp - 0x70], edx
cmp edi, 8
jb 0x4170a4
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x417093
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417331
push edi
push esi
call fcn.0041aec9
mov edx, dword [ebp - 0x70]
add esp, 8
jmp 0x4170a4
xor edx, edx
mov ecx, edx
test edx, edx
je 0x4170fa
xor eax, eax
cmp edx, 0xa
cmovne eax, ecx
jmp 0x417310
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + ebx*4 - 4]
mov dword [ebp - 0x78], eax
cmp edi, 8
jb 0x4170fc
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x4170eb
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417336
push edi
push esi
call fcn.0041aec9
mov eax, dword [ebp - 0x78]
add esp, 8
jmp 0x4170fc
xor eax, eax
mov esi, dword [ebp - 0x6c]
mov ecx, dword [esi]
test ecx, ecx
je 0x417124
cmp ebx, dword [ebp - 0x80]
ja 0x417112
test eax, eax
jne 0x41718f
mov edx, dword [ebp - 0x7c]
call fcn.00416240
mov eax, 1
jmp 0x417310
test eax, eax
jne 0x41718f
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff4
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp eax, 0xffffffff
je 0x417142
push 0xc
push eax
call esi
push str._ERROR_
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.004040e0
add esp, 8
push 0xfffffffffffffff4
call edi
cmp eax, 0xffffffff
je 0x417168
push 7
push eax
call esi
push str._file.csv__is_NULL
push 0x448f94
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.004040e0
add esp, 0xc
mov eax, 1
jmp 0x417310
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edi, dword [ebp - 0x84]
cmp al, 5
mov esi, str.SELECT__Image_Path___Launch_String___Signer__FROM___s__WHERE__Image_Path__LIKE___.exe_OR__Image_Path__LIKE___.dll_OR__Image_Path__LIKE___.sys_OR___Signer__NOT_LIKE__Verified__Microsoft___AND__Company__NOT_LIKE_Microsoft_Corp___AND__Image_Path__NOT_LIKE___.exe_
mov ecx, str.SELECT__Image_Path___Launch_String__FROM___s__WHERE__Image_Path__LIKE___.exe_OR__Image_Path__LIKE___.dll_OR__Image_Path__LIKE___.sys
cmovbe esi, ecx
test edi, edi
je 0x41726f
push 0x40
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0041d060
add esp, 0xc
lea ecx, [ebp - 0xa0]
push edi
call fcn.00402a80
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00411850
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x417228
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41721e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41733b
push edx
push ecx
call fcn.0041aec9
add esp, 8
sub esp, 0x20
mov dword [ebp - 0x90], 0
xor eax, eax
mov dword [ebp - 0x8c], 7
lea ecx, [ebp - 0x68]
mov word [ebp - 0xa0], ax
call fcn.00419660
lea eax, [ebp - 0x68]
mov edx, esi
push eax
push ecx
mov ecx, dword [ebp - 0x78]
call fcn.00409040
add esp, 8
lea ecx, [ebp - 0x68]
call fcn.00411990
jmp 0x41730d
push 0x10000
push 1
call fcn.00422bab
push eax
call fcn.00423a33
add esp, 8
push eax
call fcn.00423854
add esp, 8
cmp eax, 0xffffffff
jne 0x4172b4
call fcn.00411800
push str.Cannot_set_mode__stdout_
push 0x448f94
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.004040e0
add esp, 0xc
push 0x10000
push 2
call fcn.00422bab
push eax
call fcn.00423a33
add esp, 8
push eax
call fcn.00423854
add esp, 8
cmp eax, 0xffffffff
jne 0x4172f9
call fcn.00411800
push str.Cannot_set_mode__stderr_
push 0x448f94
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.004040e0
add esp, 0xc
push dword [ebp - 0x88]
mov edx, esi
push ecx
mov ecx, dword [ebp - 0x78]
call fcn.00409040
add esp, 8
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
call fcn.00422e9e
call fcn.00422e9e
call fcn.00422e9e
call fcn.00422e9e
int3