Function at 0x50bd40
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.0050f960
mov ebp, dword [esp + 0x40c]
cmp ebp, esi
je 0x50c268
cmp dword [esp + 0x410], esi
je 0x50c268
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 0x50c1e2
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x50c1e2
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 0x50c033
jmp 0x50bdd7
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.00517390
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 0x50bfbc
test byte [ebx + 0x4c], 0x40
je 0x50be54
mov esi, 1
jmp 0x50bfbc
test eax, 0x2000000
je 0x50be65
mov esi, 1
jmp 0x50bfbc
mov eax, dword [0x547570]
mov ecx, 0x400
mov dword [esp + 0x10], eax
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x50be83
cmp dword [eax - 4], ecx
jge 0x50bee3
mov esi, dword [eax - 8]
cmp esi, ecx
mov dword [esp + 0x20], esi
jle 0x50be90
mov ecx, esi
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x50bee3
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 [0x547574]
cmp ebx, eax
je 0x50bedf
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50bedf
push ebx
call fcn.00532222
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.004055c0
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.004055c0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov ecx, dword [esp + 0x10]
push 0x550b60
push ecx
call fcn.005322f9
add esp, 8
test eax, eax
je 0x50bf87
mov edx, dword [esp + 0x10]
push 0x550b58
push edx
call fcn.005322f9
add esp, 8
test eax, eax
je 0x50bf87
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x50bf87
lea edx, [esp + 0x28]
lea eax, [esp + 0x4c]
push edx
mov dword [esp + 0x2c], SHChangeNotifyRegister
mov ecx, dword [ebp]
push eax
push 1
push ebp
call dword [ecx + 0x24]
mov esi, dword [esp + 0x28]
shr esi, 0x1f
jmp 0x50bf89
xor esi, esi
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50bfb8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50bfb8
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov ebx, dword [esp + 0x44]
test esi, esi
mov dword [esp + 0x74], 0
je 0x50bfd2
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.0050e960
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 0x50bdd5
xor esi, esi
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x50c041
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 0x50c1d0
mov dword [esp + 0x18], eax
jmp 0x50c05e
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.0050eb20
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.004f7560
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.0050eb20
lea eax, [esp + 0x48]
lea ecx, [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.004f7560
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0x28]
lea eax, [edx + 0x10]
test ecx, ecx
push eax
je 0x50c172
mov eax, dword [ebx + 0x58]
mov ecx, dword [esp + 0x410]
push eax
push ecx
jmp 0x50c17e
mov edx, dword [ebx + 0x58]
mov eax, dword [esp + 0x410]
push edx
push eax
mov ecx, ebx
call fcn.0050e5c0
mov edx, dword [ebx + 0x58]
inc edx
mov dword [ebx + 0x58], edx
mov eax, dword [ebp + 8]
cmp eax, dword [0x55f554]
je 0x50c1a2
push eax
call fcn.00510080
add esp, 4
jmp 0x50c1b9
mov eax, dword [ebp + 4]
cmp ebp, dword [eax + 8]
jne 0x50c1b4
mov ebp, eax
mov eax, dword [eax + 4]
cmp ebp, dword [eax + 8]
je 0x50c1aa
cmp dword [ebp + 8], eax
je 0x50c1bb
mov ebp, eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x50c05c
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.0050ea70
mov edx, dword [esp + 0x40c]
mov ecx, ebx
push edx
call fcn.0050e530
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.0050ea70
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
xor edi, edi
call fcn.0054027f
mov eax, dword [0x55f550]
dec eax
mov dword [0x55f550], eax
jne 0x50c240
mov edi, dword [0x55f554]
mov dword [0x55f554], esi
lea ecx, [esp + 0x20]
call fcn.0054031b
cmp edi, esi
je 0x50c256
push edi
call fcn.00532222
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.0050e880
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3f8
ret 0x10