Function at 0x10039290
Capabilities:
Allocate or change rwx memory
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
mov eax, dword [0x101e5aec]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xffffffff
cmp dword [0x101d0704], 0x47d4
nop
push eax
pop eax
cmp dword [0x101d06f8], 0xffffa758
cmp dword [0x101d06fc], 0xfffffb26
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10038e90
add esp, 0xc
mov dword [ebp - 0xc], eax
push edx
pop edx
cmp dword [ebp - 0xc], 0
jne 0x100392f5
mov eax, dword [ebp - 0x18]
jmp 0x10039591
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x2f0]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10039130
add esp, 0x1c
test eax, eax
je 0x1003956b
mov dword [ebp - 0x2f8], 0
cmp dword [0x101d0704], 0xffffb82b
cmp dword [0x101d0700], 0xffff8e02
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x34]
cmp eax, dword [ebp - 0x10]
jne 0x10039385
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x18]
jb 0x10039385
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2f8], edx
mov dh, dh
lea eax, [ebp - 0x2f4]
push eax
push 0x40
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x2f8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xchg ebx, eax
xchg ebx, eax
jmp 0x10039413
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.10039010
add esp, 8
test eax, eax
je 0x100393bc
push 0x40
push 0x3000
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.100d6970
mov dword [ebp - 0x2f8], eax
xchg ebx, eax
xchg ebx, eax
cmp dword [ebp - 0x2f8], 0
jne 0x10039413
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10038f00
add esp, 4
test eax, eax
je 0x10039413
push 0x40
push 0x3000
mov edx, dword [ebp + 0x18]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.100d6970
mov dword [ebp - 0x2f8], eax
mov dh, dh
cmp dword [ebp - 0x2f8], 0
je 0x10039413
mov ecx, dword [ebp - 0x2f8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10038f40
add esp, 0xc
cmp dword [ebp - 0x2f8], 0
je 0x1003953b
lea ecx, [ebp - 0x2f4]
push ecx
push 4
lea edx, [ebp - 0x2f8]
push edx
mov eax, dword [ebp - 0x24c]
add eax, 8
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10069980
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2f8]
mov dword [edx + 0x34], eax
mov al, al
lea ecx, [ebp - 0x2f4]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x2f8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.10069980
add esp, 0x14
test eax, eax
je 0x10039513
mov dword [ebp - 0x2f0], 0x10007
cmp dword [0x101d06ec], 0x1614
mov eax, dword [ebp - 0x2f8]
cmp eax, dword [ebp - 0x10]
jne 0x100394b1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x34]
mov eax, dword [ebp + 0xc]
add edx, dword [eax + 0x28]
mov dword [ebp - 0x240], edx
jmp 0x100394c5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2f8]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x240], edx
mov al, al
lea eax, [ebp - 0x2f0]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x101d06f0], 0xffffcfd4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x101d070c], 0xffff83bb
mov dword [ebp - 0x18], 1
xchg ebx, eax
xchg ebx, eax
jmp 0x10039539
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, cl
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, bl
jmp 0x10039569
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edx
pop edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, bl
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x101d0708], 0x5737
jmp 0x10039574
mov dword [ebp - 0x18], 0xfffffffe
push edx
pop edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x2fc], edx
mov eax, dword [ebp - 0x2fc]
push eax
call fcn.1011cdeb
add esp, 4
push ebx
pop ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1012e3ba
mov esp, ebp
pop ebp
ret