Function at 0x10079200
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 [0x10515a9c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x10515aa0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [0x10515a7c], eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x10515a94], eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x10515a84], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x10515a88], 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 0x10079276
or eax, 0xffffffff
jmp 0x1007944d
push 0x1000
push 0xcc
mov eax, dword [ebp - 4]
push eax
call fcn.1024a480
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x118]
push ecx
call fcn.1024a480
add esp, 0xc
push 0x104
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x103ea944
lea eax, [ebp - 0x118]
push eax
call fcn.1025cfa0
add esp, 8
cmp dword [0x1065c474], 0
jne 0x100792e3
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1065c474], eax
cmp dword [0x1065c474], 0
jne 0x100792ed
int3
mov dword [ebp - 8], 0
jmp 0x100792ff
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax*4 + 0x103ea3f8], 0
je 0x1007937d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x103ea450]
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 + 0x103ea3f8]
push eax
mov ecx, dword [0x1065c474]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1007935f
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x103ea3f8]
push eax
push str.CRITICAL:Error_retrieving_address_of__z_
call fcn.1007b4e0
add esp, 8
jmp 0x100792f6
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x103ea450]
mov ecx, dword [eax]
push ecx
call fcn.10079030
add esp, 8
jmp 0x100792f6
mov edx, dword [ebp - 4]
mov dword [0x10515a78], 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.10079120
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [0x10515a78]
push edx
call fcn.10079030
add esp, 8
lea eax, [ebp - 0x14]
push eax
push 0x20
push 0x1000
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [edx + 0x103ea450]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.100790c0
mov edx, dword [0x1065c460]
push edx
call fcn.10078fb0
add esp, 4
mov dword [0x10515a80], eax
cmp dword [0x10515a80], 0
jge 0x1007941d
push str.CRITICAL:Unknown_offset_for_Win32_Error_
call fcn.1007b4e0
add esp, 4
or eax, 0xffffffff
jmp 0x1007944d
mov eax, dword [0x1065c448]
push eax
call fcn.10078fb0
add esp, 4
mov dword [0x10515a8c], eax
cmp dword [0x10515a8c], 0
jge 0x1007944b
push str.CRITICAL:Unknown_offset_for_NtStatus_
call fcn.1007b4e0
add esp, 4
or eax, 0xffffffff
jmp 0x1007944d
xor eax, eax
mov esp, ebp
pop ebp
ret