Function at 0x405270
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x6d8
push esi
push edi
mov edi, dword [esp + 0x6e4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x419784]
and ecx, 3
test al, al
rep movsb byte es:[edi], byte [esi]
je 0x4052d0
lea ecx, [esp + 0x10]
push 0x413320
push ecx
call fcn.00409540
inc eax
push eax
call fcn.00409683
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x4052f6
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push 0x4136a0
push 0x413320
push eax
call fcn.00409540
add esp, 8
inc eax
push eax
call fcn.004094ff
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x413320
push ecx
call fcn.00409540
mov byte [eax], 0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00405230
add esp, 0x10
test eax, eax
je 0x405340
cmp dword [esp + 0x6e8], 1
jne 0x405334
mov eax, dword [eax + 4]
pop edi
pop esi
add esp, 0x6d8
ret
mov eax, dword [eax + 8]
pop edi
pop esi
add esp, 0x6d8
ret
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x114]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x388], 0
mov dword [esp + 0x228], 0
call fcn.00404f80
add esp, 0x10
test al, al
je 0x4053bd
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x101
lea edx, [esp + 0x37c]
push 0x160
push edx
lea eax, [esp + 0x120]
push 0
push eax
call esi
push 0x100
lea ecx, [esp + 0x21c]
push 0x160
push ecx
lea edx, [esp + 0x120]
push 0
push edx
call esi
jmp 0x4053d2
mov ecx, 6
mov esi, str.Process_is_not_accessible
lea edi, [esp + 0x114]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [esp + 0x378]
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
jne 0x4053f3
push 0x7f00
push 0
call esi
mov dword [esp + 0x378], eax
mov eax, dword [esp + 0x218]
test eax, eax
jne 0x40540e
push 0x7f00
push 0
call esi
mov dword [esp + 0x218], eax
push ebp
push 0x3c
call fcn.0040968e
mov ebp, eax
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x18]
mov dword [ebp + 0xc], eax
mov ecx, dword [esp + 0x380]
mov dword [ebp + 4], ecx
mov edx, dword [esp + 0x220]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 8], edx
lea edx, [ebp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0040968e
mov edx, eax
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x30], edx
push 0x104
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x5ec]
push ecx
push edx
push eax
call fcn.00404dc0
lea edi, [esp + 0x5f8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0040968e
mov edx, eax
lea edi, [esp + 0x5fc]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x34], edx
push 0x104
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x4fc]
mov edx, dword [esp + 0x30]
push ecx
push edx
call fcn.00404c00
lea edi, [esp + 0x504]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0040968e
mov edx, eax
lea edi, [esp + 0x508]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x2c
mov dword [ebp + 0x38], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x417144]
mov dword [ebp], ecx
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [0x417144], ebp
je 0x405568
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0x6ec], 1
jne 0x40557f
mov eax, dword [ebp + 4]
pop ebp
pop edi
pop esi
add esp, 0x6d8
ret
mov eax, dword [ebp + 8]
pop ebp
pop edi
pop esi
add esp, 0x6d8
ret