Function at 0x10079140
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 [0x10515a7c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x10515a80], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [0x10515a5c], eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x10515a74], eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x10515a64], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x10515a68], 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 0x100791b6
or eax, 0xffffffff
jmp 0x1007938d
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 0x103ea908
lea eax, [ebp - 0x118]
push eax
call fcn.1025cfa0
add esp, 8
cmp dword [0x1065c454], 0
jne 0x10079223
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1065c454], eax
cmp dword [0x1065c454], 0
jne 0x1007922d
int3
mov dword [ebp - 8], 0
jmp 0x1007923f
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax*4 + 0x103ea398], 0
je 0x100792bd
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x103ea400]
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 + 0x103ea398]
push eax
mov ecx, dword [0x1065c454]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1007929f
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x103ea398]
push eax
push str.CRITICAL:Error_retrieving_address_of__z_
call fcn.1007b420
add esp, 8
jmp 0x10079236
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x103ea400]
mov ecx, dword [eax]
push ecx
call fcn.10078f70
add esp, 8
jmp 0x10079236
mov edx, dword [ebp - 4]
mov dword [0x10515a58], 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.10079060
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [0x10515a58]
push edx
call fcn.10078f70
add esp, 8
lea eax, [ebp - 0x14]
push eax
push 0x20
push 0x1000
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [edx + 0x103ea400]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.10079000
mov edx, dword [0x1065c440]
push edx
call fcn.10078ef0
add esp, 4
mov dword [0x10515a60], eax
cmp dword [0x10515a60], 0
jge 0x1007935d
push str.CRITICAL:Unknown_offset_for_Win32_Error_
call fcn.1007b420
add esp, 4
or eax, 0xffffffff
jmp 0x1007938d
mov eax, dword [0x1065c428]
push eax
call fcn.10078ef0
add esp, 4
mov dword [0x10515a6c], eax
cmp dword [0x10515a6c], 0
jge 0x1007938b
push str.CRITICAL:Unknown_offset_for_NtStatus_
call fcn.1007b420
add esp, 4
or eax, 0xffffffff
jmp 0x1007938d
xor eax, eax
mov esp, ebp
pop ebp
ret