Function at 0x4a84f0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x3f8
mov al, byte [esp + 7]
push ebx
mov ebx, ecx
push ebp
mov cl, byte [esp + 0xf]
push esi
xor esi, esi
mov byte [esp + 0x31], cl
lea ecx, [esp + 0x30]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], esi
mov byte [esp + 0x30], al
mov byte [esp + 0x38], 0
call fcn.004ac190
mov ebp, dword [esp + 0x40c]
cmp ebp, esi
je 0x4a8a18
cmp dword [esp + 0x410], esi
je 0x4a8a18
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ebp]
lea eax, [esp + 0x18]
push edi
push eax
push ecx
push esi
push ebp
call dword [edx + 0x10]
test eax, eax
jl 0x4a8992
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4a8992
lea ecx, [esp + 0x30]
push esi
mov dword [esp + 0x34], esi
mov edx, dword [eax]
push ecx
push 1
push eax
mov dword [esp + 0x28], esi
call dword [edx + 0xc]
test eax, eax
jne 0x4a87e3
jmp 0x4a8587
xor esi, esi
mov edx, dword [esp + 0x414]
mov ecx, 0x3a
xor eax, eax
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x5c], 0x123fa
mov edi, eax
push eax
push edx
mov dword [esp + 0x68], edi
call fcn.004b3170
add esp, 8
mov dword [esp + 0x64], eax
mov eax, dword [ebp]
push ebp
call dword [eax + 4]
lea edx, [esp + 0x28]
lea eax, [esp + 0x4c]
push edx
mov dword [esp + 0x2c], 0x60000000
mov dword [esp + 0x50], edi
mov ecx, dword [ebp]
push eax
push 1
push ebp
mov dword [esp + 0x7c], ebp
call dword [ecx + 0x24]
mov eax, dword [esp + 0x28]
test eax, 0x20000000
je 0x4a876c
test byte [ebx + 0x4c], 0x40
je 0x4a8604
mov esi, 1
jmp 0x4a876c
test eax, 0x2000000
je 0x4a8615
mov esi, 1
jmp 0x4a876c
mov eax, dword [0x4d9540]
mov ecx, 0x400
mov dword [esp + 0x10], eax
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x4a8633
cmp dword [eax - 4], ecx
jge 0x4a8693
mov esi, dword [eax - 8]
cmp esi, ecx
mov dword [esp + 0x20], esi
jle 0x4a8640
mov ecx, esi
push ecx
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x4a8693
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi + 2]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [eax - 8], ecx
mov eax, dword [0x4d9544]
cmp ebx, eax
je 0x4a868f
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a868f
push ebx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x64]
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [esp + 0x10]
call fcn.00401380
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov word [edx + eax*2], 0
call fcn.00401380
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov ecx, dword [esp + 0x10]
push 0x4dfc24
push ecx
call fcn.004c5509
add esp, 8
test eax, eax
je 0x4a8737
mov edx, dword [esp + 0x10]
push 0x4dfc1c
push edx
call fcn.004c5509
add esp, 8
test eax, eax
je 0x4a8737
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4a8737
lea edx, [esp + 0x28]
lea eax, [esp + 0x4c]
push edx
mov dword [esp + 0x2c], SHChangeNotifyDeregister
mov ecx, dword [ebp]
push eax
push 1
push ebp
call dword [ecx + 0x24]
mov esi, dword [esp + 0x28]
shr esi, 0x1f
jmp 0x4a8739
xor esi, esi
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a8768
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a8768
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov ebx, dword [esp + 0x44]
test esi, esi
mov dword [esp + 0x74], 0
je 0x4a8782
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [esp + 0x74], eax
mov ecx, 0x3a
lea esi, [esp + 0x5c]
lea edi, [esp + 0x144]
lea eax, [esp + 0x144]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x234], 0
call fcn.004ab190
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push 0
mov dword [eax + 0xf4], ecx
mov eax, dword [esp + 0x20]
inc ecx
mov edx, dword [eax]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x34]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
je 0x4a8585
xor esi, esi
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4a87f1
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x18], esi
cmp eax, esi
mov ebp, dword [ecx]
jle 0x4a8980
mov dword [esp + 0x18], eax
jmp 0x4a880e
xor esi, esi
mov ecx, 0x3a
xor eax, eax
lea edi, [esp + 0x5c]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x58]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], esi
add eax, 0x2710
mov ecx, 0x3a
lea esi, [esp + 0x5c]
lea edi, [esp + 0x234]
mov dword [esp + 0x5c], 0x123fa
mov dword [esp + 0x230], eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x230]
push ecx
push edx
lea ecx, [ebx + 0x64]
call fcn.004ab350
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.0042b440
mov edx, dword [esp + 0x4c]
lea esi, [ebp + 0xc]
mov ecx, 0x3a
xor eax, eax
lea edi, [edx + 0x10]
lea edx, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3a
lea edi, [esp + 0x144]
rep stosd dword es:[edi], eax
mov dword [esp + 0x148], eax
mov dword [esp + 0x14c], eax
mov dword [esp + 0x154], eax
mov eax, dword [ebx + 0x58]
add eax, 0x2710
mov ecx, 0x3a
lea esi, [esp + 0x144]
lea edi, [esp + 0x320]
mov dword [esp + 0x144], 0x123fa
mov dword [esp + 0x31c], eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x31c]
push ecx
push edx
lea ecx, [ebx + 0x64]
call fcn.004ab350
lea eax, [esp + 0x48]
lea ecx, [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.0042b440
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0x28]
lea eax, [edx + 0x10]
test ecx, ecx
push eax
je 0x4a8922
mov eax, dword [ebx + 0x58]
mov ecx, dword [esp + 0x410]
push eax
push ecx
jmp 0x4a892e
mov edx, dword [ebx + 0x58]
mov eax, dword [esp + 0x410]
push edx
push eax
mov ecx, ebx
call fcn.004aadf0
mov edx, dword [ebx + 0x58]
inc edx
mov dword [ebx + 0x58], edx
mov eax, dword [ebp + 8]
cmp eax, dword [0x4ee174]
je 0x4a8952
push eax
call fcn.004ac8b0
add esp, 4
jmp 0x4a8969
mov eax, dword [ebp + 4]
cmp ebp, dword [eax + 8]
jne 0x4a8964
mov ebp, eax
mov eax, dword [eax + 4]
cmp ebp, dword [eax + 8]
je 0x4a895a
cmp dword [ebp + 8], eax
je 0x4a896b
mov ebp, eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x4a880c
mov ecx, dword [esp + 0x38]
xor esi, esi
mov eax, dword [ecx]
push ecx
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.004ab2a0
mov edx, dword [esp + 0x40c]
mov ecx, ebx
push edx
call fcn.004aad60
mov eax, dword [esp + 0x38]
push eax
mov ecx, dword [eax]
lea eax, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.004ab2a0
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
xor edi, edi
call fcn.004d2a1f
mov eax, dword [0x4ee170]
dec eax
mov dword [0x4ee170], eax
jne 0x4a89f0
mov edi, dword [0x4ee174]
mov dword [0x4ee174], esi
lea ecx, [esp + 0x20]
call fcn.004d2abb
cmp edi, esi
je 0x4a8a06
push edi
call fcn.004c5432
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3f8
ret 0x10
lea ecx, [esp + 0x30]
call fcn.004ab0b0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3f8
ret 0x10