Function at 0x3001dc87
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
jne 0x3001dca4
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001dcbb
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x34], 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x24
cmp dword [ebp - 8], eax
je 0x3001ddf9
mov ecx, dword [ebp - 8]
sub ecx, 0x420
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x41c]
and edx, 1
test edx, edx
jne 0x3001dd1f
jmp 0x3001dcea
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x41c]
and edx, 4
test edx, edx
je 0x3001dd47
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x2ec]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x41c]
and eax, 2
test eax, eax
je 0x3001dd86
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x2f0]
sub ecx, dword [eax + 0x2f8]
mov edx, dword [edx + 0x2f4]
sbb edx, dword [eax + 0x2fc]
mov eax, dword [ebp - 0x20]
add eax, ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x41c]
and edx, 8
test edx, edx
je 0x3001ddb8
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + 0x308]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x34], 0x40
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x41c]
and edx, 0x10
test edx, edx
je 0x3001dcea
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x318], 0
jbe 0x3001dcea
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
add eax, dword [edx + 0x318]
mov dword [ebp - 0x20], eax
jmp 0x3001dcea
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x2c], 0
je 0x3001de1c
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
imul edx, dword [ecx + 0x34]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
shl eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x2c]
add edx, 4
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x2c]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x80]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x80], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x68]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x68], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x5c]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x5c], edx
mov eax, 1
mov esp, ebp
pop ebp
ret 8