Function at 0x405e55
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 [0x40c080]
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 0x405eb4
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 0x405f87
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0x40165c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405f1d
push 0x401670
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x944], eax
test eax, eax
je 0x405f16
mov ecx, eax
call dword [0x40e210]
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 0x405f16
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 0x405f65
lea eax, [eax*2 - 4]
cmp eax, 0x802
jae 0x4060b7
xor ecx, ecx
mov word [ebp + eax - 0x820], cx
jmp 0x405f87
push esi
push 0x40168c
lea eax, [ebp - 0x820]
push 0x401
push eax
call fcn.00402f47
add esp, 0x10
test eax, eax
js 0x4060a8
cmp dword [0x40cda0], 0
mov eax, dword [0x40cab4]
jne 0x406059
test eax, eax
je 0x405fa6
cmp eax, 0xffffffff
jne 0x406059
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 1
push 0x118
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x93c]
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 0x40603c
cmp dword [ebp - 0x93c], 6
jb 0x40603c
push ecx
push 0x100
lea ecx, [ebp - 0x14]
call fcn.00408951
test al, al
je 0x40603c
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 0x40603c
mov esi, dword [0x40b028]
lea eax, [ebp - 0x820]
push ebx
push 0xfffe
push 1
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
push ebx
push ebx
call dword [0x40e210]
call esi
test eax, eax
jns 0x40604f
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.004087ad
jmp 0x4060a8
test eax, eax
je 0x4060a8
cmp eax, 0xffffffff
je 0x4060a8
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 [0x40cab4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0x944]
push eax
push 4
push 0x402640
push dword [0x40cab4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004097e0
leave
ret
call fcn.0040993a
int3