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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fa86
mov eax, dword fs:[0]
push eax
sub esp, 0xa74
mov eax, dword [0x4482e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0xa74]
xor ebx, ebx
push eax
mov dword [ebp - 0xa5c], ebx
call fcn.00403fd0
lea ecx, [ebp - 0xa74]
push ecx
mov dword [ebp - 4], ebx
call fcn.00403740
add esp, 4
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.360ini.cab
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0xa64]
sub ecx, dword [ebp - 0xa68]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x403b84
xor edi, edi
mov dword [ebp - 0xa78], edi
cmp esi, ebx
jbe 0x403b19
mov dword [ebp - 0xa7c], ebx
push 0x206
lea edx, [ebp - 0x626]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x628], cx
call fcn.0041a7a0
add esp, 0xc
cmp edi, esi
jb 0x4039ca
call fcn.0041c61e
mov ecx, dword [ebp - 0xa68]
mov eax, dword [ebp - 0xa7c]
push 0xffffffffffffffff
add eax, ecx
push ebx
push eax
lea ecx, [ebp - 0xa54]
mov dword [ebp - 0xa3c], 0xf
mov dword [ebp - 0xa40], ebx
mov byte [ebp - 0xa50], 0
call fcn.00404190
mov byte [ebp - 4], 1
cmp dword [ebp - 0xa3c], 0x10
jb 0x403a19
mov ebx, dword [ebp - 0xa50]
test ebx, ebx
jne 0x403a1f
xor eax, eax
jmp 0x403a62
lea ebx, [ebp - 0xa50]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jg 0x403a5a
lea eax, [edi + edi]
call fcn.004219a0
mov esi, esp
test esi, esi
je 0x403a5a
push edi
push esi
push 0xffffffffffffffff
xor edx, edx
push ebx
push edx
push 3
mov word [esi], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x403a5c
xor eax, eax
mov edi, dword [ebp - 0xa78]
push eax
lea eax, [ebp - 0x628]
push str.http:___s_gf_360ini.cab
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor esi, esi
lea ebx, [ebx]
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x628]
call fcn.00403260
test eax, eax
jne 0x403afb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jb 0x403a80
mov byte [ebp - 4], 0
cmp dword [ebp - 0xa3c], 0x10
jb 0x403ac2
mov ecx, dword [ebp - 0xa50]
push ecx
call fcn.0041a66e
add esp, 4
mov ecx, dword [ebp - 0xa64]
sub ecx, dword [ebp - 0xa68]
add dword [ebp - 0xa7c], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
inc edi
add esi, edx
xor ebx, ebx
mov dword [ebp - 0xa78], edi
cmp edi, esi
jb 0x4039a3
jmp 0x403b19
mov byte [ebp - 4], 0
cmp dword [ebp - 0xa3c], 0x10
jb 0x403b17
mov edx, dword [ebp - 0xa50]
push edx
call fcn.0041a66e
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403bae
mov eax, dword [ebp - 0xa68]
cmp eax, ebx
je 0x403b5c
mov ecx, dword [ebp - 0xa5c]
mov edi, dword [ebp - 0xa64]
push ecx
call fcn.00405440
mov edx, dword [ebp - 0xa68]
add esp, 4
push edx
call fcn.0041a66e
add esp, 4
mov eax, dword [ebp - 0xa74]
push eax
mov dword [ebp - 0xa68], ebx
mov dword [ebp - 0xa64], ebx
mov dword [ebp - 0xa60], ebx
call fcn.0041a66e
add esp, 4
xor eax, eax
jmp 0x403cfe
lea ecx, [ebp - 0x218]
push ecx
push str.http:__dl.360safe.com_gf_360ini.cab
call fcn.00403700
add esp, 8
test eax, eax
jne 0x403bae
lea esi, [ebp - 0xa74]
call fcn.00404030
xor eax, eax
jmp 0x403cfe
lea edx, [ebp - 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea esi, [ebp - 0xa38]
call fcn.00403000
mov eax, esi
push eax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x403c1d
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xa78]
call fcn.00401730
mov eax, dword [eax]
push eax
push ebx
mov dword [ebp - 0xa5c], 1
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov byte [ebp - 0xa55], 1
test eax, eax
jne 0x403c24
mov byte [ebp - 0xa55], 0
test byte [ebp - 0xa5c], 1
je 0x403c4f
mov eax, dword [ebp - 0xa78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xa55], 0
jne 0x403b2e
lea ecx, [ebp - 0x420]
push ecx
push 0x4030b0
push ebx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, ebx
je 0x403b2e
push str.360ini.dll
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x830]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x403cb9
lea esi, [ebp - 0xa74]
call fcn.00404030
xor eax, eax
jmp 0x403cfe
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403caa
push ebx
push ebx
lea ecx, [ebp - 0x830]
push ecx
xor ecx, ecx
call fcn.00402670
test eax, eax
jne 0x403ce2
xor edi, edi
jmp 0x403cf1
lea edx, [ebp - 0x830]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
lea esi, [ebp - 0xa74]
call fcn.00404030
mov eax, edi
lea esp, [ebp - 0xa90]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041a78d
mov esp, ebp
pop ebp
ret