Function at 0x485895f7
Capabilities:
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0x11
pop ecx
mov esi, ebx
lea edi, [ebp - 0xec]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x18]
xor edi, edi
cmp eax, edi
je 0x4858963a
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], eax
jmp 0x48589646
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], edi
lea eax, [ebp + 0x14]
push eax
push dword [ebx + 4]
call fcn.4858a229
push dword [ebp + 0x14]
call fcn.4858a481
test al, al
jne 0x48589665
mov edi, 0xc0000034
jmp 0x485896ca
push dword [ebx + 0x24]
push dword [ebp + 0x14]
call fcn.48589040
mov esi, eax
cmp esi, edi
jne 0x48589749
cmp dword [ebx + 0x24], 1
je 0x48589687
mov edi, 0xc0000001
jmp 0x485896ca
cmp dword [ebp - 0xa0], edi
jne 0x4858969b
cmp dword [ebp - 0x9c], edi
je 0x48589728
cmp byte [0x4858c8b0], 0
je 0x48589728
mov eax, dword [0x4858c940]
push 0x18
add eax, 0x80000
push eax
push dword [0x4858c88c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, edi
jne 0x485896e1
mov edi, 0xc0000017
push dword [ebx + 4]
mov esi, dword [sym.imp.ntdll.dll_NtClose]
call esi
push dword [ebx + 8]
call esi
mov eax, edi
jmp 0x48589862
mov ecx, dword [ebp - 0xa0]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x9c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 0xc]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x4858c8a0]
push 4
mov dword [eax], ecx
mov dword [eax + 4], 0x4858c8a0
push 0x4858c890
mov dword [ecx + 4], eax
push 7
mov dword [0x4858c8a0], eax
push dword [ebx + 4]
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
push dword [ebx + 4]
mov esi, dword [sym.imp.ntdll.dll_NtClose]
call esi
push edi
push dword [ebx + 8]
call dword [sym.imp.ntdll.dll_NtResumeThread]
push dword [ebx + 8]
call esi
xor eax, eax
jmp 0x48589862
push edi
push edi
mov edi, dword [sym.imp.ntdll.dll_NtDuplicateObject]
push 0x1f0fff
lea eax, [ebp - 0xe8]
push eax
push dword [esi + 0xc]
push dword [ebx + 4]
push 0xffffffffffffffff
call edi
test eax, eax
mov dword [ebp + 0x10], eax
jge 0x4858977e
push dword [ebx + 4]
mov edi, dword [sym.imp.ntdll.dll_NtClose]
call edi
push dword [ebx + 8]
jmp 0x485897ad
push 0
push 0
push 0x1f03ff
lea eax, [ebp - 0xe4]
push eax
push dword [esi + 0xc]
push dword [ebx + 8]
push 0xffffffffffffffff
call edi
test eax, eax
mov edi, dword [sym.imp.ntdll.dll_NtClose]
push dword [ebx + 4]
mov dword [ebp + 0x10], eax
jge 0x485897b1
call edi
push dword [ebx + 8]
call edi
jmp 0x48589814
call edi
push dword [ebx + 8]
call edi
push dword [ebp + 0xc]
push esi
call fcn.4858986e
and dword [ebp - 0xf8], 0
and dword [ebp - 0x10c], 0
mov ebx, eax
lea eax, [ebp - 0x110]
push eax
push eax
mov dword [ebp - 0xf0], ebx
mov word [ebp - 0x110], 0x60
mov word [ebp - 0x10e], 0x110
push dword [esi + 0x18]
call dword [sym.imp.ntdll.dll_NtRequestWaitReplyPort]
test eax, eax
mov dword [ebp + 0x10], eax
jl 0x4858980e
mov eax, dword [ebp - 0xf4]
test eax, eax
mov dword [ebp + 0x10], eax
jge 0x48589814
push ebx
call fcn.48589932
mov ebx, 0x4858c8c0
push ebx
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
dec dword [esi + 0x2c]
jne 0x48589858
cmp byte [esi + 0x28], 0
je 0x48589858
mov eax, dword [esi + 8]
test eax, eax
je 0x48589835
push eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4858983f
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x48589849
push eax
call edi
push esi
push 0
push dword [0x4858c88c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push ebx
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x14