Function at 0x300408d8
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 0x300408fc
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x30040913
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.3003fd8e
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x3004094c
mov eax, dword [ebp - 0x8c]
jmp 0x30040b8f
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 0x30040b8d
mov eax, dword [ebp + 8]
push eax
call fcn.300450b2
test eax, eax
je 0x3004098a
mov eax, 0x800704c7
jmp 0x30040b8f
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 0x300409b4
jmp 0x30040964
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.30040233
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x300409ef
mov eax, dword [ebp - 0x8c]
jmp 0x30040b8f
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x33c]
and eax, 8
je 0x30040a57
mov ecx, dword [ebp - 0x84]
cmp dword [ecx + 0x50], 0
je 0x30040a57
mov edx, dword [ebp - 0x84]
cmp dword [edx + 0x54], 0
je 0x30040a57
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.3003fe3d
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x30040a5e
mov eax, dword [ebp - 0x8c]
jmp 0x30040b8f
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x33c]
and edx, 4
je 0x30040ac6
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x58], 0
je 0x30040ac6
mov ecx, dword [ebp - 0x84]
cmp dword [ecx + 0x5c], 0
je 0x30040ac6
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.3003fe3d
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x30040acd
mov eax, dword [ebp - 0x8c]
jmp 0x30040b8f
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.30040354
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x30040964
mov eax, dword [ebp - 0x8c]
jmp 0x30040b8f
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc