Function at 0x100483c6
Capabilities:
Resume thread
Suspend thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push esi
mov eax, 0xe1c2f3b4
mov dword [ebp - 0x18], eax
dec eax
push eax
test byte [ebp + 0x20], 0x20
jne 0x100484fe
mov ecx, dword [ebp + 0x18]
sub esi, esi
push 0x1f
pop dword [ebp - 0x14]
mov dword [ecx + 0xa4], edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
push 0xc
pop dword [ebp - 0x24]
mov dword [ebp - 0x20], 0x10047858
mov dword [ebp - 0x1c], esi
test byte [ebp + 0x24], 4
jne 0x1004842b
test byte [ebp + 0x20], 8
je 0x10048421
cmp byte [0x100477f1], 0x6a
jne 0x1004842b
cmp dword [0x10047808], esi
setne byte [ebp - 0x10]
cmp dword [ebp + 0x28], esi
je 0x10048499
test byte [ebp + 0x20], 8
je 0x10048451
push esi
push edi
mov esi, 0x1004775c
mov edi, ecx
add byte [ecx + 0x64], 0xfc
add edi, 0x90
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
test byte [ebp + 0x24], 0x10
jne 0x10048474
mov ecx, 0
jecxz 0x10048474
push edx
push esp
push 0x2f8
push 0x10047858
push 4
push ebx
call ecx
test eax, eax
pop edx
jge 0x10048477
mov dword [ebp - 0x20], esi
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10048505
cmp eax, 0xc0000005
je 0x10048505
test byte [ebp + 0x20], 8
je 0x100484a8
jmp 0x10048514
push esi
push edi
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov ecx, ebx
push 4
pop edx
mov eax, esi
cmp dword [ebp + 0x28], esi
jne 0x100484e1
test byte [ebp + 0x20], 1
je 0x100484d2
push 0x182
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x10]
add eax, 0x20
mov dword [ebp - 0xc], eax
and byte [eax], 0xfd
push 0x48
pop edx
test byte [ebp + 0x24], 8
jne 0x100484de
or dl, 0x10
mov ecx, dword [ebp + 0x10]
or eax, dword [ebp - 0x10]
push esi
push esp
push edx
push eax
push edi
push esi
lea eax, [ebp - 0x24]
push eax
push ecx
call dword [0x1004781c]
test eax, eax
pop dword [ebp - 4]
mov esi, eax
jne 0x1004853b
cmp byte [0x10047c13], 0
je 0x100485e7
or byte [ebp + 0x20], 8
jmp 0x100483e1
push esi
mov edx, esp
push esi
push esi
push esp
push edx
push dword [ebp - 0x10]
push edi
push esi
push esi
push esi
push 1
push dword [ebp - 0x20]
push ebx
call dword [0x10047828]
test eax, eax
pop ecx
pop dword [ebp - 4]
pop esi
jl 0x100485e7
sub esp, 0x20
cmp dword [ebp + 0x28], 0
mov eax, esp
jne 0x10048564
push 0x1c
push eax
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100485af
mov ecx, dword [esp + 4]
jecxz 0x100485af
or ecx, 0x10
mov dword [ebp - 8], ecx
jmp 0x100485af
mov ecx, 0
jecxz 0x10048596
push 0
push 0x1c
push eax
push 0
push esi
call ecx
test eax, eax
jl 0x10048596
mov eax, dword [esp + 4]
test eax, eax
je 0x10048596
lea ecx, [ebp - 8]
add eax, 0xe0c
push 0
push 4
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov al, byte [ebp + 0x20]
and al, 0x11
cmp al, 0x11
je 0x100485af
mov ecx, 0
jecxz 0x100485af
push 0
push 0
push 0x11
push esi
call ecx
add esp, 0x20
test byte [ebp + 0x24], 1
je 0x100485be
cmp dword [ebp + 0x14], 0
je 0x100485d9
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp + 0x14]
jecxz 0x100485d9
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100485df
pop edx
push dword [ebp - 0x18]
jmp 0x100485e7
push esp
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp - 0xc]
jecxz 0x100485ef
or byte [ecx], 2
pop eax
cmp eax, dword [ebp - 0x18]
push eax
jne 0x10048648
test byte [ebp + 0x24], 1
je 0x1004861f
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [edx + 0x10], ebx
mov dword [edx + 0x18], esi
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], edi
mov dword [edx + 0x24], ecx
cmp dword [ebp - 0x10], 0
jne 0x10048681
or dword [edx], 4
jmp 0x10048681
test byte [ebp + 0x24], 2
je 0x1004867a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x7f
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1004864e
dec dword [ebp - 0x14]
jg 0x10048634
jmp 0x1004867a
test byte [ebp + 0x20], 8
je 0x1004865a
mov ecx, dword [ebp - 8]
jecxz 0x1004865a
push ecx
call dword [0x10047818]
test byte [ebp + 0x24], 4
jne 0x1004867a
pop eax
cmp dword [ebp - 0x18], eax
push eax
je 0x10048673
inc eax
cmp dword [ebp - 0x18], eax
je 0x10048673
cmp dword [ebp - 0x10], 0
jne 0x1004867a
push edi
call dword [0x10047818]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x20]
pop eax
pop esi
leave
ret 0x24