Function at 0x10011e89
Capabilities:
Get common file path
Get hostname
Get system information on windows
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc20
push esi
push edi
xor edi, edi
push 0x1ce4
push edi
push 0x10028bc0
mov dword [ebp - 8], edi
call sub.msvcrt.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x1002a41c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
add ecx, dword [0x1002a41c]
mov eax, 0x10029424
call fcn.1000d5ad
push 0x105
mov esi, 0x1002a420
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10011ef1
mov eax, esi
call fcn.1000c596
mov dword [0x1002a630], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.10010b7b
mov dword [0x10028cc4], eax
push dword [eax]
call fcn.10010c92
pop ecx
pop ecx
test eax, eax
je 0x10011f1b
mov dword [0x10028dc8], 3
jmp 0x10011f2e
call fcn.10010bd5
xor ecx, ecx
test eax, eax
setg cl
inc ecx
mov dword [0x10028dc8], ecx
mov eax, dword [0x100270a4]
mov dword [ebp - 4], edi
push ebx
mov ebx, 0x100270a4
cmp dword [eax], edi
jne 0x10011f4b
push ebx
call fcn.1000ea34
pop ecx
test eax, eax
js 0x10011f73
lea eax, [ebp - 4]
push eax
push edi
push edi
call dword [0x1002897c]
test eax, eax
jne 0x10011f73
push dword [ebp - 4]
call fcn.1000c790
pop ecx
push dword [ebp - 4]
mov esi, eax
call dword [0x10028988]
mov eax, esi
jmp 0x10011f75
xor eax, eax
mov dword [0x10028dd0], eax
mov eax, dword [0x100270a4]
mov dword [ebp - 4], edi
cmp dword [eax], edi
jne 0x10011f91
push ebx
call fcn.1000ea34
pop ecx
test eax, eax
js 0x10011fc9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
call dword [0x10028980]
test eax, eax
jne 0x10011fc9
mov eax, dword [ebp - 0xc]
sub eax, edi
je 0x10011fac
dec eax
cmp dword [ebp - 4], edi
je 0x10011fc9
push dword [ebp - 4]
call fcn.1000c790
pop ecx
push dword [ebp - 4]
mov esi, eax
call dword [0x10028988]
mov eax, esi
jmp 0x10011fcb
xor eax, eax
mov dword [0x10028dcc], eax
mov eax, dword [ebp + 8]
mov dword [0x10028dd4], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x10028cc4]
push 0x10028cc8
mov dword [ebp - 8], 0x80
mov dword [ebp + 8], 0x100
push dword [eax]
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x10012016
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor ecx, ecx
test eax, eax
setg cl
push 0x20a
push dword [ebp + 0xc]
mov ebx, 0x10028dd8
push ebx
mov dword [0x1002a62c], ecx
call esi
mov eax, ebx
call fcn.1000c596
mov dword [0x10028fe4], eax
push 0x40
mov eax, ebx
call fcn.1000c596
push eax
mov edi, 0x10028c84
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
xor ecx, ecx
mov word [eax*2 + 0x10028c7c], cx
push 0x20
pop eax
mov esi, 0x10028c64
call fcn.1000c83f
pop ecx
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
test eax, eax
je 0x100120a3
cmp word [ecx*2 + 0x10028dd8], 0x5c
jne 0x1001209e
mov esi, ecx
inc ecx
cmp ecx, eax
jb 0x10012091
xor eax, eax
test esi, esi
je 0x100120be
mov cx, word [eax*2 + 0x10028dd8]
mov word [eax*2 + 0x10028fe8], cx
inc eax
cmp eax, esi
jb 0x100120a9
push 0x105
push 0x10028fe8
xor ecx, ecx
mov esi, 0x10029218
push esi
mov word [eax*2 + 0x10028fe8], cx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1001cba0
push esi
call ebx
push edi
push esi
call ebx
mov edi, 0x735
call fcn.1000ec70
push eax
push esi
mov dword [ebp + 8], eax
call ebx
lea eax, [ebp + 8]
call fcn.1000edb0
push 0x10029424
push 0xf
push 0xa
push 1
mov edi, 0x100291f2
call fcn.1000c5b0
add esp, 0x10
mov esi, 0x10028c64
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
xor eax, eax
call fcn.10010643
push eax
mov ebx, 0x10029de8
call fcn.10012864
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 0xc
call edi
push eax
call fcn.10010cdf
mov ebx, 0x9c
push ebx
movsx eax, al
push 0
mov esi, 0x10028bc0
push esi
mov dword [0x10029df8], eax
call sub.msvcrt.dll_memset
add esp, 0x10
push esi
mov dword [0x10028bc0], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
and dword [ebp + 8], 0
mov dword [0x1002a778], eax
test eax, eax
je 0x100121ae
lea eax, [ebp + 8]
push eax
call edi
push eax
call dword [0x1002a778]
mov eax, dword [ebp + 8]
mov dword [0x10028c60], eax
test eax, eax
je 0x100121bf
push 9
pop eax
jmp 0x100121cd
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x34]
mov esi, 0x104
push esi
mov edi, 0x10029dfc
push edi
mov word [0x10028c5c], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
lea eax, [ebp - 0x25c]
push eax
mov esi, str.SystemRoot
push esi
call ebx
test eax, eax
jne 0x10012207
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x209
mov esi, 0x1002a210
push esi
push str.USERPROFILE
call ebx
test eax, eax
jne 0x10012242
push 0x100257ec
push edi
push str._s_s
push 0x105
push esi
call fcn.1000d7a6
add esp, 0x14
push esi
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x20a
push 0x1002a006
mov edi, str.TEMP
push edi
call ebx
pop ebx
test eax, eax
jne 0x10012261
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x3f
lea eax, [ebp - 0x50]
push eax
mov esi, str.SystemDrive
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10012283
push 0x10025818
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea eax, [ebp + 8]
push eax
push 0x1002a77c
mov dword [ebp + 8], 0x7f
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov esi, 0x10029de8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
xor eax, eax
call fcn.10010643
mov ecx, eax
lea eax, [ebp - 0xc20]
call fcn.1000d5ad
push 0x20
push 0x1002a634
push eax
call fcn.1000d73c
lea eax, [ebp - 0xc20]
push eax
push 0x1e
push 0x14
push 1
mov edi, 0x1002a654
call fcn.1000c5b0
add esp, 0x24
call fcn.10011bc8
mov dword [0x1002a674], eax
xor eax, eax
pop edi
inc eax
pop esi
leave
ret