Function at 0x50b230
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.0050f060
mov ebp, dword [esp + 0x40c]
cmp ebp, esi
je 0x50b758
cmp dword [esp + 0x410], esi
je 0x50b758
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 0x50b6d2
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x50b6d2
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 0x50b523
jmp 0x50b2c7
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.0050abc0
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 0x50b4ac
test byte [ebx + 0x4c], 0x40
je 0x50b344
mov esi, 1
jmp 0x50b4ac
test eax, 0x2000000
je 0x50b355
mov esi, 1
jmp 0x50b4ac
mov eax, dword [0x546560]
mov ecx, 0x400
mov dword [esp + 0x10], eax
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x50b373
cmp dword [eax - 4], ecx
jge 0x50b3d3
mov esi, dword [eax - 8]
cmp esi, ecx
mov dword [esp + 0x20], esi
jle 0x50b380
mov ecx, esi
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x50b3d3
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 [0x546564]
cmp ebx, eax
je 0x50b3cf
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50b3cf
push ebx
call fcn.00531732
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 0x54faf0
push ecx
call fcn.00531809
add esp, 8
test eax, eax
je 0x50b477
mov edx, dword [esp + 0x10]
push 0x54fae8
push edx
call fcn.00531809
add esp, 8
test eax, eax
je 0x50b477
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x50b477
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 0x50b479
xor esi, esi
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50b4a8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50b4a8
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov ebx, dword [esp + 0x44]
test esi, esi
mov dword [esp + 0x74], 0
je 0x50b4c2
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.0050e060
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 0x50b2c5
xor esi, esi
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x50b531
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 0x50b6c0
mov dword [esp + 0x18], eax
jmp 0x50b54e
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.0050e220
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.004aee90
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.0050e220
lea eax, [esp + 0x48]
lea ecx, [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.004aee90
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0x28]
lea eax, [edx + 0x10]
test ecx, ecx
push eax
je 0x50b662
mov eax, dword [ebx + 0x58]
mov ecx, dword [esp + 0x410]
push eax
push ecx
jmp 0x50b66e
mov edx, dword [ebx + 0x58]
mov eax, dword [esp + 0x410]
push edx
push eax
mov ecx, ebx
call fcn.0050dcc0
mov edx, dword [ebx + 0x58]
inc edx
mov dword [ebx + 0x58], edx
mov eax, dword [ebp + 8]
cmp eax, dword [0x55e49c]
je 0x50b692
push eax
call fcn.0050f780
add esp, 4
jmp 0x50b6a9
mov eax, dword [ebp + 4]
cmp ebp, dword [eax + 8]
jne 0x50b6a4
mov ebp, eax
mov eax, dword [eax + 4]
cmp ebp, dword [eax + 8]
je 0x50b69a
cmp dword [ebp + 8], eax
je 0x50b6ab
mov ebp, eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x50b54c
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.0050e170
mov edx, dword [esp + 0x40c]
mov ecx, ebx
push edx
call fcn.0050dc30
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.0050e170
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
xor edi, edi
call fcn.0053f794
mov eax, dword [0x55e498]
dec eax
mov dword [0x55e498], eax
jne 0x50b730
mov edi, dword [0x55e49c]
mov dword [0x55e49c], esi
lea ecx, [esp + 0x20]
call fcn.0053f830
cmp edi, esi
je 0x50b746
push edi
call fcn.00531732
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.0050df80
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3f8
ret 0x10