Function at 0x40f860
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44836c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [esp + 0x22c]
mov ecx, dword [eax + 0x18]
push esi
push edi
push ecx
lea ecx, [esp + 0x10]
call fcn.00402470
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x230], 0
call fcn.004014e0
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 8], esi
mov byte [esp + 0x22c], 1
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov byte [esp + 0x22c], 2
call fcn.00404100
cmp eax, 3
je 0x40f9ea
cmp eax, 6
jne 0x40fa7e
push ebp
lea ecx, [esp + 0xc]
call fcn.0040c190
push str..gid
push str..hlp
lea ecx, [esp + 0x14]
call fcn.00405d00
mov edi, dword [esp + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call ebp
mov esi, dword [edi - 0xc]
push 0x5c
push edi
call fcn.0042dfa2
add esp, 8
test eax, eax
jne 0x40f92e
or eax, 0xffffffff
jmp 0x40f930
sub eax, edi
sub esi, eax
dec esi
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
call fcn.00405c40
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 3
call fcn.00401e30
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x230], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f97a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str..fts
push str..gid
lea ecx, [esp + 0x14]
call fcn.00405d00
push 0x104
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [esp + 0x123], 0x5c
jne 0x40f9af
mov byte [esp + 0x123], 0
push str.help_
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push 0x44bbd0
push edx
call fcn.00401d20
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
add esp, 0x10
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401b10
mov edi, dword [esp + 0x14]
push edi
call ebp
pop ebp
jmp 0x40fa7e
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x40fa0e
push 0x5c
push eax
call fcn.0042f4d1
add esp, 8
test eax, eax
je 0x40fa0e
sub eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
jns 0x40fa57
push 0x104
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esp + 0x223], 0x5c
jne 0x40fa33
mov byte [esp + 0x223], 0
mov ecx, dword [esp + 0xc]
push ecx
push 0x44b63c
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x14]
push str._s_s_s
push eax
call fcn.00401d20
add esp, 0x14
lea ecx, [esp + 8]
call fcn.0040c190
push str..gid
push str..hlp
lea ecx, [esp + 0x10]
call fcn.00405d00
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [edi - 0x10]
mov byte [esp + 0x22c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40faa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x22c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x40fac4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x224], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40faed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x21c]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x228
ret