Function at 0x1000f695
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc88
mov eax, dword [0x10039754]
and dword [ebp - 0xc], 0
push edi
push 0x1ac4
mov dword [ebp - 0x10], eax
call fcn.1000ac58
mov edi, eax
pop ecx
mov dword [ebp - 8], edi
test edi, edi
je 0x1000fa66
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x1640], eax
lea eax, [edi + 0x648]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [edi + 0x1640]
push eax
call fcn.1001d8ce
pop ecx
pop ecx
mov ebx, 0x105
push ebx
lea esi, [edi + 0x1644]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1000f712
mov eax, esi
call fcn.1000b494
mov dword [edi + 0x1854], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.10010de3
mov dword [edi + 0x110], eax
push dword [eax]
call fcn.100111e9
pop ecx
pop ecx
test eax, eax
je 0x1000f73d
mov dword [edi + 0x214], 3
jmp 0x1000f750
call fcn.10010e43
xor ecx, ecx
test eax, eax
setg cl
inc ecx
mov dword [edi + 0x214], ecx
lea esi, [edi + 0x220]
call fcn.10012da5
mov dword [edi + 0x218], eax
call fcn.10012dfc
lea ecx, [ebp - 0x14]
push ecx
mov dword [edi + 0x21c], eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
mov dword [edi + 0x224], eax
lea ecx, [ebp - 0x2bc]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea eax, [edi + 0x114]
push eax
mov dword [ebp - 0xc], 0x80
mov eax, dword [edi + 0x110]
mov dword [ebp - 4], pe_nt_image_headers32
push dword [eax]
mov eax, dword [0x1003974c]
push 0
call dword [eax + 0x68]
test eax, eax
jne 0x1000f7b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x10039728]
push 0x1000
call dword [eax + 0x3c]
xor ecx, ecx
test eax, eax
setg cl
push ebx
lea esi, [edi + 0x228]
push esi
push dword [edi + 0x224]
mov dword [edi + 0x1850], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
call fcn.1000b494
mov dword [edi + 0x434], eax
lea eax, [edi + 0x114]
push eax
call fcn.10011561
lea ebx, [edi + 0xb0]
push eax
mov dword [edi + 0xac], eax
call fcn.1001165a
pop ecx
pop ecx
lea eax, [edi + 0xd0]
test ebx, ebx
je 0x1000f842
push 0x20
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x1000f842
xor edx, edx
mov word [edi + eax*2 + 0xd0], dx
add edi, 0x438
mov ecx, esi
call fcn.1000b92b
mov esi, dword [ebp - 8]
push ebx
lea edi, [esi + 0x100c]
call fcn.1000acd6
push eax
push ebx
xor eax, eax
call fcn.10011785
push eax
call fcn.100116db
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 0x10
call edi
push eax
call fcn.1001125c
mov ebx, 0x9c
push ebx
movsx eax, al
push 0
push esi
mov dword [esi + 0x101c], eax
call sub.msvcrt.dll_memset
add esp, 0x10
push esi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, dword [0x10039740]
and dword [ebp - 4], 0
cmp dword [ebx + 0x6c], 0
je 0x1000f8bb
lea eax, [ebp - 4]
push eax
call edi
push eax
call dword [ebx + 0x6c]
mov eax, dword [ebp - 4]
mov dword [esi + 0xa8], eax
test eax, eax
je 0x1000f8cd
push 9
pop eax
jmp 0x1000f8db
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x38]
mov edi, 0x104
push edi
lea ebx, [esi + 0x1020]
push ebx
mov word [esi + 0x9c], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x8cf
call fcn.10012cce
pop ecx
push edi
lea ecx, [ebp - 0x2c4]
push ecx
mov dword [ebp - 4], eax
push eax
mov eax, dword [0x10039740]
call dword [eax + 0xe0]
test eax, eax
jne 0x1000f92a
mov eax, dword [0x10039740]
push ebx
push dword [ebp - 4]
call dword [eax + 0xfc]
lea eax, [ebp - 4]
push eax
call fcn.1000ba86
lea eax, [esi + 0x1434]
mov dword [esp], 0x209
push eax
mov eax, dword [0x10039740]
mov edi, str.USERPROFILE
push edi
call dword [eax + 0xe0]
test eax, eax
jne 0x1000f982
push 0x1003680c
push ebx
push 0x10036814
push 0x105
lea ebx, [esi + 0x1434]
push ebx
call fcn.1000ce46
mov eax, dword [0x10039740]
add esp, 0x14
push ebx
push edi
call dword [eax + 0xfc]
push 0x20a
lea eax, [esi + 0x122a]
push eax
mov eax, dword [0x10039740]
mov edi, str.TEMP
push edi
call dword [eax + 0xe0]
test eax, eax
jne 0x1000f9b6
lea eax, [esi + 0x1434]
push eax
mov eax, dword [0x10039740]
push edi
call dword [eax + 0xfc]
push 0x40
lea eax, [ebp - 0xb8]
push eax
mov eax, dword [0x10039740]
mov edi, str.SystemDrive
push edi
call dword [eax + 0xe0]
test eax, eax
jne 0x1000f9e5
mov eax, dword [0x10039740]
push 0x1003682c
push edi
call dword [eax + 0xfc]
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x199c]
push eax
mov eax, dword [0x10039740]
mov dword [ebp - 8], 0x7f
call dword [eax + 0xb0]
lea eax, [ebp - 0xc88]
push eax
lea edx, [esi + 0x100c]
push edx
call fcn.1000acd6
push eax
push edx
xor eax, eax
call fcn.10011785
add esp, 0xc
push eax
call fcn.1001d8ce
push 0x20
lea eax, [esi + 0x1858]
push eax
lea eax, [ebp - 0xc88]
push eax
call fcn.1001d988
lea eax, [ebp - 0xc88]
push eax
push 0x1e
push 0x14
lea edi, [esi + 0x1878]
push 1
call fcn.1000b4be
add esp, 0x24
call fcn.1000f450
mov dword [esi + 0x1898], eax
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret