Function at 0x4cc090
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x93c
mov eax, dword [esp + 0x940]
mov ecx, dword [0x546560]
push ebx
push ebp
push esi
push edi
test eax, eax
mov dword [esp + 0x14], ecx
jne 0x4cc0e8
mov edx, dword [0x546564]
lea eax, [ecx - 0xc]
cmp eax, edx
je 0x4cc0da
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4cc0da
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
push ecx
call fcn.00531732
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.0050c1d0
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 0x4cc289
mov eax, dword [0x553d9c]
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 0x4cc18b
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 [0x546560]
mov ecx, 0x5466c0
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x4cc1e9
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4cc1e9
push esi
lea ecx, [esp + 0x20]
call fcn.00405530
test eax, eax
je 0x4cc1e9
mov edx, dword [esp + 0x1c]
inc esi
push esi
push 0x5466c0
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x546560]
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4cc25a
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x4cc25a
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cc285
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x4cc285
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
xor ecx, ecx
cmp edx, 1
jg 0x4cc29d
mov edx, dword [eax - 4]
test edx, edx
jge 0x4cc2de
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x4cc2a6
mov ecx, ebp
push ecx
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x4cc2de
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.0053239a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esp, 8
test eax, eax
je 0x4cc3cd
lea esi, [eax + 2]
mov eax, dword [0x546560]
test esi, esi
mov dword [esp + 0x10], eax
je 0x4cc354
mov edx, esi
shr edx, 0x10
jne 0x4cc320
and esi, 0xffff
lea ecx, [esp + 0x10]
push esi
call fcn.00413c90
jmp 0x4cc350
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x4cc350
push edi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4cc350
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 0x4cc3a2
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4cc370
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4cc377
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4cc387
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405870
jmp 0x4cc39e
lea ecx, [esp + 0x14]
call fcn.00412670
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4cc3cd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4cc3cd
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov esi, dword [0x55d89c]
or ebp, 0xffffffff
test esi, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x24], ebp
je 0x4cc82f
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x55d890
call fcn.0043d590
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 0x4cc41c
push eax
mov dword [esp + 0x20], ecx
call ebx
jmp 0x4cc42f
mov eax, dword [0x546560]
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 0x4cc826
mov edi, dword [esp + 0x958]
mov esi, dword [esp + 0x950]
jmp 0x4cc471
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 0x4cc48b
mov dword [esp + 0x28], eax
add eax, 0xfffffff4
push eax
call ebx
jmp 0x4cc4a2
mov edx, dword [0x546560]
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 0x54e480
lea ecx, [esp + 0x30]
call fcn.00405c70
test eax, eax
jne 0x4cc6bb
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 0x4cc588
test dword [esp + 0x18], 0x20000000
je 0x4cc7d8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
cmp eax, ebp
jne 0x4cc524
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x24], edx
test edi, edi
je 0x4cc7d8
cmp dword [esp + 0x2c], ebp
jne 0x4cc547
mov eax, dword [ecx + 0x1c]
cmp eax, ebp
je 0x4cc547
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4cc547
mov eax, dword [edi]
or al, 1
mov dword [edi], eax
cmp dword [esp + 0x30], ebp
jne 0x4cc562
mov eax, dword [ecx + 0x24]
cmp eax, ebp
je 0x4cc562
test eax, eax
mov dword [esp + 0x30], eax
je 0x4cc562
mov eax, dword [edi]
or al, 0x10
mov dword [edi], eax
cmp dword [esp + 0x34], ebp
jne 0x4cc651
mov eax, dword [ecx + 0x20]
cmp eax, ebp
je 0x4cc651
test eax, eax
mov dword [esp + 0x34], eax
je 0x4cc651
jmp 0x4cc64a
push 0
push 0x54e490
lea ecx, [esp + 0x30]
call fcn.00405c70
test eax, eax
jne 0x4cc67e
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], 3
jle 0x4cc7d8
test dword [esp + 0x18], 0x20000000
jne 0x4cc7d8
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 0x4cc7d8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
cmp eax, ebp
jne 0x4cc5f7
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x24], edx
test edi, edi
je 0x4cc7d8
cmp dword [esp + 0x2c], ebp
jne 0x4cc61a
mov eax, dword [ecx + 0x1c]
cmp eax, ebp
je 0x4cc61a
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4cc61a
mov eax, dword [edi]
or al, 1
mov dword [edi], eax
cmp dword [esp + 0x30], ebp
jne 0x4cc635
mov eax, dword [ecx + 0x24]
cmp eax, ebp
je 0x4cc635
test eax, eax
mov dword [esp + 0x30], eax
je 0x4cc635
mov eax, dword [edi]
or al, 0x10
mov dword [edi], eax
cmp dword [esp + 0x34], ebp
jne 0x4cc651
mov eax, dword [ecx + 0x20]
cmp eax, ebp
je 0x4cc651
test eax, eax
mov dword [esp + 0x34], eax
je 0x4cc651
mov eax, dword [edi]
or ah, 1
mov dword [edi], eax
cmp dword [esp + 0x20], ebp
jne 0x4cc7d8
mov eax, dword [ecx + 0x28]
cmp eax, ebp
je 0x4cc7d8
test eax, eax
mov dword [esp + 0x20], eax
je 0x4cc7d8
mov eax, dword [edi]
or ah, 0x10
mov dword [edi], eax
jmp 0x4cc7d8
test dword [esp + 0x18], 0x88000
je 0x4cc7d8
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.004cb370
add esp, 0x1c
jmp 0x4cc7d8
mov eax, dword [0x546560]
mov ecx, 0x54d3f8
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x4cc706
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4cc706
push esi
lea ecx, [esp + 0x1c]
call fcn.00405530
test eax, eax
je 0x4cc706
mov edx, dword [esp + 0x18]
inc esi
push esi
push 0x54d3f8
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.00531809
mov ecx, dword [0x546564]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x18]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4cc74f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4cc74f
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
test bl, bl
je 0x4cc777
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 0x4cc7c9
push 1
lea ecx, [esp + 0x14]
call fcn.004cd670
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.00518ae0
add esp, 0xc
test eax, eax
je 0x4cc7d1
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.004cb370
add esp, 0x1c
mov esi, dword [esp + 0x950]
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x4cc7f8
cmp dword [esp + 0x2c], ebp
je 0x4cc7f8
cmp dword [esp + 0x30], ebp
je 0x4cc7f8
cmp dword [esp + 0x34], ebp
je 0x4cc7f8
cmp dword [esp + 0x20], ebp
jne 0x4cc849
lea ecx, [esp + 0x28]
call fcn.00405700
lea eax, [esp + 0x40]
push 0
push eax
lea ecx, [esp + 0x18]
call fcn.004cd680
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x4cc46b
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 0x4cc833