Function at 0x401a70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6aeb
mov eax, dword fs:[0]
push eax
mov eax, 0x20a0
call fcn.004939a0
mov eax, dword [0x50545c]
xor eax, ebp
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0
jne 0x401ab1
jmp 0x401d8e
lea eax, [ebp + 0x10]
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov word [ebp - 0x2044], cx
push 0x2000
push 0
lea edx, [ebp - 0x2042]
push edx
call fcn.004931a0
add esp, 0xc
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x1000
lea edx, [ebp - 0x2044]
push edx
call fcn.00493802
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0
push 0
call fcn.004935db
add esp, 4
mov dword [ebp - 0x2050], eax
mov dword [ebp - 0x204c], edx
mov eax, dword [ebp - 0x2050]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x204c]
mov dword [ebp - 0x34], ecx
push 0x4d11a4
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x38]
call fcn.00406540
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2048]
call fcn.00412230
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2044]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push str._s_______s_r_n
lea edx, [ebp - 0x2048]
push edx
call fcn.00413630
add esp, 0x10
mov dword [ebp - 0x2c], 3
mov eax, dword [ebp - 0x2048]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401b8f
mov dword [ebp - 0x20a0], 0
jmp 0x401c4d
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x401bb7
mov dword [ebp - 0x20a4], 0
jmp 0x401c41
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004939d0
mov dword [ebp - 0x2064], esp
mov edx, dword [ebp - 0x2068]
mov dword [ebp - 0x20a4], edx
cmp dword [ebp - 0x2064], 0
je 0x401be2
cmp dword [ebp - 0x1c], 0
jne 0x401bee
mov dword [ebp - 0x20a4], 0
jmp 0x401c41
mov eax, dword [ebp - 0x2064]
mov byte [eax], 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x2064]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x2060], eax
cmp dword [ebp - 0x2060], 0
jne 0x401c35
mov dword [ebp - 0x20a4], 0
jmp 0x401c41
mov edx, dword [ebp - 0x2064]
mov dword [ebp - 0x20a4], edx
mov eax, dword [ebp - 0x20a4]
mov dword [ebp - 0x20a0], eax
mov ecx, dword [ebp - 0x20a0]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00412440
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0x1c], eax
jne 0x401c84
mov dword [ebp - 0x20a8], 0
jmp 0x401d42
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x401cac
mov dword [ebp - 0x20ac], 0
jmp 0x401d36
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004939d0
mov dword [ebp - 0x2080], esp
mov edx, dword [ebp - 0x2084]
mov dword [ebp - 0x20ac], edx
cmp dword [ebp - 0x2080], 0
je 0x401cd7
cmp dword [ebp - 0x1c], 0
jne 0x401ce3
mov dword [ebp - 0x20ac], 0
jmp 0x401d36
mov eax, dword [ebp - 0x2080]
mov byte [eax], 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x2080]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x207c], eax
cmp dword [ebp - 0x207c], 0
jne 0x401d2a
mov dword [ebp - 0x20ac], 0
jmp 0x401d36
mov edx, dword [ebp - 0x2080]
mov dword [ebp - 0x20ac], edx
mov eax, dword [ebp - 0x20ac]
mov dword [ebp - 0x20a8], eax
mov ecx, dword [ebp - 0x20a8]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040f4d0
push eax
mov ecx, dword [ebp + 8]
call fcn.00401a10
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.0040f510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00412b40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2048]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004129d0
lea esp, [ebp - 0x20b0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret