Function at 0x4946b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x93c
mov eax, dword [esp + 0x940]
mov ecx, dword [0x4d9540]
push ebx
push ebp
push esi
push edi
test eax, eax
mov dword [esp + 0x14], ecx
jne 0x494708
mov edx, dword [0x4d9544]
lea eax, [ecx - 0xc]
cmp eax, edx
je 0x4946fa
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4946fa
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
push ecx
call fcn.004c5432
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.004a9490
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 0x4948a9
mov eax, dword [0x4e3a2c]
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 0x4947ab
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.00401630
mov eax, dword [0x4d9540]
mov ecx, str._n__n_
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x494809
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x494809
push esi
lea ecx, [esp + 0x20]
call fcn.004012f0
test eax, eax
je 0x494809
mov edx, dword [esp + 0x1c]
inc esi
push esi
push str._n__n_
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [0x4d9540]
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.004017b0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
call fcn.00401200
lea ecx, [esp + 0x18]
call fcn.004014c0
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x49487a
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x49487a
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4948a5
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x4948a5
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
xor ecx, ecx
cmp edx, 1
jg 0x4948bd
mov edx, dword [eax - 4]
test edx, edx
jge 0x4948fe
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x4948c6
mov ecx, ebp
push ecx
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x4948fe
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.00401350
mov eax, dword [esp + 0x14]
push 0x5c
push eax
call fcn.004c609a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esp, 8
test eax, eax
je 0x4949ed
lea esi, [eax + 2]
mov eax, dword [0x4d9540]
test esi, esi
mov dword [esp + 0x10], eax
je 0x494974
mov edx, esi
shr edx, 0x10
jne 0x494940
and esi, 0xffff
lea ecx, [esp + 0x10]
push esi
call fcn.0040ff70
jmp 0x494970
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x494970
push edi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x494970
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 0x4949c2
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x494990
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x494997
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4949a7
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401630
jmp 0x4949be
lea ecx, [esp + 0x14]
call fcn.0040e950
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 [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4949ed
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4949ed
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov esi, dword [0x4ed59c]
or ebp, 0xffffffff
test esi, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x24], ebp
je 0x494e4f
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x4ed590
call fcn.0047a820
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 0x494a3c
push eax
mov dword [esp + 0x20], ecx
call ebx
jmp 0x494a4f
mov eax, dword [0x4d9540]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.004016e0
lea ecx, [esp + 0x1c]
call fcn.00401380
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 0x494e46
mov edi, dword [esp + 0x958]
mov esi, dword [esp + 0x950]
jmp 0x494a91
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 0x494aab
mov dword [esp + 0x28], eax
add eax, 0xfffffff4
push eax
call ebx
jmp 0x494ac2
mov edx, dword [0x4d9540]
mov dword [esp + 0x28], edx
mov eax, dword [ecx + 0x10]
push eax
lea ecx, [esp + 0x2c]
call fcn.004016e0
lea ecx, [esp + 0x28]
call fcn.00401380
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
push 0
push 0x4df284
lea ecx, [esp + 0x30]
call fcn.00401a30
test eax, eax
jne 0x494cdb
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.00401a30
test eax, eax
jne 0x494ba8
test dword [esp + 0x18], 0x20000000
je 0x494df8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
cmp eax, ebp
jne 0x494b44
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x24], edx
test edi, edi
je 0x494df8
cmp dword [esp + 0x2c], ebp
jne 0x494b67
mov eax, dword [ecx + 0x1c]
cmp eax, ebp
je 0x494b67
test eax, eax
mov dword [esp + 0x2c], eax
je 0x494b67
mov eax, dword [edi]
or al, 1
mov dword [edi], eax
cmp dword [esp + 0x30], ebp
jne 0x494b82
mov eax, dword [ecx + 0x24]
cmp eax, ebp
je 0x494b82
test eax, eax
mov dword [esp + 0x30], eax
je 0x494b82
mov eax, dword [edi]
or al, 0x10
mov dword [edi], eax
cmp dword [esp + 0x34], ebp
jne 0x494c71
mov eax, dword [ecx + 0x20]
cmp eax, ebp
je 0x494c71
test eax, eax
mov dword [esp + 0x34], eax
je 0x494c71
jmp 0x494c6a
push 0
push 0x4df288
lea ecx, [esp + 0x30]
call fcn.00401a30
test eax, eax
jne 0x494c9e
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], 3
jle 0x494df8
test dword [esp + 0x18], 0x20000000
jne 0x494df8
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 0x494df8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
cmp eax, ebp
jne 0x494c17
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x24], edx
test edi, edi
je 0x494df8
cmp dword [esp + 0x2c], ebp
jne 0x494c3a
mov eax, dword [ecx + 0x1c]
cmp eax, ebp
je 0x494c3a
test eax, eax
mov dword [esp + 0x2c], eax
je 0x494c3a
mov eax, dword [edi]
or al, 1
mov dword [edi], eax
cmp dword [esp + 0x30], ebp
jne 0x494c55
mov eax, dword [ecx + 0x24]
cmp eax, ebp
je 0x494c55
test eax, eax
mov dword [esp + 0x30], eax
je 0x494c55
mov eax, dword [edi]
or al, 0x10
mov dword [edi], eax
cmp dword [esp + 0x34], ebp
jne 0x494c71
mov eax, dword [ecx + 0x20]
cmp eax, ebp
je 0x494c71
test eax, eax
mov dword [esp + 0x34], eax
je 0x494c71
mov eax, dword [edi]
or ah, 1
mov dword [edi], eax
cmp dword [esp + 0x20], ebp
jne 0x494df8
mov eax, dword [ecx + 0x28]
cmp eax, ebp
je 0x494df8
test eax, eax
mov dword [esp + 0x20], eax
je 0x494df8
mov eax, dword [edi]
or ah, 0x10
mov dword [edi], eax
jmp 0x494df8
test dword [esp + 0x18], 0x88000
je 0x494df8
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.00494610
add esp, 0x1c
jmp 0x494df8
mov eax, dword [0x4d9540]
mov ecx, 0x4de490
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x494d26
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x494d26
push esi
lea ecx, [esp + 0x1c]
call fcn.004012f0
test eax, eax
je 0x494d26
mov edx, dword [esp + 0x18]
inc esi
push esi
push 0x4de490
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x18]
push ebp
call fcn.00401970
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ecx
mov eax, dword [eax + 0x14]
push eax
call fcn.004c5509
mov ecx, dword [0x4d9544]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x18]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x494d6f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x494d6f
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
test bl, bl
je 0x494d97
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 0x494de9
push 1
lea ecx, [esp + 0x14]
call fcn.00495800
push ecx
add eax, 8
mov ecx, esp
push eax
call fcn.00401200
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
push edx
call fcn.00401200
call fcn.004b4f50
add esp, 0xc
test eax, eax
je 0x494df1
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.00494610
add esp, 0x1c
mov esi, dword [esp + 0x950]
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x494e18
cmp dword [esp + 0x2c], ebp
je 0x494e18
cmp dword [esp + 0x30], ebp
je 0x494e18
cmp dword [esp + 0x34], ebp
je 0x494e18
cmp dword [esp + 0x20], ebp
jne 0x494e69
lea ecx, [esp + 0x28]
call fcn.004014c0
lea eax, [esp + 0x40]
push 0
push eax
lea ecx, [esp + 0x18]
call fcn.00495810
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x494a8b
lea ecx, [esp + 0x1c]
call fcn.004014c0
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.004014c0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x93c
ret
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.004014c0
lea ecx, [esp + 0x1c]
call fcn.004014c0
jmp 0x494e53