Function at 0x30041067
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 0xc], 0
jne 0x30041086
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3004109d
push 0x3000660c
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 0x30041202
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 0x30041106
jmp 0x300410d3
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 0x30041129
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 0x30041158
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 0x30041194
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x88], 0
je 0x3004118a
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 0x300411ba
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.30045d26
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x98]
and eax, 0x20
je 0x300411e2
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x60], 0
je 0x300411e2
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.300474b8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x98]
and eax, 0x40
je 0x300410d3
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x300410d3
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 0x3004122e
push 0x3000660c
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