Function at 0x3002071f
Capabilities:
Print debug messages
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 0xc], 0
jne 0x3002073c
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
push 0x428
call fcn.3001ff69
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x30020759
mov eax, 0x8007000e
jmp 0x30020ab2
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x10]
mov dword [edx], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push edx
push 0
push 0x1f03ff
call fcn.30020698
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx + 4], 0
jne 0x300207f1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x3002079f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x3c], eax
jmp 0x300207b7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
and eax, 0xffff
or eax, 0x70000
or eax, 0x80000000
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x80070057
je 0x300207cf
cmp dword [ebp - 0x34], 0x80070002
jne 0x300207db
mov dword [ebp - 0x34], 1
jmp 0x30020aa0
cmp dword [ebp - 0x34], 0
jl 0x30020aa0
mov dword [ebp - 0x34], 0x80004005
jmp 0x30020aa0
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov ecx, dword [ebp - 0x24]
cmp dword [ecx], eax
jne 0x3002080a
mov edx, dword [ebp - 0x24]
mov dword [edx + 8], 0
jmp 0x3002081d
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
mov edx, dword [ebp - 0x24]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x41c], ecx
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x20], 0x1003f
mov edx, dword [ebp - 0x24]
add edx, 0x20
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x30020877
jmp 0x30020aa0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x2ec], 0x2cc
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x300
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x24]
add eax, 0x2f0
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.3002117d
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x300208c4
jmp 0x30020aa0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xe4]
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
sub edx, 4
mov eax, dword [ebp - 0xc]
sbb eax, 0
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x308], 0
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0xc]
ja 0x30020941
jb 0x30020906
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
ja 0x30020941
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x2f4]
ja 0x30020941
jb 0x3002092a
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx + 0x2f0]
jae 0x30020941
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x2f8], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x2fc], edx
jmp 0x30020956
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x2f8], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x2fc], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + 0x2f0]
sub edx, dword [ecx + 0x2f8]
mov eax, dword [eax + 0x2f4]
sbb eax, dword [ecx + 0x2fc]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jbe 0x300209a0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ecx, dword [edx + 0x2f0]
sub ecx, dword [eax + 0x2f8]
mov edx, dword [edx + 0x2f4]
sbb edx, dword [eax + 0x2fc]
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x308]
cmp eax, dword [edx + 0x10]
jbe 0x300209c0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x308]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x41c]
and edx, 0x10
test edx, edx
je 0x30020a73
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xd8]
sub ecx, 0x80
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0x100
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x31c
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x30020a24
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
cmp ecx, dword [edx + 0xd8]
jbe 0x30020a24
jmp 0x30020a81
mov eax, dword [ebp - 4]
and eax, 0xfffff000
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xd8]
and edx, 0xfffff000
cmp eax, edx
je 0x30020a63
mov eax, 0x1000
sub eax, dword [ebp - 4]
and eax, 0xfff
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x38]
mov dword [ebp - 4], edx
jmp 0x300209ed
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
jmp 0x30020a81
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
cdq
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x310], eax
mov dword [ecx + 0x314], edx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x318], eax
cmp dword [ebp - 0x34], 0
je 0x30020aaf
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.3001ff83
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret 0x18