Function at 0x4952a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570a68
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
call fcn.004a6180
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4952e8
xor eax, eax
jmp 0x4954e5
cmp dword [ebp - 0x10], 1
jne 0x495317
push 0x104
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00495aa0
mov ecx, eax
call fcn.004dfdf0
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x495411
push 0x104
push 0
mov ecx, dword [ebp + 0x10]
call fcn.0045fcc0
mov ecx, eax
call fcn.004dfdf0
push eax
lea ecx, [ebp - 0x444]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edx, [ebp - 0x444]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x448], eax
xor eax, eax
mov ecx, dword [ebp - 0x448]
mov word [ecx], ax
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edx, [ebp - 0x444]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x4953bd
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea ecx, [ebp - 0x444]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x44c], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x495411
lea edx, [ebp - 0x444]
push edx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x10], 0
jne 0x4953eb
push str.Archive
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x495411
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00495aa0
mov ecx, eax
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0x10
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00459ed0
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.00438030
mov dword [ebp - 4], 0
lea edx, [ebp - 0x23c]
push edx
push 0x584c68
lea eax, [ebp - 0x14]
push eax
call fcn.004386c0
add esp, 0xc
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
and edx, 0x10
je 0x495487
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp + eax*2 - 0x22c]
mov dword [ebp - 0x18], ecx
jmp 0x495497
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
call fcn.004dfdf0
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x450], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0044fc20
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret