Function at 0x300208d7
Capabilities:
Print debug messages
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 0xc], 0
jne 0x300208f4
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
push 0x428
call fcn.30020121
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x30020911
mov eax, 0x8007000e
jmp 0x30020c6a
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.30020850
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx + 4], 0
jne 0x300209a9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x30020957
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x3c], eax
jmp 0x3002096f
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 0x30020987
cmp dword [ebp - 0x34], 0x80070002
jne 0x30020993
mov dword [ebp - 0x34], 1
jmp 0x30020c58
cmp dword [ebp - 0x34], 0
jl 0x30020c58
mov dword [ebp - 0x34], 0x80004005
jmp 0x30020c58
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov ecx, dword [ebp - 0x24]
cmp dword [ecx], eax
jne 0x300209c2
mov edx, dword [ebp - 0x24]
mov dword [edx + 8], 0
jmp 0x300209d5
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 0x30020a2f
jmp 0x30020c58
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.30021335
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x30020a7c
jmp 0x30020c58
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 0x30020af9
jb 0x30020abe
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
ja 0x30020af9
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 0x30020af9
jb 0x30020ae2
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx + 0x2f0]
jae 0x30020af9
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 0x30020b0e
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 0x30020b58
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 0x30020b78
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 0x30020c2b
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 0x30020bdc
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
cmp ecx, dword [edx + 0xd8]
jbe 0x30020bdc
jmp 0x30020c39
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 0x30020c1b
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 0x30020ba5
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
jmp 0x30020c39
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 0x30020c67
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.3002013b
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret 0x18