Function at 0x415690
Capabilities:
Delete file
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x466948
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
mov edx, dword [0x4874f4]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x20], ecx
mov ecx, 0x4874f4
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], 0
mov edx, dword [0x4874f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4874f4
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov ebx, 1
mov byte [esp + 0x3c], bl
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x415734
mov ecx, 0x104
lea eax, [esp + 0x18]
call fcn.004057d0
mov esi, dword [esp + 0x18]
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test esi, esi
jne 0x415748
xor ecx, ecx
jmp 0x415765
mov ecx, esi
lea edi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x415750
sub ecx, edi
sar ecx, 1
js 0x4158d5
cmp ecx, dword [esi - 8]
jg 0x4158d5
test eax, eax
mov dword [esi - 0xc], ecx
mov word [esi + ecx*2], 0
jne 0x4158f1
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4157a2
mov ecx, 0x104
lea eax, [esp + 0x18]
call fcn.004057d0
mov esi, dword [esp + 0x18]
push 0
push 0x2e
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test esi, esi
jne 0x4157b7
xor ecx, ecx
jmp 0x4157d5
mov ecx, esi
lea edi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4157c0
sub ecx, edi
sar ecx, 1
js 0x4158d5
cmp ecx, dword [esi - 8]
jg 0x4158d5
test eax, eax
mov dword [esi - 0xc], ecx
mov word [esi + ecx*2], 0
je 0x4158f1
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x415812
mov ecx, 0x104
lea eax, [esp + 0x18]
call fcn.004057d0
mov esi, dword [esp + 0x18]
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test esi, esi
jne 0x415826
xor ecx, ecx
jmp 0x415845
mov ecx, esi
lea edi, [ecx + 2]
jmp 0x415830
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x415830
sub ecx, edi
sar ecx, 1
js 0x4158d5
cmp ecx, dword [esi - 8]
jg 0x4158d5
test eax, eax
mov dword [esi - 0xc], ecx
mov word [esi + ecx*2], 0
je 0x4158df
cmp dword [esi - 4], ebx
jle 0x415876
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00405970
mov esi, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push 3
lea eax, [esp + 0x44]
push eax
push esi
call fcn.00443b9a
add esp, 0x24
test esi, esi
jne 0x41589a
xor eax, eax
jmp 0x4158b1
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4158a0
sub eax, edx
sar eax, 1
js 0x4158d5
cmp eax, dword [esi - 8]
jg 0x4158d5
mov dword [esi - 0xc], eax
lea edx, [esp + 0x28]
lea edi, [esp + 0x18]
mov word [esi + eax*2], 0
call fcn.00405440
mov ebx, edi
call fcn.00425250
jmp 0x4158ed
push 0x80070057
call fcn.00404c70
mov edx, 0x46c4ac
lea edi, [esp + 0x18]
call fcn.00405440
mov esi, dword [esp + 0x18]
mov eax, dword [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ebx, eax
call fcn.0040b050
add esp, 8
lea edi, [esp + 0x1c]
mov byte [esp + 0x3c], 2
call fcn.004055e0
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415944
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, ebp
je 0x415962
test al, 0x10
jne 0x415962
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x4159c8
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
push ecx
push edx
mov ecx, ebx
call fcn.00415150
test eax, eax
je 0x4159c8
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x1c]
call fcn.004055e0
lea eax, [esi - 0x10]
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4159a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x3c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4159c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x415a07
lea eax, [esi - 0x10]
mov edx, ebp
lea ecx, [eax + 0xc]
mov byte [esp + 0x3c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4159e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x3c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x415a05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044266a
add esp, 0x2c
ret 0xc