Function at 0x4091f3
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 [0x40b1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x800
mov word [ebp - 0x820], ax
xor edi, edi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push edi
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
cmp esi, 0x641
jb 0x40925b
push edi
push 0x401
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push esi
push 0xffffffffffffffff
call dword [sym.imp.msi.dll_MsiDecomposeDescriptorW]
mov ebx, eax
test ebx, ebx
jne 0x40932d
call dword [sym.imp.KERNEL32.dll_GetACP]
mov ebx, eax
push 0x404340
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4092be
push 0x409450
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4092b7
call eax
movzx eax, ax
push 0xa
lea ecx, [ebp - 0x18]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
push ecx
movzx eax, ax
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4092b7
mov ebx, dword [ebp - 0x18]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
push edi
push 0x401
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
movzx eax, ax
push eax
push esi
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x409307
lea eax, [eax*2 - 4]
cmp eax, 0x802
jae 0x409302
xor ecx, ecx
mov word [ebp + eax - 0x820], cx
jmp 0x40932d
call fcn.0040a224
push esi
push 0x40946c
mov eax, 0x401
lea ebx, reloc.ADVAPI32.dll_TraceMessage
call fcn.004070cc
pop ecx
pop ecx
test eax, eax
js 0x40943e
mov ebx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
cmp dword [0x40c818], 0
mov eax, dword [0x40b0e8]
jne 0x4093f1
test eax, eax
je 0x40934c
cmp eax, reloc.ADVAPI32.dll_TraceMessage
jne 0x4093f1
lea eax, [ebp - 8]
mov esi, 0x11c
push esi
mov dword [ebp - 0x14], eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push edi
push eax
mov dword [ebp - 0x10], 1
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4093d4
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 6
jb 0x4093d4
lea edi, [esi - 0x1c]
lea esi, [ebp - 0x14]
call fcn.0040994d
xor edi, edi
test al, al
je 0x4093d4
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x1c
push 0xffffffffffffffff
call dword [sym.imp.msi.dll_MsiDecomposeDescriptorW]
test eax, eax
je 0x4093d4
push edi
push 0xfffe
push 1
push edi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [ebp - 0x14]
push edi
push edi
call dword [0x40b1b4]
test eax, eax
jns 0x4093e7
push edi
push ebx
push 0x10
push edi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push edi
call dword [sym.imp.msi.dll_MsiProvideQualifiedComponentExW]
lea esi, [ebp - 0x14]
call fcn.0040242d
jmp 0x40943e
test eax, eax
je 0x40943e
cmp eax, reloc.ADVAPI32.dll_TraceMessage
je 0x40943e
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea ecx, reloc.ADVAPI32.dll_TraceMessage
push ecx
add eax, eax
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [0x40b0e8]
call esi
push edi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 4
push 0x409490
push dword [0x40b0e8]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040234c
leave
ret