Function at 0x40fe70
Capabilities:
Get file system object information
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4b4f4c
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x4ef7d0]
xor eax, esp
mov dword [esp + 0x1e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ef7d0]
xor eax, esp
push eax
lea eax, [esp + 0x1f8]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x208]
mov ebp, ecx
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x40fef1
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
lea esi, [ebp + 0x10]
push esi
call edi
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40feea
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0xc], 0
push 0
push esi
call edi
xor edi, edi
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0xb
push edx
call esi
mov eax, dword [ebp + 8]
push edi
push edi
push 0x1009
push eax
call esi
push 0x30
lea ecx, [esp + 0x4c]
push edi
push ecx
call fcn.0049e8b0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x60], 0x208
mov dword [esp + 0x20], edi
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
je 0x40ff59
mov eax, dword [ebp + 8]
push edi
push 1
push 0xb
push eax
call esi
jmp 0x410383
mov eax, dword [ebp + 4]
cmp eax, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], edi
je 0x40ff70
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebx
mov dword [esp + 0x20], edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ff80
sub eax, edx
add eax, 1
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.00413530
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push esi
push ebx
mov dword [esp + 0x210], edi
call fcn.0042b5b0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x34]
push edx
mov edx, dword [ebp + 8]
push edi
push esi
push edi
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x41034e
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
lea esi, [ebp + 4]
push esi
push 0x4d6f28
push edi
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jne 0x41034a
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebp + 8]
push 0x60
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x41034a
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x4011
push 0x160
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x10
push ebx
push str.Icon
call esi
mov edx, dword [esp + 0x98]
push 0x4011
push 0x160
lea eax, [esp + 0x9c]
push eax
push 0x80
push str.Icon
mov dword [esp + 0x50], edx
call esi
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.00403340
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push edi
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
mov byte [esp + 0x210], 1
call edx
test eax, eax
jne 0x410203
nop
mov eax, dword [ebp + 4]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x1c]
push edx
lea esi, [ebp + 4]
mov dword [esp + 0x1c], 0x60000000
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x14]
test eax, 0x40000000
je 0x4101e7
cmp dword [ebp + 0x28], edi
je 0x4101b2
test eax, 0x20000000
jne 0x4101b2
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], edi
mov byte [esp + 0x7c], 0
push 1
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x80]
push esi
push edx
mov byte [esp + 0x210], 2
call fcn.0042d710
add esp, 0x10
test al, al
jne 0x410146
lea ecx, [esp + 0x78]
mov byte [esp + 0x200], 1
call fcn.00490500
jmp 0x4101e7
cmp dword [ebp + 0x2c], ebx
jb 0x410150
mov esi, dword [ebp + 0x18]
jmp 0x410153
lea esi, [ebp + 0x18]
cmp dword [ebp + 0x2c], ebx
jb 0x41015d
mov ecx, dword [ebp + 0x18]
jmp 0x410160
lea ecx, [ebp + 0x18]
mov eax, dword [ebp + 0x28]
add ecx, eax
cmp esi, ecx
jae 0x410130
cmp byte [esi], 0
je 0x41018b
cmp dword [esp + 0x90], ebx
mov eax, dword [esp + 0x7c]
jae 0x41017f
lea eax, [esp + 0x7c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecA]
test eax, eax
jne 0x4101a1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x410190
sub eax, edx
lea esi, [esi + eax + 1]
jmp 0x410153
lea ecx, [esp + 0x78]
mov byte [esp + 0x200], 1
call fcn.00490500
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.00403360
push 1
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00407f40
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
xor edi, edi
mov ebx, 0x10
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x4100b0
lea eax, [ebp + 4]
push eax
lea ecx, [esp + 0x28]
call fcn.0040fbc0
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x48], edi
mov esi, dword [ecx]
mov bl, 3
lea esp, [esp]
cmp esi, dword [esp + 0x28]
je 0x41032d
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
lea edi, [esi + 8]
push edi
mov dword [esp + 0x1c], 0x60000000
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
push 1
push eax
call edx
cmp esi, dword [esp + 0x28]
jne 0x410253
call fcn.0049ed6a
test dword [esp + 0x14], 0x20000000
mov eax, dword [edi]
mov dword [esp + 0x64], eax
je 0x41026d
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], ecx
jmp 0x410275
mov edx, dword [esp + 0x40]
mov dword [esp + 0x60], edx
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], 0
mov byte [esp + 0x7c], 0
cmp esi, dword [esp + 0x28]
mov byte [esp + 0x200], bl
jne 0x4102a2
call fcn.0049ed6a
mov eax, dword [esp + 0x20c]
push eax
push edi
lea eax, [ebp + 4]
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.0042d710
add esp, 0x10
test al, al
je 0x4102f5
cmp dword [esp + 0x90], 0x10
jb 0x4102d7
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x58], edx
jmp 0x4102df
lea eax, [esp + 0x7c]
mov dword [esp + 0x58], eax
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x44]
push ecx
push 0
push 0x1007
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 0x90], 0x10
mov byte [esp + 0x200], 1
jb 0x410314
mov eax, dword [esp + 0x7c]
push eax
call fcn.0049ea7d
add esp, 4
cmp esi, dword [esp + 0x28]
jne 0x41031f
call fcn.0049ed6a
mov esi, dword [esi]
add dword [esp + 0x48], 1
xor edi, edi
jmp 0x410220
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x200], 0
call fcn.004050f0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call fcn.0042c440
mov ecx, dword [ebp + 8]
add esp, 4
push edi
push 1
push 0xb
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, edi
je 0x410383
push esi
call fcn.0049ed7a
add esp, 4
mov ecx, dword [esp + 0x1f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.0049ec31
add esp, 0x1f0
ret 8