Function at 0x3004042a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 0xc], 0
jne 0x30040449
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x30040460
push 0x300064f0
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 - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x38], 0x30
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x4c]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
add eax, 0x4c
cmp dword [ebp - 8], eax
je 0x300405c5
mov ecx, dword [ebp - 8]
sub ecx, 0x9c
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 + 0x98]
and edx, 1
jne 0x300404c9
jmp 0x30040496
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x98]
and edx, 4
je 0x300404ec
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x48]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x98]
and eax, 2
je 0x3004051b
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 + 0x70]
sub ecx, dword [eax + 0x78]
mov edx, dword [edx + 0x74]
sbb edx, dword [eax + 0x7c]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x98]
and ecx, 8
je 0x30040557
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x88], 0
je 0x3004054d
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add edx, dword [ecx + 0x88]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x38], 0x40
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x98]
and edx, 0x10
je 0x3004057d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x6c]
push ecx
mov edx, dword [eax + 0x68]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.300450e9
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x98]
and eax, 0x20
je 0x300405a5
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x60], 0
je 0x300405a5
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3004687b
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x98]
and eax, 0x40
je 0x30040496
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x30040496
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x30], 0
je 0x300405f1
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
imul edx, dword [ecx + 0x38]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
shl eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x30]
add edx, 4
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x30]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp - 0x20]
shl ecx, 6
add ecx, 0xc
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x40], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x90]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x90], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x78]
add ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x78], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x6c]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x6c], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc