Function at 0x30040e67
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
push esi
push edi
cmp dword [ebp + 0xc], 0
jne 0x30040e8b
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jne 0x30040eaf
xor eax, eax
jmp 0x300412fe
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 - 0x340], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x54
cmp dword [ebp - 0x340], ecx
je 0x3004104a
mov edx, dword [ebp - 0x340]
sub edx, 0x340
mov dword [ebp - 0x344], edx
mov eax, dword [ebp - 0x340]
mov ecx, dword [eax]
mov dword [ebp - 0x340], ecx
mov edx, dword [ebp - 0x344]
add edx, 0x68
mov dword [ebp - 0x2fc], edx
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2f8], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x2f4], edx
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x2f0], ecx
mov edx, dword [ebp - 0x344]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2ec], eax
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x2e8], edx
mov esi, dword [ebp - 0x344]
add esi, 0x1c
mov ecx, 0xd
lea edi, [ebp - 0x2e4]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x2b0], ecx
mov edx, dword [ebp - 0x344]
mov eax, dword [edx + 0x54]
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx + 0x58]
mov dword [ebp - 0x2a8], edx
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 0x2a4], ecx
mov edx, dword [ebp - 0x344]
mov eax, dword [edx + 0x33c]
mov dword [ebp - 0x33c], eax
lea ecx, [ebp - 0x33c]
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]
mov eax, dword [edx + 0x1c]
call eax
test eax, eax
jne 0x30041027
mov ecx, dword [ebp - 0x344]
add ecx, 0x68
push ecx
mov edx, dword [ebp - 0x344]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [edx + 8]
push ecx
push 0x300066a8
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, 0x18
mov eax, 0x80004004
jmp 0x300412fe
mov edx, dword [ebp - 0x344]
mov eax, dword [edx + 0x33c]
and eax, dword [ebp - 0x33c]
mov ecx, dword [ebp - 0x344]
mov dword [ecx + 0x33c], eax
jmp 0x30040edc
mov dword [ebp - 0x344], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x2c], 0
je 0x30041069
mov dword [ebp - 0x300], 2
jmp 0x30041073
mov dword [ebp - 0x300], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x340], ecx
mov edx, dword [ebp + 0xc]
add edx, 0x4c
cmp dword [ebp - 0x340], edx
je 0x300411ee
mov eax, dword [ebp - 0x340]
sub eax, 0x9c
mov dword [ebp - 0x348], eax
mov ecx, dword [ebp - 0x340]
mov edx, dword [ecx]
mov dword [ebp - 0x340], edx
mov eax, dword [ebp - 0x348]
mov ecx, dword [eax]
mov dword [ebp - 0x2fc], ecx
mov edx, dword [ebp - 0x348]
mov eax, dword [edx + 4]
mov dword [ebp - 0x2f8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x48]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0x2cc
jbe 0x300410e6
mov dword [ebp - 0x28], 0x2cc
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x348]
mov edx, dword [ecx + 0x64]
push edx
lea eax, [ebp - 0x2f4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x348]
mov edx, dword [ecx + 0x70]
mov dword [ebp - 0x24], edx
mov eax, dword [ecx + 0x74]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x348]
mov edx, dword [ecx + 0x78]
mov dword [ebp - 0x1c], edx
mov eax, dword [ecx + 0x7c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x348]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x14], edx
mov eax, dword [ecx + 0x84]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x348]
mov edx, dword [ecx + 0x88]
xor eax, eax
mov ecx, dword [ebp - 0x348]
add edx, dword [ecx + 0x80]
mov ecx, dword [ecx + 0x84]
adc ecx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x348]
mov eax, dword [edx + 0x98]
mov dword [ebp - 0x33c], eax
lea ecx, [ebp - 0x33c]
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]
mov eax, dword [edx + 0x1c]
call eax
test eax, eax
jne 0x300411cb
mov ecx, dword [ebp - 0x348]
mov edx, dword [ecx]
push edx
push 0x30006680
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, 0x10
mov eax, 0x80004004
jmp 0x300412fe
mov eax, dword [ebp - 0x348]
mov ecx, dword [eax + 0x98]
and ecx, dword [ebp - 0x33c]
mov edx, dword [ebp - 0x348]
mov dword [edx + 0x98], ecx
jmp 0x3004107f
mov dword [ebp - 0x348], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
and ecx, 2
je 0x3004120a
xor eax, eax
jmp 0x300412fe
mov dword [ebp - 0x300], 5
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0
lea edx, [ebp - 0x33c]
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]
mov ecx, dword [eax + 0x1c]
call ecx
test eax, eax
je 0x30041284
cmp dword [ebp - 0x334], 0
jne 0x3004125e
jmp 0x30041284
mov edx, dword [ebp - 0x334]
push edx
mov eax, dword [ebp - 0x338]
push eax
mov ecx, dword [ebp - 0x33c]
push ecx
push 0xc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.3004628c
jmp 0x30041214
mov dword [ebp - 0x300], 9
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0
lea ecx, [ebp - 0x33c]
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]
mov eax, dword [edx + 0x1c]
call eax
test eax, eax
je 0x300412fc
cmp dword [ebp - 0x334], 0
jne 0x300412d8
jmp 0x300412fc
mov ecx, dword [ebp - 0x334]
push ecx
mov edx, dword [ebp - 0x338]
push edx
mov eax, dword [ebp - 0x33c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.300465a1
jmp 0x3004128e
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8