Function at 0x406c30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58bff3
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x608190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jl 0x406c73
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0xa
jl 0x406c7a
xor eax, eax
jmp 0x40718c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
lea ecx, [ebp - 0xf0]
push ecx
mov ecx, dword [ebp - 0xc4]
add ecx, 0x398
call fcn.00413c10
mov ecx, eax
call fcn.00415190
movzx edx, al
test edx, edx
jne 0x406cae
xor eax, eax
jmp 0x40718c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
mov ecx, 0x614408
call fcn.00405ed0
mov dword [ebp - 0xcc], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042dc20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0xc4]
call fcn.004079b0
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0xc4]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0042e590
mov byte [ebp - 4], 2
push 0x5d92d0
mov eax, dword [ebp + 0x14]
push eax
call fcn.0042c700
add esp, 8
test eax, eax
je 0x406d47
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00412730
push 0x5d92d4
push 0x5d92d8
lea edx, [ebp - 0x58]
push edx
call fcn.00403200
lea ecx, [ebp - 0x58]
call fcn.0042e430
mov dword [ebp + 0x14], eax
lea ecx, [ebp - 0xb8]
call fcn.004021a0
mov byte [ebp - 4], 3
lea eax, [ebp - 0xb8]
push eax
mov ecx, 0x614354
call fcn.00411d70
push 0
lea ecx, [ebp - 0xb8]
call fcn.004026d0
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xc0], 0x400
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xd0], 0
jmp 0x406da9
mov ecx, dword [ebp - 0xd0]
add ecx, 1
mov dword [ebp - 0xd0], ecx
cmp dword [ebp - 0xd0], 0xa
jge 0x406f45
mov edx, dword [ebp - 0xc0]
push edx
call fcn.0055af0a
add esp, 4
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jne 0x406de4
push str.DebugLog2:_ERROR_malloc_error______n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x406f45
mov dword [ebp - 0xdc], 0
lea ecx, [ebp - 0x40]
call fcn.0042e430
push eax
mov eax, dword [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042e430
push eax
mov ecx, dword [ebp - 0xc4]
add ecx, 0x47c
call fcn.0042e430
push eax
mov ecx, dword [ebp - 0xd4]
push ecx
push str.__s____s___s:Level__s:_s
mov edx, dword [ebp - 0xc0]
push edx
mov eax, dword [ebp - 0xbc]
push eax
call fcn.00405080
add esp, 0x20
lea ecx, [ebp - 0xdc]
push ecx
mov edx, dword [ebp - 0xc0]
push edx
mov eax, dword [ebp - 0xbc]
push eax
call fcn.004050e0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0xc0]
sub eax, dword [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0xbc]
add ecx, dword [ebp - 0xdc]
push ecx
lea edx, [ebp - 0xe8]
push edx
mov ecx, 0x614354
call fcn.00411970
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0
jl 0x406e9c
jmp 0x406f45
cmp dword [ebp - 0xd8], 0xfffffffe
jne 0x406f0d
push 5
mov ecx, 0x614408
call fcn.00405ed0
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0042e430
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042e430
push eax
mov ecx, dword [ebp - 0xc4]
add ecx, 0x47c
call fcn.0042e430
push eax
mov edx, dword [ebp - 0xd4]
push edx
push str.__s____s___s:Level__s:_s_tExceptionCode0x_X._n
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.00405080
add esp, 0x24
jmp 0x406f45
cmp dword [ebp - 0xd8], 0
jge 0x406f40
mov edx, dword [ebp - 0xbc]
push edx
call fcn.0055af9c
add esp, 4
mov dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0xc0]
add eax, 0x400
mov dword [ebp - 0xc0], eax
jmp 0x406d9a
cmp dword [ebp - 0xd0], 0xa
jne 0x406fd9
mov dword [ebp - 0xc0], 0x400
mov ecx, dword [ebp - 0xc0]
push ecx
call fcn.0055af0a
add esp, 4
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
je 0x406fd9
push 5
mov ecx, 0x614408
call fcn.00405ed0
mov dword [ebp - 0xcc], eax
lea ecx, [ebp - 0x40]
call fcn.0042e430
push eax
mov edx, dword [ebp - 0xcc]
push edx
lea ecx, [ebp - 0x28]
call fcn.0042e430
push eax
mov ecx, dword [ebp - 0xc4]
add ecx, 0x47c
call fcn.0042e430
push eax
mov eax, dword [ebp - 0xd4]
push eax
push str.__s____s___s:Level__s:_s_tMemory_over_10K._n
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0xbc]
push edx
call fcn.00405080
add esp, 0x20
cmp dword [ebp - 0xbc], 0
je 0x407125
mov eax, dword [ebp + 0x10]
and eax, 1
je 0x406ffb
mov ecx, dword [ebp - 0xbc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp + 0x10]
and edx, 2
je 0x407116
mov dword [ebp - 0xc8], 0
lea eax, [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0xbc]
push edx
call fcn.004050e0
mov eax, dword [ebp - 0xbc]
add eax, dword [ebp - 0xc8]
movsx ecx, byte [eax - 1]
cmp ecx, 0xa
je 0x407086
push 0xa
lea edx, [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0xbc]
push ecx
mov ecx, dword [ebp - 0xc4]
call fcn.004071b0
push 0xa
lea edx, [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0xbc]
push ecx
mov ecx, dword [ebp - 0xc4]
call fcn.004071b0
jmp 0x4070a8
push 0xa
lea edx, [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0xbc]
push ecx
mov ecx, dword [ebp - 0xc4]
call fcn.004071b0
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 2
jne 0x4070c8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
mov ecx, 0x614408
call fcn.004071f0
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne 0x4070f3
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0xbc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0x614408
call fcn.00407900
jmp 0x407114
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 1
jne 0x407114
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0xbc]
push ecx
mov ecx, 0x614408
call fcn.00407950
jmp 0x407125
mov edx, dword [ebp - 0xbc]
push edx
call fcn.0055af9c
add esp, 4
cmp dword [ebp - 0xbc], 0
je 0x40713a
mov dword [ebp - 0xe0], 0
jmp 0x407144
mov dword [ebp - 0xe0], 1
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.00402230
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0042e450
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0042e450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0042e450
mov eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00558807
mov esp, ebp
pop ebp
ret 0x14