Function at 0x406080
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a613
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x618190]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [edi + 8]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], eax
test esi, esi
js 0x4064ee
cmp esi, 0xa
jge 0x4064ee
mov ecx, dword [0x627df8]
mov eax, esi
shr eax, 5
lea edx, [ecx + eax*4]
mov ecx, esi
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [edx], eax
je 0x4064ee
lea eax, [esi - 1]
cmp eax, 8
ja 0x40611d
mov eax, dword [0x627dec]
lea ecx, [esi + esi*2]
lea ebx, [eax + ecx*8]
jmp 0x406123
mov ebx, dword [0x627dec]
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0xc4], ebx
jb 0x406137
mov ebx, dword [ebx]
mov dword [ebp - 0xc4], ebx
push dword [edi]
lea ecx, [ebp - 0x44]
call fcn.0041fbb0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
call fcn.00406d60
lea eax, [ebp - 0x2c]
push eax
call fcn.00406f00
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
mov esi, dword [ebp - 0xc0]
push 0x5e9700
push esi
mov byte [ebp - 4], 2
call fcn.005528e0
add esp, 8
test eax, eax
je 0x4061ab
push esi
lea ecx, [ebp - 0x5c]
call fcn.00414510
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00402dd0
cmp dword [ebp - 0x48], 0x10
lea esi, [ebp - 0x5c]
cmovae esi, dword [ebp - 0x5c]
mov dword [ebp - 0xc0], esi
lea ecx, [ebp - 0xbc]
call fcn.004020c0
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 3
push eax
call fcn.004138d0
push ecx
lea ecx, [ebp - 0xbc]
call fcn.004024f0
mov dword [ebp - 0xc8], eax
mov edi, 0x400
xor ebx, ebx
nop
push edi
call fcn.00553420
mov esi, eax
add esp, 4
test esi, esi
je 0x406320
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0xd0], 0
cmovae edx, dword [ebp - 0x2c]
mov eax, 0x627edc
cmp dword [ebp - 0x30], 0x10
push edx
push dword [ebp - 0xc4]
cmovae ecx, dword [ebp - 0x44]
cmp dword [0x627ef0], 0x10
push ecx
cmovae eax, dword [0x627edc]
push eax
push dword [ebp - 0xc8]
push str.__s____s___s:Level__s:_s
push edi
push esi
call fcn.004046e0
add esp, 0x20
cmp edi, 0x7fffffff
ja 0x406268
lea eax, [ebp - 0xd0]
mov edx, edi
push eax
mov ecx, esi
call fcn.00404750
test eax, eax
js 0x406268
mov ecx, dword [ebp - 0xd0]
jmp 0x40626a
xor ecx, ecx
push dword [ebp - 0xe0]
mov eax, edi
push dword [ebp - 0xc0]
sub eax, ecx
push eax
lea eax, [ecx + esi]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00413450
test eax, eax
jns 0x40632b
cmp eax, 0xfffffffe
je 0x4062b5
push esi
call fcn.005534b2
inc ebx
add esp, 4
xor esi, esi
add edi, 0x400
cmp ebx, 0xa
jl 0x4061e0
jmp 0x40632b
mov eax, dword [0x627dec]
add eax, 0x78
mov dword [ebp - 0xc0], eax
cmp dword [eax + 0x14], 0x10
jb 0x4062d1
mov eax, dword [eax]
mov dword [ebp - 0xc0], eax
push dword [ebp - 0xd4]
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
mov eax, 0x627edc
cmovae edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 0x10
push edx
push dword [ebp - 0xc0]
cmovae ecx, dword [ebp - 0x44]
cmp dword [0x627ef0], 0x10
push ecx
cmovae eax, dword [0x627edc]
push eax
push dword [ebp - 0xc8]
push str.__s____s___s:Level__s:_s_tExceptionCode0x_X._n
push edi
push esi
call fcn.004046e0
add esp, 0x24
jmp 0x40632b
push str.DebugLog2:_ERROR_malloc_error______n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp ebx, 0xa
jne 0x40639f
mov edi, 0x400
push edi
call fcn.00553420
mov esi, eax
add esp, 4
test esi, esi
je 0x406473
mov edx, dword [0x627dec]
add edx, 0x78
cmp dword [edx + 0x14], 0x10
jb 0x406359
mov edx, dword [edx]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x44]
mov ebx, 0x627edc
cmovae ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 0x10
push ecx
cmovae eax, dword [ebp - 0x44]
cmp dword [0x627ef0], 0x10
push edx
cmovae ebx, dword [0x627edc]
push eax
push ebx
push dword [ebp - 0xc8]
push str.__s____s___s:Level__s:_s_tMemory_over_10K._n
push 0x400
push esi
call fcn.004046e0
add esp, 0x20
test esi, esi
je 0x406473
mov ebx, dword [ebp + 0x10]
test bl, 1
je 0x4063b6
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 2
je 0x40646a
mov dword [ebp - 0xcc], 0
cmp edi, 0x7fffffff
ja 0x4063ed
lea eax, [ebp - 0xcc]
mov edx, edi
push eax
mov ecx, esi
call fcn.00404750
test eax, eax
js 0x4063ed
mov eax, dword [ebp - 0xcc]
jmp 0x4063ef
xor eax, eax
cmp byte [eax + esi - 1], 0xa
lea ecx, [eax + esi]
lea edx, [eax + 1]
je 0x406414
cmp edx, edi
ja 0x406405
mov byte [ecx], 0xa
mov eax, edx
lea ecx, [eax + 1]
cmp ecx, edi
ja 0x40641d
mov byte [eax + esi], 0xa
mov eax, ecx
jmp 0x40641d
cmp edx, edi
ja 0x40641d
mov byte [ecx], 0xa
mov eax, edx
mov edx, dword [ebp - 0xdc]
cmp dword [edx + 4], 2
jne 0x406442
mov ecx, dword [edx + 8]
cmp ecx, 1
je 0x40643a
cmp ecx, 2
je 0x40643a
xor ecx, ecx
jmp 0x40643f
mov ecx, 1
mov dword [edx + 4], ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x4064e0
push eax
push esi
push dword [ebp - 0xd8]
push ecx
call fcn.00406fb0
test al, al
jne 0x40646a
push str.CDebugLog::PushLog1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.005534b2
add esp, 4
xor ebx, ebx
lea ecx, [ebp - 0xbc]
test esi, esi
sete bl
call fcn.00402150
cmp dword [ebp - 0x48], 0x10
jb 0x406496
push dword [ebp - 0x5c]
call fcn.0043b833
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jb 0x4064b9
push dword [ebp - 0x2c]
call fcn.0043b833
add esp, 4
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x4064dc
push dword [ebp - 0x44]
call fcn.0043b833
add esp, 4
mov eax, ebx
jmp 0x4064f0
cmp ecx, 1
jne 0x406473
push eax
push esi
call fcn.00406d20
jmp 0x406473
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00550cb3
mov esp, ebp
pop ebp
ret 0x14