Function at 0x402a10
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x250
lea eax, [esp + 8]
push ebx
push esi
push edi
push 0x123
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
lea ecx, [esp + 0x28]
push 0x80000000
push ecx
mov word [esp + eax*2 + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402d14
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x402d0d
cmp edi, 0x80
jb 0x402d0d
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402d0d
lea edx, [esp + 0xc]
push 0
push edx
push edi
push ebx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x402aca
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x250
ret 0xc
lea eax, [eax + ebx - 0x40]
mov esi, ebx
cmp ebx, eax
jae 0x402c1b
mov cl, byte [esi]
inc esi
cmp cl, 0x28
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x3c
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, 0x5b
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x3a
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, 0x2d
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x7b
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, 0x24
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x36
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, 0x2b
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x35
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, 0x34
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x33
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, 0x32
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x2a
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, 0x31
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x30
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, dl
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x31
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, 0x2a
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x32
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, 0x33
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x34
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, 0x35
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x2b
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, 0x36
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x24
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, 0x7d
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x2d
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, 0x3a
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x5d
jne 0x402c13
mov cl, byte [esi]
inc esi
cmp cl, 0x3e
jne 0x402c13
mov dl, byte [esi]
inc esi
cmp dl, 0x29
je 0x402c33
cmp esi, eax
jb 0x402ad8
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x250
ret 0xc
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + eax*2 + 0x14]
push str.SslvpnClient.msi
push eax
mov word [eax], 0
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea ecx, [esp + 0x14]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402c94
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x250
ret 0xc
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
sub eax, esi
push 0
add eax, ebx
push edx
push eax
push esi
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402cd0
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x250
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x268]
mov eax, dword [esp + 0x264]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x250
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x250
ret 0xc