Function at 0x30040cfa
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
cmp dword [ebp + 0x10], 0
jne 0x30040d19
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x30040d30
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [ebp + 0x10]
add eax, 0x64
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x64], eax
jne 0x30040d45
xor eax, eax
jmp 0x30040fdc
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x60]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], 0x20
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x48]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0x18
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x4c]
add eax, 7
and eax, 0xfffffff8
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x44]
mov dword [ebp - 4], ecx
push 0x18
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x60]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.3003fd8e
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x30040dc2
mov eax, dword [ebp - 0x48]
jmp 0x30040fdc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x10]
add edx, 0x64
cmp dword [ebp - 0x1c], edx
je 0x30040fda
mov eax, dword [ebp + 8]
push eax
call fcn.300450b2
test eax, eax
je 0x30040df1
mov eax, 0x800704c7
jmp 0x30040fdc
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x24
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
push 0
mov ecx, dword [ebp - 0x4c]
xor edx, edx
push edx
push ecx
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x30040e59
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0x30006738
push 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [ecx]
push eax
mov edx, dword [ecx + 4]
call edx
add esp, 0x14
mov eax, dword [ebp - 0x48]
jmp 0x30040fdc
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x30], ecx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0x64]
imul ecx, dword [edx + 0x18]
add ecx, dword [ebp - 0x4c]
lea edx, [ecx + eax + 0x20]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x4c]
add ecx, 7
and ecx, 0xfffffff8
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
sub edx, dword [ebp - 0x44]
mov dword [ebp - 0x24], edx
push 0x20
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [edx]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x30040f14
mov ecx, dword [ebp - 0x48]
push ecx
push 0x20
push 0x300066fc
push 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 4]
call ecx
add esp, 0x14
mov eax, dword [ebp - 0x48]
jmp 0x30040fdc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x30040f6e
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
push eax
push 0x300066c4
push 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 4]
call eax
add esp, 0x14
mov eax, dword [ebp - 0x48]
jmp 0x30040fdc
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x64]
imul eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x30040dcb
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov ecx, dword [edx + 0x64]
imul ecx, dword [eax + 0x18]
push ecx
push 0x30006688
push 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 4]
call ecx
add esp, 0x14
mov eax, dword [ebp - 0x48]
jmp 0x30040fdc
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc