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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a00b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x400c
call fcn.004999f0
mov eax, dword [0x4b7080]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x301a]
mov word [ebp - 0x301c], bx
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov byte [ebp - 4], 1
stosw word es:[edi], ax
lea eax, [ebp - 0x301c]
push eax
push 0x800
call esi
lea ecx, [ebp - 0x101c]
lea edx, [ebp - 0x301c]
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x4b7164
push edx
call ebx
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x800
lea ecx, [ebp - 0x101c]
push str.360net.dll
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncat]
lea edx, [ebp - 0x101c]
add esp, 0xc
test edx, edx
jne 0x40240d
xor eax, eax
jmp 0x40241a
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x101c]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00406cb0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x401a]
mov word [ebp - 0x401c], 0
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x401c]
push edx
push 0x800
stosw word es:[edi], ax
call esi
lea eax, [ebp - 0x201c]
lea ecx, [ebp - 0x401c]
push eax
push 0
push 0x4b7164
push ecx
call ebx
lea edx, [ebp - 0x201c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x800
lea eax, [ebp - 0x201c]
push str.safe505.dll
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
lea ecx, [ebp - 0x201c]
add esp, 0xc
test ecx, ecx
jne 0x40249e
xor eax, eax
jmp 0x4024ab
lea edx, [ebp - 0x201c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x201c]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00406cb0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x1a8]
lea esi, [ebx + 0x1a8]
cmp ecx, eax
je 0x402513
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4024e5
mov edx, dword [0x4b7084]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4024ec
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4024fa
mov edx, dword [eax - 8]
push eax
push edx
mov ecx, esi
call fcn.00406cb0
jmp 0x402510
mov ecx, esi
call fcn.00406f50
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov esi, dword [eax - 8]
lea edi, [eax - 0xc]
cmp ecx, 1
mov byte [ebp - 4], 2
jg 0x40252a
cmp esi, dword [eax - 4]
jle 0x402560
push esi
lea ecx, [ebp - 0x14]
call fcn.00406c50
test eax, eax
je 0x402560
lea eax, [esi + esi + 2]
lea ecx, [edi + 0xc]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [esi + esi + 2]
push ecx
push edx
push eax
call fcn.00405800
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push edi
mov dword [ecx - 8], esi
call fcn.00406f90
mov eax, dword [ebp - 0x14]
push eax
push str.SaveTrayDll
push 0xe9
call fcn.00407480
mov dword [ebx + 0x1a4], eax
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [eax - 0xc]
mov esi, dword [eax - 8]
lea edi, [eax - 0xc]
cmp ecx, 1
jg 0x40258f
cmp esi, dword [eax - 4]
jle 0x4025c5
push esi
lea ecx, [ebp - 0x18]
call fcn.00406c50
test eax, eax
je 0x4025c5
lea edx, [esi + esi + 2]
lea eax, [edi + 0xc]
push edx
mov edx, dword [ebp - 0x18]
lea ecx, [esi + esi + 2]
push eax
push ecx
push edx
call fcn.00405800
mov eax, dword [ebp - 0x18]
add esp, 0x10
push edi
mov dword [eax - 8], esi
call fcn.00406f90
mov eax, dword [ebp - 0x18]
push eax
push str.HttpDownLib
push 0xe4
call fcn.00407480
add esp, 0xc
test eax, eax
jne 0x402651
mov eax, dword [ebp - 0x14]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x402609
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x402609
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
mov eax, dword [ebp - 0x18]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x402701
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x402701
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x18]
lea esi, [ebx + 4]
cmp eax, ecx
je 0x40269d
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x402672
mov edx, dword [0x4b7084]
add eax, 0xfffffff4
cmp eax, edx
jne 0x402679
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x402687
mov eax, dword [ecx - 8]
push ecx
push eax
mov ecx, esi
call fcn.00406cb0
jmp 0x40269d
mov ecx, esi
call fcn.00406f50
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esi]
mov ecx, dword [ebx + 0x18]
push esi
call fcn.00417dc0
test al, al
je 0x4026e6
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0040c0e0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c0e0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040c0e0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c0e0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret