Function at 0x407be3
Capabilities:
Check if file exists
Get system information on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
push esi
push edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0xdc], 0
push 0
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x30], 0
mov ecx, 5
mov esi, str.vssln._md
lea edi, [ebp - 0xf8]
rep movsd dword es:[edi], dword [esi]
push 0x9c
push 0
lea eax, [ebp - 0x250]
push eax
call fcn.00408010
add esp, 0xc
mov word [ebp - 0xf2], 0x67
mov word [ebp - 0xea], 0x37
mov word [ebp - 0xe8], 0x32
push 0xa8
push 0
lea ecx, [ebp - 0x1a0]
push ecx
call fcn.00408010
add esp, 0xc
mov dword [ebp - 0x1ac], 0
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 4
push 0x1000
push 0x3e8
push 0x1000
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x407cf0
lea eax, [ebp - 0xe0]
push eax
push 0x65
call fcn.00404f85
add esp, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1ac], 1
mov dword [ebp - 0x1b4], 0
cmp dword [ebp - 0x254], 0
jne 0x407d35
mov ecx, dword [ebp - 0xdc]
movsx edx, byte [ecx]
cmp edx, 0x45
je 0x407d35
mov eax, dword [ebp - 0xdc]
movsx ecx, byte [eax + 1]
cmp ecx, 0x46
je 0x407d35
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0x25c], edx
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x1ac], 0
jbe 0x407d8f
mov ecx, dword [0x40c038]
mov dword [ebp - 0x260], ecx
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0x260]
mov dword [edx + 0x1f8], eax
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x1ac], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x110]
mov dword [ebp - 0x254], eax
push 0x24
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.00408010
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x48], 1
jne 0x407f50
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x1fc], 2
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xfffff
mov dword [ebp - 0x26c], 0
jmp 0x407dfb
mov ecx, dword [ebp - 0x26c]
add ecx, 1
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp - 0x26c]
cmp edx, dword [ebp - 0x264]
jae 0x407e1a
mov eax, dword [ebp - 0x268]
add eax, 1
mov dword [ebp - 0x268], eax
jmp 0x407dec
mov ecx, dword [ebp - 0x264]
shl ecx, 1
cmp ecx, dword [ebp - 0x268]
jb 0x407f3f
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
je 0x407e67
push 0
push 0
push 3
push 0
push 0
push 2
push str.v87alocx__ni.inc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 0xffffffff
je 0x407ea8
mov dword [ebp - 0x274], 0
push 0
lea edx, [ebp - 0x278]
push edx
mov eax, dword [ebp - 0x274]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1a8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x407f03
mov dword [ebp - 0x27c], 0x40c03c
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ebp - 0x27c]
mov dword [ecx + 0x230], edx
mov eax, dword [ebp - 0xe0]
push eax
call fcn.0040460a
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x110]
mov dword [0x45c0b0], edx
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x110], 0
jle 0x407f03
mov dword [ebp - 0x1ac], 1
cmp dword [ebp - 0x270], 0
je 0x407f19
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x1ac], 1
jae 0x407f35
mov dword [ebp - 0x28], 0xff1a
mov dword [ebp - 0xe0], 0xfaf0
jmp 0x407f3d
mov eax, dword [ebp - 0x28]
jmp 0x407fe3
jmp 0x407f50
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x1fc], 0
je 0x407f77
cmp dword [ebp - 0x1ac], 0
jbe 0x407f77
mov eax, dword [ebp - 0x28]
mov dword [eax + 0xbc], 0
mov eax, dword [ebp - 0x28]
jmp 0x407fe3
cmp dword [ebp - 0x1a8], 0
je 0x407fac
push 0
lea ecx, [ebp - 0x1ac]
push ecx
push 0xa
mov edx, dword [ebp - 0xdc]
push edx
mov eax, dword [ebp - 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x1a8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x29c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x28c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret