Function at 0x41c140
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432958
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push edi
mov eax, dword [0x43e0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x1c]
push eax
mov ecx, str.hssn:__i.ni.qo.ipg_eitj_bjz_rbsxgf_rukju40kbnnlyju30609tujuTQEwTX7dN5Auydj9Z0X3MT3SBVtm54J1yUans9_tjxdExzhmP3y46xhEuslcsfpug0
mov byte [ebp - 4], 1
call fcn.0040dcd0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [eax]
push eax
lea edi, [ebp - 0x14]
call fcn.00405780
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c1e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x41c20e
mov eax, 0x104
lea ecx, [ebp - 0x18]
call fcn.004055c0
mov ebx, dword [ebp - 0x18]
mov eax, 0x104
cmp dword [ebx - 8], eax
jge 0x41c222
push 0x80070057
call fcn.00401540
push ebx
xor ecx, ecx
mov dword [ebx - 0xc], eax
push eax
mov word [ebx + 0x208], cx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0041f064
add esp, 8
cmp eax, edi
jl 0x41c218
cmp eax, dword [ebx - 8]
jg 0x41c218
xor edx, edx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], dx
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
call fcn.0041fdb6
cdq
mov ecx, 0x3b14ef
idiv ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, 0xd1b71759
mul edx
shr edx, 0xd
push edx
call fcn.0041fdb6
cdq
mov ecx, 0x181ab
idiv ecx
lea edi, [ebp - 0x10]
push edx
push str._x_x_x.tmp
call fcn.00405780
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
add esp, 0x10
push eax
push ecx
lea ebx, [ebp - 0x18]
call fcn.00405500
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41c3d7
cmp word [ebx], 0
je 0x41c3d7
test edi, edi
je 0x41c3d7
cmp word [edi], 0
je 0x41c3d7
push ebx
mov ecx, edi
call fcn.00401010
add esp, 4
test eax, eax
jne 0x41c34e
push 0xfab
call fcn.0040b120
add esp, 4
mov dword [ebp - 0x1c], vtable.CBindStatusCallback.0
push edi
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x1c]
push edx
push 0
push edi
push ebx
push 0
call dword [0x43f2c0]
test eax, eax
jne 0x41c3c3
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c3c3
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], vtable.CBindStatusCallback.0
push ecx
lea ebx, [edi - 0x10]
mov dword [ebp - 0x20], esp
mov eax, ebx
mov dword [ebp - 0x20], esp
call fcn.00405330
mov ecx, esp
add eax, 0x10
push esi
mov dword [ecx], eax
call fcn.0041c560
test eax, eax
jne 0x41c450
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c397
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c3b4
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
jmp 0x41c424
push 0xfac
call fcn.0040b120
add esp, 4
mov dword [ebp - 0x1c], vtable.CBindStatusCallback.0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c3fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c41a
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c43d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 4]
cmp dword [ecx - 0xc], 0
je 0x41c4ff
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
je 0x41c4ff
push esi
call fcn.0041b8a0
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.0041bfe0
mov dword [esi + 0x5c], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c4a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c4c3
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c4e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c522
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c3b4
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
jmp 0x41c424