Function at 0x505adf
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5414ab
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x58a710]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x505a48
push 0x80004005
call fcn.004049a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x174], esi
mov eax, dword [edi + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 0x178], eax
cmp dword [ebx], eax
jne case.default.0x505ad8
test byte [ebx + 0xc], 4
jne 0x505ac1
mov edi, dword [ebx + 0x10]
lea eax, [ebp - 0x1b0]
push 0x38
push 0
push eax
call fcn.0051d400
add esp, 0xc
mov dword [ebp - 0x1b0], edi
lea eax, [ebp - 0x1b4]
mov dword [ebp - 0x1b4], 4
push eax
push 0
push 0x1005
push dword [ebp - 0x178]
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
test eax, eax
cmovne edi, dword [ebp - 0x194]
jmp 0x505ac4
mov edi, dword [ebx + 0x2c]
test edi, edi
je case.default.0x505ad8
mov eax, dword [ebx + 0x14]
cmp eax, 8
ja case.default.0x505ad8
jmp dword [eax*4 + 0x505d7c]
test byte [ebx + 0xc], 2
je 0x505b20
cmp dword [edi + 0x14], 0
jge 0x505b1a
push 0x4000
push 0x160
lea eax, [ebp - 0x170]
mov dword [ebp - 0x16c], 0xffffffff
push eax
push 0
push dword [edi + 0x2c]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x16c]
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x28], eax
test byte [ebx + 0xc], 1
je case.default.0x505ad8
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x2c]
mov eax, dword [eax - 0xc]
jmp 0x505d37
test byte [ebx + 0xc], 1
je case.default.0x505ad8
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax - 0xc]
jmp 0x505d37
test byte [ebx + 0xc], 1
je case.default.0x505ad8
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x24]
mov eax, dword [eax - 0xc]
jmp 0x505d37
test byte [ebx + 0xc], 1
je case.default.0x505ad8
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x20]
mov eax, dword [eax - 0xc]
jmp 0x505d37
test byte [ebx + 0xc], 1
je case.default.0x505ad8
lea ecx, [ebp - 0x174]
call fcn.00404e70
mov eax, dword [edi + 0x10]
sub eax, 2
je 0x505bc1
sub eax, 1
je 0x505bba
sub eax, 1
jne 0x505bd1
push 0x852f
jmp 0x505bc6
push 0x857a
jmp 0x505bc6
push 0x8579
lea ecx, [ebp - 0x174]
call fcn.004197f0
mov esi, dword [ebp - 0x174]
push esi
push 0x54db80
push dword [ebx + 0x24]
push dword [ebx + 0x20]
call fcn.0043a320
add esp, 0x10
jmp 0x505d34
test byte [ebx + 0xc], 1
je case.default.0x505ad8
lea ecx, [ebp - 0x174]
call fcn.00404e70
mov eax, dword [edi + 0xc]
dec eax
cmp eax, 6
ja case.default.0x505c15
movzx eax, byte [eax + 0x505da8]
jmp dword [eax*4 + 0x505da0]
push 0x857c
jmp 0x505c28
push 0x857b
lea ecx, [ebp - 0x174]
call fcn.004197f0
mov esi, dword [ebp - 0x174]
push esi
push 0x54db80
push dword [ebx + 0x24]
push dword [ebx + 0x20]
call fcn.0043a320
add esp, 0x10
jmp 0x505d34
test byte [ebx + 0xc], 1
je case.default.0x505ad8
mov eax, dword [edi + 0x30]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax - 0xc]
jmp 0x505d37
test byte [ebx + 0xc], 1
je case.default.0x505ad8
cmp dword [edi + 4], 1
jne 0x505c8d
push dword [edi + 0x2c]
mov ecx, 0x5944ac
call fcn.00502a30
mov dword [edi + 4], eax
movzx eax, word [edi + 4]
sub eax, 0
je 0x505cd0
sub eax, 1
je 0x505cc9
sub eax, 1
jne 0x505ce6
movzx eax, word [edi + 6]
sub eax, 1
je 0x505cc2
lea ecx, [ebp - 0x174]
sub eax, 1
je 0x505cbb
push 0x856f
jmp 0x505cdb
push 0x8571
jmp 0x505cdb
push 0x8570
jmp 0x505cd5
push 0x856e
jmp 0x505cd5
push 0x856d
lea ecx, [ebp - 0x174]
call fcn.004197f0
mov esi, dword [ebp - 0x174]
push esi
push 0x54db80
push dword [ebx + 0x24]
push dword [ebx + 0x20]
call fcn.0043a320
add esp, 0x10
jmp 0x505d34
test byte [ebx + 0xc], 1
je case.default.0x505ad8
mov eax, dword [edi]
test eax, eax
je case.default.0x505ad8
push eax
lea eax, [ebp - 0x174]
push 0x54dbb4
push eax
call fcn.00404f50
mov esi, dword [ebp - 0x174]
push esi
push 0x54db80
push dword [ebx + 0x24]
push dword [ebx + 0x20]
call fcn.0043a320
add esp, 0x1c
mov eax, dword [esi - 0xc]
inc eax
mov dword [ebx + 0x24], eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x505d5a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005193a0
mov esp, ebp
pop ebp
ret 0xc