Function at 0x30041c64
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 0x30041c88
push 0x3000660c
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 0x30041cac
xor eax, eax
jmp 0x300420fb
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 0x30041e47
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 0x30041e24
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 0x300067c4
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 0x300420fb
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 0x30041cd9
mov dword [ebp - 0x344], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x2c], 0
je 0x30041e66
mov dword [ebp - 0x300], 2
jmp 0x30041e70
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 0x30041feb
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 0x30041ee3
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 0x30041fc8
mov ecx, dword [ebp - 0x348]
mov edx, dword [ecx]
push edx
push 0x3000679c
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 0x300420fb
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 0x30041e7c
mov dword [ebp - 0x348], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
and ecx, 2
je 0x30042007
xor eax, eax
jmp 0x300420fb
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 0x30042081
cmp dword [ebp - 0x334], 0
jne 0x3004205b
jmp 0x30042081
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.30047089
jmp 0x30042011
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 0x300420f9
cmp dword [ebp - 0x334], 0
jne 0x300420d5
jmp 0x300420f9
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.3004739e
jmp 0x3004208b
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8