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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bce66
mov eax, dword fs:[0]
push eax
sub esp, 0xa74
mov eax, dword [0x4e97d0]
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
xor ebx, ebx
lea ecx, [ebp - 0xa74]
mov dword [ebp - 0xa5c], ebx
call fcn.0040b840
lea eax, [ebp - 0xa74]
push eax
mov dword [ebp - 4], ebx
call fcn.0040aeb0
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.360ini.cab
lea edx, [ebp - 0x218]
push edx
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 0x40b2ea
xor edi, edi
mov dword [ebp - 0xa78], edi
cmp esi, ebx
jbe 0x40b279
mov dword [ebp - 0xa7c], ebx
push 0x206
lea ecx, [ebp - 0x626]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x628], ax
call fcn.00484150
add esp, 0xc
cmp edi, esi
jb 0x40b129
call fcn.0048a1d7
mov edx, dword [ebp - 0xa7c]
mov eax, dword [ebp - 0xa68]
push 0xffffffffffffffff
add eax, edx
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.0040bae0
mov byte [ebp - 4], 1
cmp dword [ebp - 0xa3c], 0x10
jb 0x40b178
mov ebx, dword [ebp - 0xa50]
test ebx, ebx
jne 0x40b17e
xor eax, eax
jmp 0x40b1c1
lea ebx, [ebp - 0xa50]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jg 0x40b1b9
lea eax, [edi + edi]
call fcn.0048ec20
mov esi, esp
test esi, esi
je 0x40b1b9
push edi
push esi
push 0xffffffffffffffff
xor ecx, ecx
push ebx
push ecx
push 3
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40b1bb
xor eax, eax
mov edi, dword [ebp - 0xa78]
push eax
lea edx, [ebp - 0x628]
push str.http:___s_gf_360ini.cab
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor esi, esi
lea esp, [esp]
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x628]
call fcn.0040aa00
test eax, eax
jne 0x40b25b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jb 0x40b1e0
mov byte [ebp - 4], 0
cmp dword [ebp - 0xa3c], 0x10
jb 0x40b222
mov eax, dword [ebp - 0xa50]
push eax
call fcn.0048413e
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 0x40b102
jmp 0x40b279
mov byte [ebp - 4], 0
cmp dword [ebp - 0xa3c], 0x10
jb 0x40b277
mov ecx, dword [ebp - 0xa50]
push ecx
call fcn.0048413e
add esp, 4
xor ebx, ebx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b314
mov eax, dword [ebp - 0xa68]
cmp eax, ebx
je 0x40b2c2
mov ecx, dword [ebp - 0xa5c]
push ecx
mov ecx, dword [ebp - 0xa64]
lea edx, [ebp - 0xa6c]
push edx
push ecx
push eax
call fcn.0040d480
mov edx, dword [ebp - 0xa68]
push edx
call fcn.0048413e
add esp, 0x14
mov eax, dword [ebp - 0xa74]
push eax
mov dword [ebp - 0xa68], ebx
mov dword [ebp - 0xa64], ebx
mov dword [ebp - 0xa60], ebx
call fcn.0048413e
add esp, 4
xor eax, eax
jmp 0x40b463
lea ecx, [ebp - 0x218]
push ecx
push str.http:__dl.360safe.com_gf_360ini.cab
call fcn.0040ae70
add esp, 8
test eax, eax
jne 0x40b314
lea ecx, [ebp - 0xa74]
call fcn.0040b8a0
xor eax, eax
jmp 0x40b463
lea edx, [ebp - 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea esi, [ebp - 0xa38]
call fcn.0040a750
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 0x40b383
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xa78]
call fcn.0040b680
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 0x40b38a
mov byte [ebp - 0xa55], 0
test byte [ebp - 0xa5c], 1
je 0x40b3b5
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 0x40b3b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xa55], 0
jne 0x40b28e
lea ecx, [ebp - 0x420]
push ecx
push 0x40a800
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 0x40b28e
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 0x40b41f
lea ecx, [ebp - 0xa74]
call fcn.0040b8a0
xor eax, eax
jmp 0x40b463
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b410
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x830]
push ecx
call fcn.0040e410
test eax, eax
jne 0x40b447
xor esi, esi
jmp 0x40b456
lea edx, [ebp - 0x830]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
lea ecx, [ebp - 0xa74]
call fcn.0040b8a0
mov eax, esi
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.00484247
mov esp, ebp
pop ebp
ret