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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x940
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x800
lea eax, [ebp - 0x81a]
push esi
push eax
mov word [ebp - 0x81c], si
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 0x641
mov dword [ebp - 0x93c], esi
mov edi, 0x401
jb 0x1009157
push esi
push edi
lea eax, [ebp - 0x81c]
push eax
push dword [ebp + 8]
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
cmp eax, esi
mov dword [ebp - 0x940], eax
jne 0x1009206
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0x1001bbc
mov dword [ebp - 0x940], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x10091b8
push 0x1001ba0
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x10091b1
call eax
movzx eax, ax
push 0xa
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x93c], eax
push ecx
movzx eax, ax
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10091b1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x940], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
push edi
lea eax, [ebp - 0x81c]
push eax
movzx eax, word [ebp - 0x93c]
push eax
push dword [ebp + 8]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp eax, esi
je 0x10091e6
mov word [ebp + eax*2 - 0x820], si
jmp 0x1009206
push dword [ebp + 8]
lea eax, [ebp - 0x81c]
push 0x1001b7c
push edi
push eax
call fcn.01006339
add esp, 0x10
test eax, eax
jl 0x1009318
cmp dword [0x1015510], esi
mov eax, dword [0x1015a28]
jne 0x10092cb
cmp eax, esi
je 0x1009224
cmp eax, 0xffffffff
jne 0x10092cb
lea eax, [ebp - 8]
mov edi, 0x11c
push edi
mov dword [ebp - 0x14], eax
xor ebx, ebx
lea eax, [ebp - 0x938]
push esi
inc ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x938]
push eax
mov dword [ebp - 0x938], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10092aa
cmp dword [ebp - 0x934], 6
jb 0x10092aa
push esi
push 0x100
lea ecx, [ebp - 0x14]
call fcn.01005cea
test al, al
je 0x10092aa
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x1c
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
test eax, eax
je 0x10092aa
push esi
push 0xfffe
push ebx
push esi
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0x14]
push esi
push esi
call dword [0x1014310]
test eax, eax
jge 0x10092c1
push esi
push dword [ebp - 0x940]
lea eax, [ebp - 0x81c]
push 0x10
push esi
push eax
push esi
call sub.msi.dll_MsiProvideQualifiedComponentExW
lea ecx, [ebp - 0x14]
call fcn.01006100
jmp 0x1009318
cmp eax, esi
je 0x1009318
cmp eax, 0xffffffff
je 0x1009318
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea ecx, [ebp - 0x93c]
push ecx
add eax, eax
push eax
lea eax, [ebp - 0x81c]
push eax
push dword [0x1015a28]
call edi
push esi
lea eax, [ebp - 0x93c]
push eax
push 4
push 0x1001768
push dword [0x1015a28]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010108f5
leave
ret