Function at 0x401999
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 4
mov eax, ebp
add eax, 8
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
push 0
push 4
mov eax, ebp
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
mov eax, 0x406018
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0
pop eax
mov dword [ebp + 8], eax
jmp 0x4019fc
push dword [ebp + 8]
push 1
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
pop eax
mov dword [ebp + 8], eax
push 0xffffffffffffffff
pop eax
cmp eax, 0
je 0x401a44
push dword [ebp + 8]
xor ecx, ecx
add ecx, 4
push dword [ecx + 0x406010]
push 1
pop ebx
pop eax
sub esp, 4
sub eax, ebx
mov dword [esp], eax
pop ebx
pop eax
sub esp, 4
mov ecx, 0xffffffff
cmp eax, ebx
jle 0x401a3b
mov ecx, 0
mov dword [esp], ecx
pop eax
jmp 0x401a7b
push dword [ebp + 8]
xor ecx, ecx
add ecx, 4
push dword [ecx + 0x406010]
push 1
pop ebx
pop eax
sub esp, 4
sub eax, ebx
mov dword [esp], eax
pop ebx
pop eax
sub esp, 4
mov ecx, 0xffffffff
cmp eax, ebx
jge 0x401a77
mov ecx, 0
mov dword [esp], ecx
pop eax
cmp eax, 0
je 0x401c5a
xor ecx, ecx
push dword [ecx + 0x406010]
push dword [ebp + 8]
push 4
pop ebx
pop eax
sub esp, 4
imul eax, ebx
mov dword [esp], eax
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
pop eax
mov eax, dword [eax]
push eax
pop eax
mov dword [ebp + 4], eax
push dword [ebp + 4]
push dword [ebp + 0x10]
pop eax
pop ebx
sub esp, 4
xor eax, ebx
je 0x401ace
mov eax, 0xffffffff
not eax
mov dword [esp], eax
pop eax
cmp eax, 0
je 0x401c55
push dword [ebp + 0x10]
push 4
pop ebx
pop eax
sub esp, 4
sub eax, ebx
mov dword [esp], eax
push 0
push dword [0x406030]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
xor ecx, ecx
add ecx, 4
push dword [ecx + 0x406010]
push 1
pop ebx
pop eax
sub esp, 4
sub eax, ebx
mov dword [esp], eax
xor ecx, ecx
add ecx, 4
pop eax
mov dword [ecx + 0x406010], eax
push dword [ebp + 8]
pop eax
mov dword [ebp + 8], eax
jmp 0x401b51
push dword [ebp + 8]
push 1
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
pop eax
mov dword [ebp + 8], eax
push 0xffffffffffffffff
pop eax
cmp eax, 0
je 0x401b99
push dword [ebp + 8]
xor ecx, ecx
add ecx, 4
push dword [ecx + 0x406010]
push 1
pop ebx
pop eax
sub esp, 4
sub eax, ebx
mov dword [esp], eax
pop ebx
pop eax
sub esp, 4
mov ecx, 0xffffffff
cmp eax, ebx
jle 0x401b90
mov ecx, 0
mov dword [esp], ecx
pop eax
jmp 0x401bd0
push dword [ebp + 8]
xor ecx, ecx
add ecx, 4
push dword [ecx + 0x406010]
push 1
pop ebx
pop eax
sub esp, 4
sub eax, ebx
mov dword [esp], eax
pop ebx
pop eax
sub esp, 4
mov ecx, 0xffffffff
cmp eax, ebx
jge 0x401bcc
mov ecx, 0
mov dword [esp], ecx
pop eax
cmp eax, 0
je 0x401c44
xor ecx, ecx
push dword [ecx + 0x406010]
push dword [ebp + 8]
mov eax, 4
push eax
pop ebx
pop eax
sub esp, 4
imul eax, ebx
mov dword [esp], eax
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
xor ecx, ecx
push dword [ecx + 0x406010]
push dword [ebp + 8]
push 1
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
mov eax, 4
push eax
pop ebx
pop eax
sub esp, 4
imul eax, ebx
mov dword [esp], eax
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
pop eax
mov eax, dword [eax]
push eax
pop ebx
pop eax
mov dword [eax], ebx
jmp 0x401b38
mov eax, 0x406018
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
jmp 0x401c81
jmp 0x4019e3
mov eax, 0x406018
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push dword [ebp + 0x10]
pop eax
cmp eax, 0
je 0x401c81
push 0x40501f
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
add esp, 8
ret 4