Function at 0x30040a98
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
push esi
push edi
cmp dword [ebp + 0x10], 0
jne 0x30040abc
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x30040ad3
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x80], ecx
push 4
lea edx, [ebp - 0x80]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.3003ff4e
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x30040b0c
mov eax, dword [ebp - 0x8c]
jmp 0x30040d4f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
add ecx, 4
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x50], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp + 0x10]
add edx, 0x54
cmp dword [ebp - 0x7c], edx
je 0x30040d4d
mov eax, dword [ebp + 8]
push eax
call fcn.30045272
test eax, eax
je 0x30040b4a
mov eax, 0x800704c7
jmp 0x30040d4f
mov ecx, dword [ebp - 0x7c]
sub ecx, 0x340
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x33c]
and edx, 1
jne 0x30040b74
jmp 0x30040b24
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x338]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.300403f3
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x30040baf
mov eax, dword [ebp - 0x8c]
jmp 0x30040d4f
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x33c]
and eax, 8
je 0x30040c17
mov ecx, dword [ebp - 0x84]
cmp dword [ecx + 0x50], 0
je 0x30040c17
mov edx, dword [ebp - 0x84]
cmp dword [edx + 0x54], 0
je 0x30040c17
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.3003fffd
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x30040c1e
mov eax, dword [ebp - 0x8c]
jmp 0x30040d4f
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x33c]
and edx, 4
je 0x30040c86
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x58], 0
je 0x30040c86
mov ecx, dword [ebp - 0x84]
cmp dword [ecx + 0x5c], 0
je 0x30040c86
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x5c]
push ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x58]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.3003fffd
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x30040c8d
mov eax, dword [ebp - 0x8c]
jmp 0x30040d4f
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x78], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x68], edx
mov esi, dword [ebp - 0x84]
add esi, 0x1c
mov ecx, 0xd
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x5c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0
lea ecx, [ebp - 0x78]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.30040514
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x30040b24
mov eax, dword [ebp - 0x8c]
jmp 0x30040d4f
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc