Function at 0x4b7880
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cf90c
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x50f880]
xor eax, esp
mov dword [esp + 0x2ec], eax
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x300]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, edx
mov dword [esp + 0x28], 0
test byte [0x51a724], 1
mov dword [esp + 0x24], eax
mov esi, ecx
mov dword [esp + 0x38], edi
jne 0x4b790e
or dword [0x51a724], 1
mov dword [esp + 0x308], 0
call fcn.0041fe90
push 0x4d8920
call fcn.00454c0f
add esp, 4
mov dword [esp + 0x308], 0xffffffff
mov edx, dword [0x50f008]
mov eax, dword [edx + 0xc]
mov ecx, 0x50f008
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, str._no_ext
mov dword [esp + 0x30c], 1
call fcn.0041b050
lea edx, [esp + 0x20]
push edx
mov ecx, str._dir
mov byte [esp + 0x30c], 2
call fcn.0041b050
lea eax, [esp + 0x1c]
push eax
mov ecx, str._sys_file
mov byte [esp + 0x30c], 3
call fcn.0041b050
cmp byte [ebp + 0xc], 0
mov byte [esp + 0x308], 4
jne 0x4b79e4
push esi
lea ecx, [esp + 0x14]
call fcn.004ac600
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, 0x4efd70
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b79b7
test dx, dx
je 0x4b79b3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b79b7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b7991
xor eax, eax
jmp 0x4b79bc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4b79f1
push edi
mov eax, esi
call fcn.004b6560
add esp, 4
lea edi, [esp + 0x10]
test al, al
je 0x4b79de
lea eax, [esp + 0x1c]
jmp 0x4b79ec
lea eax, [esp + 0x18]
jmp 0x4b79ec
lea eax, [esp + 0x20]
lea edi, [esp + 0x10]
call fcn.0041ad90
mov edi, dword [0x51a598]
lea ecx, [esp + 0x10]
call fcn.00420110
mov dword [esp + 0x14], eax
cmp eax, dword [0x51a598]
je 0x4b7a23
lea ecx, [esp + 0x10]
add eax, 0xc
push ecx
call fcn.0040a930
test al, al
jne 0x4b7a23
lea eax, [esp + 0x14]
jmp 0x4b7a31
mov edx, dword [0x51a598]
mov dword [esp + 0x28], edx
lea eax, [esp + 0x28]
cmp dword [eax], edi
je 0x4b7aaa
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0x4efd74
mov dword [esp + 0x30], 0x2ef
mov dword [esp + 0x34], 3
call fcn.0041ff10
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
push ecx
push str.File_type_for_file__s_already_found:__s
lea eax, [esp + 0x38]
call fcn.00409c10
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0041ff10
mov eax, dword [eax]
sub eax, 0x10
call fcn.0041b370
mov esi, dword [esp + 0x24]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x308], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4b7bdf
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
test eax, eax
je 0x4b7acb
mov edx, dword [eax + 0xc0]
sub edx, dword [eax + 0xbc]
sar edx, 2
test edx, edx
je 0x4b7baa
movzx edx, byte [ebp + 0xc]
mov eax, dword [esi]
push 0x400
neg edx
push 0x2b4
lea ecx, [esp + 0x44]
sbb edx, edx
push ecx
and edx, 0x10
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4b7baa
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x254]
call fcn.0041b050
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x4efd94
mov byte [esp + 0x30c], 5
call fcn.00409b30
add esp, 4
test al, al
je 0x4b7b6b
lea ecx, [esp + 0x10]
call fcn.0041ff10
mov edi, eax
lea eax, [esp + 0x14]
call fcn.0041ad90
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
push edx
push eax
push str.File_type_for_file__s_found:__s
lea eax, [esp + 0x38]
mov dword [esp + 0x38], str.VolumeUtils::GetFileTypeName
mov dword [esp + 0x3c], 0x300
mov dword [esp + 0x40], 3
call fcn.00409c10
add esp, 0xc
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.0041b370
mov esi, dword [esp + 0x24]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x308], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7bc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4b7bc3
mov esi, dword [esp + 0x24]
push esi
push ecx
call fcn.0041f220
add esp, 4
push eax
mov ecx, 0x336
call fcn.004c4a00
mov byte [esp + 0x308], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7beb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x308], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7c13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x308], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7c3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x308], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7c66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x300]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2ec]
xor ecx, esp
call fcn.00453be1
mov esp, ebp
pop ebp
ret