Function at 0x10079690
Capabilities:
Allocate or change rwx memory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x10515c80], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x10515c84], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [0x10515c60], eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x10515c78], eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x10515c68], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x10515c6c], eax
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10079706
or eax, 0xffffffff
jmp 0x100798dd
push 0x1000
push 0xcc
mov eax, dword [ebp - 4]
push eax
call fcn.1024a9c0
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x118]
push ecx
call fcn.1024a9c0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x103eaab8
lea eax, [ebp - 0x118]
push eax
call fcn.1025d220
add esp, 8
cmp dword [0x1065c654], 0
jne 0x10079773
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1065c654], eax
cmp dword [0x1065c654], 0
jne 0x1007977d
int3
mov dword [ebp - 8], 0
jmp 0x1007978f
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax*4 + 0x103ea548], 0
je 0x1007980d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x103ea5b0]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
add ecx, 0x40
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x103ea548]
push eax
mov ecx, dword [0x1065c654]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100797ef
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x103ea548]
push eax
push str.CRITICAL:Error_retrieving_address_of__z_
call fcn.1007b970
add esp, 8
jmp 0x10079786
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x103ea5b0]
mov ecx, dword [eax]
push ecx
call fcn.100794c0
add esp, 8
jmp 0x10079786
mov edx, dword [ebp - 4]
mov dword [0x10515c5c], edx
mov eax, dword [ebp - 4]
add eax, 0x80
mov dword [ebp - 4], eax
push str.GetTickCount
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.100795b0
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [0x10515c5c]
push edx
call fcn.100794c0
add esp, 8
lea eax, [ebp - 0x14]
push eax
push 0x20
push 0x1000
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [edx + 0x103ea5b0]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.10079550
mov edx, dword [0x1065c640]
push edx
call fcn.10079440
add esp, 4
mov dword [0x10515c64], eax
cmp dword [0x10515c64], 0
jge 0x100798ad
push str.CRITICAL:Unknown_offset_for_Win32_Error_
call fcn.1007b970
add esp, 4
or eax, 0xffffffff
jmp 0x100798dd
mov eax, dword [0x1065c628]
push eax
call fcn.10079440
add esp, 4
mov dword [0x10515c70], eax
cmp dword [0x10515c70], 0
jge 0x100798db
push str.CRITICAL:Unknown_offset_for_NtStatus_
call fcn.1007b970
add esp, 4
or eax, 0xffffffff
jmp 0x100798dd
xor eax, eax
mov esp, ebp
pop ebp
ret