Function at 0x405b6d
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 0x405bcc
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 0x405c9f
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0x401630
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405c35
push 0x401644
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x944], eax
test eax, eax
je 0x405c2e
mov ecx, eax
call dword [0x40d214]
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 0x405c2e
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 0x405c7d
lea eax, [eax*2 - 4]
cmp eax, 0x802
jae 0x405dce
xor ecx, ecx
mov word [ebp + eax - 0x820], cx
jmp 0x405c9f
push esi
push 0x401660
lea eax, [ebp - 0x820]
push 0x401
push eax
call fcn.00402cd7
add esp, 0x10
test eax, eax
js 0x405dbd
cmp dword [0x40cda8], 0
mov eax, dword [0x40cabc]
jne 0x405d6e
test eax, eax
je 0x405cbe
cmp eax, 0xffffffff
jne 0x405d6e
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 1
mov esi, 0x11c
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x940]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x940], esi
lea eax, [ebp - 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405d51
cmp dword [ebp - 0x93c], 6
jb 0x405d51
push ecx
push 0x100
lea ecx, [ebp - 0x14]
call fcn.00408577
test al, al
je 0x405d51
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 0x405d51
mov esi, dword [0x40b02c]
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 [0x40d214]
call esi
test eax, eax
jns 0x405d64
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.004085c1
jmp 0x405dbd
test eax, eax
je 0x405dbd
cmp eax, 0xffffffff
je 0x405dbd
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 0x402558
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.00409510
mov esp, ebp
pop ebp
ret
call fcn.0040965a
int3