Function at 0x405fc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41aa48
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x42400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 0xc24]
mov eax, dword [edi + 0x10]
inc edx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x1c], edx
cmp edx, eax
jae 0x4061cc
mov byte [ebp - 0xd], 0
mov ecx, eax
mov dword [edi + 0xc24], edx
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x14]
sub eax, esi
sar eax, 2
cmp eax, edx
jbe 0x406207
mov esi, dword [esi + edx*4]
mov eax, dword [edi + 0xc]
push 0x800
push 0
mov dword [edi + 0xc28], 0
lea ebx, [eax + esi*2]
mov dword [edi + 0x20], 0
lea eax, [edi + 0xc2c]
mov dword [ebp - 0x14], ebx
push eax
mov dword [ebp - 0x20], eax
call fcn.00409df0
push 0xc00
lea eax, [edi + 0x24]
push 0
push eax
call fcn.00409df0
mov ecx, dword [edi + 0xc24]
add esp, 0x18
inc ecx
cmp ecx, dword [edi + 0x10]
jae 0x40608c
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
sub eax, edx
sar eax, 2
cmp eax, ecx
jbe 0x406207
mov eax, dword [edx + ecx*4]
jmp 0x40608f
mov eax, dword [edi + 8]
sub eax, esi
mov dword [edi + 0xc28], eax
cmp eax, 0x400
jb 0x40610b
call fcn.004012f0
mov ecx, eax
test ecx, ecx
je 0x40620c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov eax, dword [edi + 0xc24]
inc eax
mov dword [edi + 0xc28], 0x3ff
push eax
lea eax, [ebp - 0x18]
push str._CTextLine::SetLine__d
push eax
call fcn.00404ee0
mov esi, dword [ebp - 0x18]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40610b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0xc28]
xor esi, esi
lea eax, [ecx - 1]
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x406150
nop dword [eax]
push 2
push ebx
push 0x421104
call fcn.0040e316
add esp, 0xc
test eax, eax
je 0x406145
inc esi
add ebx, 2
cmp esi, dword [ebp - 0x18]
jl 0x406120
mov ecx, dword [edi + 0xc28]
jmp 0x40614d
mov dword [edi + 0xc28], esi
mov ecx, esi
mov ebx, dword [ebp - 0x14]
xor eax, eax
test ecx, ecx
jle 0x40617b
mov edx, 0xa
nop dword [eax + eax]
cmp dx, word [ebx + eax*2]
je 0x406173
inc eax
cmp eax, ecx
jl 0x406160
mov ecx, dword [edi + 0xc28]
jmp 0x40617b
mov dword [edi + 0xc28], eax
mov ecx, eax
lea eax, [ecx - 1]
xor esi, esi
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x4061b4
push 2
push ebx
push 0x42110c
call fcn.0040e316
add esp, 0xc
test eax, eax
je 0x4061ac
inc esi
add ebx, 2
cmp esi, dword [ebp - 0x18]
jl 0x406187
mov ecx, dword [edi + 0xc28]
jmp 0x4061b4
mov dword [edi + 0xc28], esi
mov ecx, esi
test ecx, ecx
jne 0x4061e1
mov edx, dword [ebp - 0x1c]
mov eax, dword [edi + 0x10]
inc edx
mov dword [ebp - 0x1c], edx
mov ecx, eax
cmp edx, eax
jb 0x406009
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx + ecx]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call fcn.0040b650
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00406350
push 0x80004005
call fcn.00405840
int3