Function at 0x4cd0b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x93c
mov eax, dword [esp + 0x940]
mov ecx, dword [0x547570]
push ebx
push ebp
push esi
push edi
test eax, eax
mov dword [esp + 0x14], ecx
jne 0x4cd108
mov edx, dword [0x547574]
lea eax, [ecx - 0xc]
cmp eax, edx
je 0x4cd0fa
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4cd0fa
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
push ecx
call fcn.00532222
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x93c
ret
mov edx, dword [eax]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x958]
push 0x8001
push ecx
push eax
call dword [edx + 0x2c]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, 0x42
sub esp, 0x108
lea esi, [esp + 0x154]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00517400
mov eax, dword [esp + 0x124]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esp, 0x110
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4cd2a9
mov eax, dword [0x554e0c]
mov edx, dword [esp + 0x954]
mov dword [esp + 0x14c], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x150]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14c]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [esp + 0x14c]
test eax, eax
je 0x4cd1ab
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x14c]
lea ecx, [esp + 0x14]
push edx
push eax
call fcn.00405870
mov eax, dword [0x547570]
mov ecx, 0x5476d0
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x4cd209
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4cd209
push esi
lea ecx, [esp + 0x20]
call fcn.00405530
test eax, eax
je 0x4cd209
mov edx, dword [esp + 0x1c]
inc esi
push esi
push 0x5476d0
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax - 8]
mov eax, dword [esp + 0x18]
push ecx
push eax
mov edx, dword [eax - 8]
lea ecx, [esp + 0x24]
push edx
call fcn.004059f0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
call fcn.00405440
lea ecx, [esp + 0x18]
call fcn.00405700
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4cd27a
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x4cd27a
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cd2a5
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x4cd2a5
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
xor ecx, ecx
cmp edx, 1
jg 0x4cd2bd
mov edx, dword [eax - 4]
test edx, edx
jge 0x4cd2fe
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x4cd2c6
mov ecx, ebp
push ecx
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x4cd2fe
mov edi, dword [esp + 0x14]
lea ecx, [ebp + ebp + 2]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [ecx - 8], ebp
call fcn.00405590
mov eax, dword [esp + 0x14]
push 0x5c
push eax
call fcn.00532e8a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esp, 8
test eax, eax
je 0x4cd3ed
lea esi, [eax + 2]
mov eax, dword [0x547570]
test esi, esi
mov dword [esp + 0x10], eax
je 0x4cd374
mov edx, esi
shr edx, 0x10
jne 0x4cd340
and esi, 0xffff
lea ecx, [esp + 0x10]
push esi
call fcn.00413ae0
jmp 0x4cd370
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x4cd370
push edi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4cd370
lea ecx, [edi + edi]
mov edi, dword [esp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x4cd3c2
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4cd390
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4cd397
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4cd3a7
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405870
jmp 0x4cd3be
lea ecx, [esp + 0x14]
call fcn.004124c0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4cd3ed
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4cd3ed
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov esi, dword [0x55e954]
or ebp, 0xffffffff
test esi, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x24], ebp
je 0x4cd84f
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x55e948
call fcn.00524430
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], edx
mov dword [esp + 0x38], 0
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
test edx, edx
jl 0x4cd43c
push eax
mov dword [esp + 0x20], ecx
call ebx
jmp 0x4cd44f
mov eax, dword [0x547570]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.00405920
lea ecx, [esp + 0x1c]
call fcn.004055c0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
test esi, esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], ebp
jle 0x4cd846
mov edi, dword [esp + 0x958]
mov esi, dword [esp + 0x950]
jmp 0x4cd491
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax - 0xc]
test edx, edx
jl 0x4cd4ab
mov dword [esp + 0x28], eax
add eax, 0xfffffff4
push eax
call ebx
jmp 0x4cd4c2
mov edx, dword [0x547570]
mov dword [esp + 0x28], edx
mov eax, dword [ecx + 0x10]
push eax
lea ecx, [esp + 0x2c]
call fcn.00405920
lea ecx, [esp + 0x28]
call fcn.004055c0
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
push 0
push 0x54f4f0
lea ecx, [esp + 0x30]
call fcn.00405c70
test eax, eax
jne 0x4cd6db
mov edx, dword [esi]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x954]
push eax
push ecx
push 1
push esi
mov dword [esp + 0x28], 0x20088000
call dword [edx + 0x24]
push 0
push str.DIR
lea ecx, [esp + 0x30]
call fcn.00405c70
test eax, eax
jne 0x4cd5a8
test dword [esp + 0x18], 0x20000000
je 0x4cd7f8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
cmp eax, ebp
jne 0x4cd544
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x24], edx
test edi, edi
je 0x4cd7f8
cmp dword [esp + 0x2c], ebp
jne 0x4cd567
mov eax, dword [ecx + 0x1c]
cmp eax, ebp
je 0x4cd567
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4cd567
mov eax, dword [edi]
or al, 1
mov dword [edi], eax
cmp dword [esp + 0x30], ebp
jne 0x4cd582
mov eax, dword [ecx + 0x24]
cmp eax, ebp
je 0x4cd582
test eax, eax
mov dword [esp + 0x30], eax
je 0x4cd582
mov eax, dword [edi]
or al, 0x10
mov dword [edi], eax
cmp dword [esp + 0x34], ebp
jne 0x4cd671
mov eax, dword [ecx + 0x20]
cmp eax, ebp
je 0x4cd671
test eax, eax
mov dword [esp + 0x34], eax
je 0x4cd671
jmp 0x4cd66a
push 0
push 0x54f500
lea ecx, [esp + 0x30]
call fcn.00405c70
test eax, eax
jne 0x4cd69e
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], 3
jle 0x4cd7f8
test dword [esp + 0x18], 0x20000000
jne 0x4cd7f8
mov ecx, dword [esi]
lea edx, [esp + 0x18]
lea eax, [esp + 0x954]
push edx
push eax
mov ebx, 0x40000
push 1
push esi
mov dword [esp + 0x28], ebx
call dword [ecx + 0x24]
test dword [esp + 0x18], ebx
je 0x4cd7f8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
cmp eax, ebp
jne 0x4cd617
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x24], edx
test edi, edi
je 0x4cd7f8
cmp dword [esp + 0x2c], ebp
jne 0x4cd63a
mov eax, dword [ecx + 0x1c]
cmp eax, ebp
je 0x4cd63a
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4cd63a
mov eax, dword [edi]
or al, 1
mov dword [edi], eax
cmp dword [esp + 0x30], ebp
jne 0x4cd655
mov eax, dword [ecx + 0x24]
cmp eax, ebp
je 0x4cd655
test eax, eax
mov dword [esp + 0x30], eax
je 0x4cd655
mov eax, dword [edi]
or al, 0x10
mov dword [edi], eax
cmp dword [esp + 0x34], ebp
jne 0x4cd671
mov eax, dword [ecx + 0x20]
cmp eax, ebp
je 0x4cd671
test eax, eax
mov dword [esp + 0x34], eax
je 0x4cd671
mov eax, dword [edi]
or ah, 1
mov dword [edi], eax
cmp dword [esp + 0x20], ebp
jne 0x4cd7f8
mov eax, dword [ecx + 0x28]
cmp eax, ebp
je 0x4cd7f8
test eax, eax
mov dword [esp + 0x20], eax
je 0x4cd7f8
mov eax, dword [edi]
or ah, 0x10
mov dword [edi], eax
jmp 0x4cd7f8
test dword [esp + 0x18], 0x88000
je 0x4cd7f8
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x38]
push eax
push ecx
add edx, 0x10
push edi
push edx
call fcn.004cc390
add esp, 0x1c
jmp 0x4cd7f8
mov eax, dword [0x547570]
mov ecx, 0x54e468
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x4cd726
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4cd726
push esi
lea ecx, [esp + 0x1c]
call fcn.00405530
test eax, eax
je 0x4cd726
mov edx, dword [esp + 0x18]
inc esi
push esi
push 0x54e468
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x18]
push ebp
call fcn.00405bb0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ecx
mov eax, dword [eax + 0x14]
push eax
call fcn.005322f9
mov ecx, dword [0x547574]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x18]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4cd76f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4cd76f
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
test bl, bl
je 0x4cd797
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x38]
push ecx
push edx
add eax, 0x10
push edi
push eax
jmp 0x4cd7e9
push 1
lea ecx, [esp + 0x14]
call fcn.004ae270
push ecx
add eax, 8
mov ecx, esp
push eax
call fcn.00405440
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
push edx
call fcn.00405440
call fcn.00519740
add esp, 0xc
test eax, eax
je 0x4cd7f1
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x38]
push eax
push ecx
add edx, 0x10
push edi
push edx
call fcn.004cc390
add esp, 0x1c
mov esi, dword [esp + 0x950]
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x4cd818
cmp dword [esp + 0x2c], ebp
je 0x4cd818
cmp dword [esp + 0x30], ebp
je 0x4cd818
cmp dword [esp + 0x34], ebp
je 0x4cd818
cmp dword [esp + 0x20], ebp
jne 0x4cd869
lea ecx, [esp + 0x28]
call fcn.00405700
lea eax, [esp + 0x40]
push 0
push eax
lea ecx, [esp + 0x18]
call fcn.004ce680
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x4cd48b
lea ecx, [esp + 0x1c]
call fcn.00405700
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.00405700
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x93c
ret
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00405700
lea ecx, [esp + 0x1c]
call fcn.00405700
jmp 0x4cd853