Function at 0x40a3f4
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 [0x4110a0]
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 0x40a453
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 0x40a526
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0x401b20
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a4bc
push 0x401b34
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x944], eax
test eax, eax
je 0x40a4b5
mov ecx, eax
call dword [0x413278]
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 0x40a4b5
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 0x40a504
lea eax, [eax*2 - 4]
cmp eax, 0x802
jae 0x40a654
xor ecx, ecx
mov word [ebp + eax - 0x820], cx
jmp 0x40a526
push esi
push 0x401b50
lea eax, [ebp - 0x820]
push 0x401
push eax
call fcn.004034b5
add esp, 0x10
test eax, eax
js 0x40a645
cmp dword [0x411f18], 0
mov eax, dword [0x411c00]
jne 0x40a5f6
test eax, eax
je 0x40a545
cmp eax, 0xffffffff
jne 0x40a5f6
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 0x40a5d9
cmp dword [ebp - 0x93c], 6
jb 0x40a5d9
push ecx
push 0x100
lea ecx, [ebp - 0x14]
call fcn.0040d030
test al, al
je 0x40a5d9
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 0x40a5d9
push ebx
push 0xfffe
push esi
mov esi, dword [0x41002c]
lea eax, [ebp - 0x820]
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
push ebx
push ebx
call dword [0x413278]
call esi
test eax, eax
jns 0x40a5ec
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.0040d07a
jmp 0x40a645
test eax, eax
je 0x40a645
cmp eax, 0xffffffff
je 0x40a645
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 [0x411c00]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0x944]
push eax
push 4
push 0x402b68
push dword [0x411c00]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ead0
leave
ret
call fcn.0040ec18
int3