Function at 0x405540
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x3f0
push ebx
push ebp
mov ebp, dword [esp + 0x3fc]
push esi
push edi
mov eax, dword [ebp + 0x14]
cmp eax, 7
ja case.default.0x40555d
jmp dword [eax*4 + 0x40585c]
mov edx, dword [esp + 0x408]
lea eax, [esp + 0x34]
lea ecx, [esp + 0x19c]
push eax
mov eax, dword [edx]
push ecx
push 0
push 0
push eax
call fcn.00413188
lea ecx, [esp + 0x48]
lea edx, [esp + 0x1b0]
push ecx
push edx
lea eax, [esp + 0xb4]
push 0x41d778
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0xbc]
push ecx
call fcn.004054a0
add esp, 0x28
lea edi, [esp + 0x98]
jmp 0x40573e
mov ecx, dword [esp + 0x408]
lea eax, [esp + 0x34]
push eax
push 0
mov edx, dword [ecx]
push 0
push 0
push edx
call fcn.00413188
add esp, 0x14
lea edi, [esp + 0x34]
jmp 0x405833
mov edx, dword [esp + 0x408]
mov ecx, dword [ebp + 0x20]
push ecx
mov eax, dword [edx + 0x10]
push eax
call fcn.00404b90
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f0
ret
mov ebx, dword [esp + 0x408]
mov eax, dword [ebx]
test eax, eax
je 0x405690
push 2
push 0x41d774
push eax
call fcn.004133d0
add esp, 0xc
test eax, eax
je 0x405690
mov edx, dword [ebx]
push 0x400
lea ecx, [esp + 0x2a4]
push 0x160
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea edi, [esp + 0x3b0]
or ecx, 0xffffffff
xor eax, eax
push 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x20]
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3b4]
push ecx
push edx
call fcn.004132d0
add esp, 0xc
mov byte [ebx + 0x33], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f0
ret
mov eax, dword [ebp + 0x20]
mov cl, byte [0x41e998]
pop edi
pop esi
mov byte [eax], cl
mov dl, byte [0x41e998]
mov byte [ebx + 0x20], dl
pop ebp
pop ebx
add esp, 0x3f0
ret
mov ecx, dword [esp + 0x408]
lea eax, [esp + 0x10]
add ecx, 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [esp + 0x34]
push 0x64
push ecx
lea edx, [esp + 0x20]
push 0
push edx
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
lea edi, [esp + 0x34]
jmp 0x405833
mov edx, dword [esp + 0x408]
lea ecx, [esp + 0x10]
add edx, 8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea edx, [esp + 0x34]
push 0x64
push edx
lea eax, [esp + 0x20]
push 0
push eax
push 2
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f0
ret
mov eax, dword [esp + 0x408]
mov ebx, 0x41d770
mov eax, dword [eax + 0x14]
test al, 0x10
jne 0x40577f
mov ebx, 0x41d76c
test al, 0x20
mov edi, 0x41d768
jne 0x40578d
mov edi, 0x41d76c
test al, 4
mov esi, 0x41d764
jne 0x40579b
mov esi, 0x41d76c
test al, 2
mov edx, 0x41d760
jne 0x4057a9
mov edx, 0x41d76c
test al, 1
mov ecx, 0x41d75c
jne 0x4057b7
mov ecx, 0x41d76c
test ah, 8
mov eax, str.crhsa_d
jne 0x4057c6
mov eax, 0x41d76c
push ebx
push edi
push esi
push edx
push ecx
mov ecx, dword [ebp + 0x20]
push eax
push str._s_s_s_s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f0
ret
mov ecx, dword [esp + 0x408]
push 0
lea edx, [esp + 0x1a0]
push 0
push edx
mov edx, dword [ecx]
lea eax, [esp + 0x34]
push eax
push edx
call fcn.00413188
lea eax, [esp + 0x1b0]
lea ecx, [esp + 0x3c]
push eax
push ecx
lea edx, [esp + 0xb4]
push 0x41d778
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f0
ret