Function at 0x4df150
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5b1b11
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x480]
mov dword fs:[0], eax
lea esi, [esp + 0x1c]
call fcn.005169b4
xor ebp, ebp
push 0x208
lea eax, [esp + 0x278]
push ebp
push eax
mov dword [esp + 0x494], ebp
call fcn.0058e300
add esp, 0xc
push 1
push 0x10
lea ecx, [esp + 0x27c]
push ecx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x278]
call fcn.00406c20
mov byte [esp + 0x488], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00406580
add eax, 0x10
mov dword [esp + 0x20], eax
push 6
push str..lnk
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x494], 2
call fcn.0040f2a0
mov edi, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x24]
push ecx
push edi
call esi
cmp eax, 0xffffffff
je 0x4df2ae
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [edi - 0x10]
mov byte [esp + 0x488], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4df251
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x488], 0
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 0x4df279
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x488], 0xffffffff
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 0x4df2a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4df403
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [esp + 0x24]
push ecx
push 0xffffffffffffffff
call ebx
test eax, eax
je 0x4df2d4
inc ebp
cmp ebp, 1
jge 0x4df33c
lea edx, [esp + 0x24]
push edx
push 0xffffffffffffffff
call ebx
test eax, eax
jne 0x4df2c1
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
push 0xffffffffffffffff
call ebx
lea eax, [esp + 0x18]
lea edi, [esp + 0x20]
call fcn.00406500
push 6
push str..lnk
mov ecx, edi
push ecx
call fcn.0040f2a0
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push edi
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x4df361
inc ebp
cmp ebp, 1
jl 0x4df361
push esi
call ebx
add edi, 0xfffffff0
mov byte [esp + 0x488], 1
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4df251
mov ecx, dword [edi]
push edi
jmp 0x4df24a
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [edi - 0x10]
mov byte [esp + 0x488], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4df245
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4df387
inc ebp
cmp ebp, 1
jge 0x4df313
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4df371
push esi
call ebx
add edi, 0xfffffff0
mov byte [esp + 0x488], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4df3ae
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0x488], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4df3d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x488], 0xffffffff
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 0x4df401
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x480]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.005886fc
add esp, 0x478
ret