Function at 0x401dc0
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x51c
mov eax, dword [0x42c004]
xor eax, esp
mov dword [esp + 0x518], eax
mov edx, dword [ebp + 0x10]
mov ecx, edx
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
lea esi, [ecx + 1]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xf
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401e00
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00403340
push 0xb0
lea eax, [esp + 0x74]
mov dword [esp + 0x38], 0
push 0
push eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.00406330
add esp, 4
lea eax, [esp + 0x18]
lea ecx, [esp + 0x78]
push eax
call fcn.004029f0
push ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x74]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0xf
call fcn.00403a40
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x401ec7
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x40]
push ecx
cmp eax, dword [esp + 0x40]
je 0x401ea0
mov ecx, eax
call fcn.00402dc0
add dword [esp + 0x38], 0x18
jmp 0x401eaa
push eax
lea ecx, [esp + 0x3c]
call fcn.00403640
push ecx
lea edx, [esp + 0x44]
lea ecx, [esp + 0x74]
call fcn.00403a40
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x401e83
mov edx, dword [esp + 0x54]
cmp edx, 0x10
jb 0x401efd
mov ecx, dword [esp + 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401ef3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4020c8
push edx
push ecx
call fcn.004041b7
add esp, 8
lea ecx, [esp + 0x70]
call fcn.00401cf0
mov edx, dword [esp + 0x24]
cmp edx, 0x10
jb 0x401f3c
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401f32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4020e1
push edx
push ecx
call fcn.004041b7
add esp, 8
mov ecx, dword [esp + 0x38]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x34]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jae 0x401f64
or esi, 0xffffffff
jmp 0x4020a6
push esi
lea ecx, [esp + 0x5c]
call fcn.00402dc0
call fcn.0040a2e9
cmp dword [esp + 0x6c], 0x10
lea esi, [esp + 0x58]
mov edi, eax
lea eax, [esp + 0x30]
cmovae esi, dword [esp + 0x58]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.0040af2f
add esp, 0xc
mov ebx, eax
mov dword [esp + 0xc], ebx
cmp esi, dword [esp + 0x30]
je 0x4020cd
cmp dword [edi], 0x22
je 0x4020d7
push 0x400
lea eax, [esp + 0x124]
push 0
push eax
call fcn.00406330
add esp, 0xc
lea eax, [esp + 0x120]
push ebx
push str.0x_08x
push eax
call fcn.00403600
add esp, 0xc
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [sym.imp.USER32.dll_FindWindowExA]
mov ebx, dword [sym.imp.USER32.dll_FindWindowA]
nop dword [eax]
push str.Program_Manager
push str.Progman
call ebx
test eax, eax
je 0x402030
push 0
push str.SHELLDLL_DefView
push 0
push eax
call edi
test eax, eax
je 0x402030
push 0
push str.SysListView32
push 0
push eax
call edi
test eax, eax
jne 0x402054
xor esi, esi
push 0
push str.WorkerW
push esi
push 0
call edi
mov esi, eax
test esi, esi
je 0x402000
push 0
push str.SHELLDLL_DefView
push 0
push esi
call edi
test eax, eax
je 0x402032
push eax
push 0xfffffffffffffff8
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [esp + 0x6c]
xor esi, esi
cmp edx, 0x10
jb 0x402095
mov ecx, dword [esp + 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40208b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4020e1
push edx
push ecx
call fcn.004041b7
add esp, 8
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], 0xf
mov byte [esp + 0x58], 0
lea ecx, [esp + 0x34]
call fcn.00402cd0
mov ecx, dword [esp + 0x524]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004041a9
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040a204
push str.invalid_stoll_argument
call fcn.0040503b
push str.stoll_argument_out_of_range
call fcn.0040507b
call fcn.0040a204
int3