Function at 0x405c94
Capabilities:
Check os version
Get geographical location
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94c
mov eax, dword [0x40c090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x802
xor ebx, ebx
lea eax, [ebp - 0x820]
push ebx
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x948], ebx
cmp esi, 0x641
jb 0x405cf3
push ebx
push 0x401
lea eax, [ebp - 0x820]
push eax
push esi
push 0xffffffffffffffff
call dword [sym.imp.msi.dll_MsiDecomposeDescriptorW]
mov edi, eax
test edi, edi
jne 0x405dc6
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0x401650
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405d5c
push 0x401664
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x944], eax
test eax, eax
je 0x405d55
mov ecx, eax
call dword [0x40d210]
call dword [ebp - 0x944]
push 0xa
movzx eax, ax
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x948], eax
push 0x20001004
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x405d55
mov edi, dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
lea eax, [ebp - 0x820]
push ebx
push 0x401
push eax
mov eax, dword [ebp - 0x948]
movzx eax, ax
push eax
push esi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x405da4
lea eax, [eax*2 - 4]
cmp eax, 0x802
jae 0x405ef4
xor ecx, ecx
mov word [ebp + eax - 0x820], cx
jmp 0x405dc6
push esi
push 0x401680
lea eax, [ebp - 0x820]
push 0x401
push eax
call fcn.00402e35
add esp, 0x10
test eax, eax
js 0x405ee5
cmp dword [0x40cda8], 0
mov eax, dword [0x40cabc]
jne 0x405e96
test eax, eax
je 0x405de5
cmp eax, 0xffffffff
jne 0x405e96
lea eax, [ebp - 8]
xor esi, esi
push 0x118
mov dword [ebp - 0x14], eax
inc esi
lea eax, [ebp - 0x93c]
mov dword [ebp - 0x10], esi
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x940], 0x11c
lea eax, [ebp - 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405e79
cmp dword [ebp - 0x93c], 6
jb 0x405e79
push ecx
push 0x100
lea ecx, [ebp - 0x14]
call fcn.004087aa
test al, al
je 0x405e79
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x1c
push 0xffffffffffffffff
call dword [sym.imp.msi.dll_MsiDecomposeDescriptorW]
test eax, eax
je 0x405e79
push ebx
push 0xfffe
push esi
mov esi, dword [0x40b02c]
lea eax, [ebp - 0x820]
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
push ebx
push ebx
call dword [0x40d210]
call esi
test eax, eax
jns 0x405e8c
push ebx
push edi
push 0x10
push ebx
lea eax, [ebp - 0x820]
push eax
push ebx
call dword [sym.imp.msi.dll_MsiProvideQualifiedComponentExW]
lea ecx, [ebp - 0x14]
call fcn.004087f4
jmp 0x405ee5
test eax, eax
je 0x405ee5
cmp eax, 0xffffffff
je 0x405ee5
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x944]
add eax, eax
push ecx
push eax
lea eax, [ebp - 0x820]
push eax
push dword [0x40cabc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0x944]
push eax
push 4
push 0x402638
push dword [0x40cabc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409600
leave
ret
call fcn.00409748
int3