Function at 0x4816e6
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
push ebx
xor ebx, ebx
push esi
push edi
mov edi, eax
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x48193d
push dword [ebp + 8]
lea eax, [edi + 0x1a0]
mov dword [ebp - 8], eax
mov eax, dword [eax]
mov esi, eax
call fcn.0047f2de
pop ecx
test eax, eax
je 0x48193d
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00401f01
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
add edi, 0x100
push eax
call fcn.00481ef1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040297c
mov esi, dword [edi + 0x18]
mov edi, dword [edi]
cmp dword [ebp - 0x1c], ebx
je 0x481758
cmp dword [ebp - 0x1c], edi
je 0x48175d
call fcn.004e9f42
cmp dword [ebp - 0x18], esi
je 0x481772
lea esi, [ebp - 0x1c]
call fcn.0043a7c8
mov eax, dword [eax + 4]
jmp 0x48193f
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, eax
cmp edi, ebx
je 0x48193d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x48178b
mov ecx, edi
sub eax, edx
sub ecx, esi
sar eax, 1
sar ecx, 1
cmp eax, ecx
jg 0x4817b8
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov edi, str._dir
test eax, eax
jne 0x4817b8
mov edi, str._RES
cmp dword [ebp + 0xc], 0xfffffffd
je 0x4817c4
push dword [ebp + 0xc]
push esi
jmp 0x4817e1
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
push 4
push str..exe
push edi
call esi
test eax, eax
jne 0x4817f4
cmp dword [ebp + 0x10], ebx
je 0x4817f4
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconW]
jmp 0x48187e
push 4
push str..ICO
push edi
call esi
test eax, eax
jne 0x481821
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
push 0x10
and eax, 0x10
add eax, 0x10
push eax
push eax
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x481877
push 4
push str._RES
push edi
call esi
test eax, eax
je 0x48183d
push 4
push str..ime
push edi
call esi
test eax, eax
jne 0x481886
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp dword [ebp + 0x10], ebx
je 0x48185e
push ebx
push dword [ebp + 8]
push ebx
call esi
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconW]
cmp eax, ebx
jne 0x48193f
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
push 0x10
and eax, 0x10
add eax, 0x10
push eax
push eax
push 1
push dword [ebp + 8]
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
cmp eax, ebx
jne 0x48193f
push 0x2b0
lea eax, [ebp - 0x2e8]
push ebx
push eax
mov dword [ebp - 0x2ec], ebx
call fcn.004ee670
mov edi, dword [ebp - 8]
xor eax, eax
add esp, 0xc
cmp dword [ebp + 0x10], ebx
lea ecx, [ebp - 0x24]
sete al
mov dword [ebp - 0xc], ebx
mov esi, eax
mov eax, edi
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
je 0x4818e1
lea ecx, [ebp - 0x34]
mov eax, edi
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x48193d
or esi, 0x100
push esi
push 0x2b4
lea eax, [ebp - 0x2ec]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, eax
lea ecx, [ebp - 0x34]
mov eax, edi
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
je 0x48192f
lea ecx, [ebp - 0x24]
mov eax, edi
call fcn.00435802
mov eax, dword [eax]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
je 0x48193d
mov eax, esi
neg eax
sbb eax, eax
and eax, dword [ebp - 0x2ec]
jmp 0x48193f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc