Function at 0x30040211
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
push esi
push edi
cmp dword [ebp + 0xc], 0
jne 0x30040233
push 0x30006498
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x31c], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jne 0x30040257
xor eax, eax
jmp 0x3004060d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x304], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x308], ecx
mov dword [ebp - 0x300], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x54]
mov dword [ebp - 0x318], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x54
cmp dword [ebp - 0x318], ecx
je 0x300403ee
mov edx, dword [ebp - 0x318]
sub edx, 0x27c
mov dword [ebp - 0x31c], edx
mov eax, dword [ebp - 0x318]
mov ecx, dword [eax]
mov dword [ebp - 0x318], ecx
mov edx, dword [ebp - 0x31c]
add edx, 0x68
mov dword [ebp - 0x2fc], edx
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2f8], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x2f4], edx
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x2f0], ecx
mov edx, dword [ebp - 0x31c]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2ec], eax
mov ecx, dword [ebp - 0x31c]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x2e8], edx
mov esi, dword [ebp - 0x31c]
add esi, 0x1c
mov ecx, 0xd
lea edi, [ebp - 0x2e4]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x2b0], ecx
mov edx, dword [ebp - 0x31c]
mov eax, dword [edx + 0x54]
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x31c]
mov edx, dword [ecx + 0x58]
mov dword [ebp - 0x2a8], edx
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 0x2a4], ecx
mov edx, dword [ebp - 0x31c]
mov eax, dword [edx + 0x278]
mov dword [ebp - 0x314], eax
lea ecx, [ebp - 0x314]
push ecx
lea edx, [ebp - 0x308]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp + 8]
call dword [edx + 0x1c]
test eax, eax
jne 0x300403cb
mov eax, dword [ebp - 0x31c]
add eax, 0x68
push eax
mov ecx, dword [ebp - 0x31c]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ecx + 8]
push eax
push 0x30006650
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
call dword [edx + 4]
add esp, 0x18
mov eax, 0x80004004
jmp 0x3004060d
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax + 0x278]
and ecx, dword [ebp - 0x314]
mov edx, dword [ebp - 0x31c]
mov dword [edx + 0x278], ecx
jmp 0x30040284
mov dword [ebp - 0x31c], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c], 0
je 0x3004040d
mov dword [ebp - 0x300], 2
jmp 0x30040417
mov dword [ebp - 0x300], 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x4c]
mov dword [ebp - 0x318], edx
mov eax, dword [ebp + 0xc]
add eax, 0x4c
cmp dword [ebp - 0x318], eax
je 0x30040578
mov ecx, dword [ebp - 0x318]
sub ecx, 0x9c
mov dword [ebp - 0x320], ecx
mov edx, dword [ebp - 0x318]
mov eax, dword [edx]
mov dword [ebp - 0x318], eax
mov ecx, dword [ebp - 0x320]
mov edx, dword [ecx]
mov dword [ebp - 0x2fc], edx
mov eax, dword [ebp - 0x320]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2f8], ecx
mov edx, dword [ebp - 0x320]
mov esi, dword [edx + 0x64]
mov ecx, 0xb3
lea edi, [ebp - 0x2f4]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x320]
mov eax, dword [edx + 0x70]
mov dword [ebp - 0x24], eax
mov ecx, dword [edx + 0x74]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x320]
mov eax, dword [edx + 0x78]
mov dword [ebp - 0x1c], eax
mov ecx, dword [edx + 0x7c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x320]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x14], eax
mov ecx, dword [edx + 0x84]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x320]
mov eax, dword [edx + 0x88]
xor ecx, ecx
mov edx, dword [ebp - 0x320]
add eax, dword [edx + 0x80]
mov edx, dword [edx + 0x84]
adc edx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x320]
mov ecx, dword [eax + 0x98]
mov dword [ebp - 0x314], ecx
lea edx, [ebp - 0x314]
push edx
lea eax, [ebp - 0x308]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp + 8]
call dword [eax + 0x1c]
test eax, eax
jne 0x30040555
mov ecx, dword [ebp - 0x320]
mov edx, dword [ecx]
push edx
push 0x30006628
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
call dword [ecx + 4]
add esp, 0x10
mov eax, 0x80004004
jmp 0x3004060d
mov edx, dword [ebp - 0x320]
mov eax, dword [edx + 0x98]
and eax, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x320]
mov dword [ecx + 0x98], eax
jmp 0x30040423
mov dword [ebp - 0x320], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
and eax, 0x800
je 0x30040593
xor eax, eax
jmp 0x3004060d
mov dword [ebp - 0x300], 5
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x30c], 0
lea ecx, [ebp - 0x314]
push ecx
lea edx, [ebp - 0x308]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp + 8]
call dword [edx + 0x1c]
test eax, eax
je 0x3004060b
cmp dword [ebp - 0x30c], 0
jne 0x300405e5
jmp 0x3004060b
mov eax, dword [ebp - 0x30c]
push eax
mov ecx, dword [ebp - 0x310]
push ecx
mov edx, dword [ebp - 0x314]
push edx
push 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.30044a98
jmp 0x3004059d
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8