Function at 0x4048a0
Capabilities:
Check mutex on windows
Copy file
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8e4
mov eax, dword [0x460adc]
xor eax, esp
mov dword [esp + 0x8e0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [0x463230], 1
jne 0x404ad0
lea eax, [esp + 0xa0]
call fcn.00416f10
cmp dword [esp + 0xb4], 8
jb 0x4048fc
mov eax, dword [esp + 0xa0]
push eax
call fcn.004204e8
add esp, 4
lea eax, [esp + 0x84]
call fcn.00416f10
mov ecx, dword [esp + 0x94]
push 0xc
push 0x4565ec
push ecx
push ebx
lea ecx, [esp + 0x94]
call fcn.00404f00
test eax, eax
je 0x4049ad
mov edx, dword [esp + 0x94]
push 0xb
push str.dllhost.exe
push edx
push ebx
lea ecx, [esp + 0x94]
call fcn.00404f00
test eax, eax
je 0x4049ad
mov eax, dword [esp + 0x94]
push 0xc
push str.explorer.exe
push eax
push ebx
lea ecx, [esp + 0x94]
call fcn.00404f00
test eax, eax
je 0x4049ad
cmp dword [esp + 0x94], ebx
je 0x4049ad
push ebx
push 0x45663c
push 0x456648
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x84]
call fcn.004389c0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8e0]
xor ecx, esp
call fcn.004204f3
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea ecx, [esp + 0x2e4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0xd8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0xd8]
push eax
push ebx
push 0x4566a8
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ebx
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
push 0x4000000
push 3
push ebx
push 1
push ebx
lea ecx, [esp + 0xf0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp dword [esp + 0x98], 8
mov esi, eax
mov eax, dword [esp + 0x84]
jae 0x404a4c
lea eax, [esp + 0x84]
push eax
lea edx, [esp + 0x2e4]
push edx
push esi
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x4f8]
push str._s__d___s____s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea edx, [esp + 0x54]
push ebx
push edx
call fcn.00422fb0
add esp, 0x24
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea edx, [esp + 0x508]
push edx
push ebx
mov dword [esp + 0x60], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
cmp dword [esp + 0x98], 8
jb 0x404da3
mov eax, dword [esp + 0x84]
push eax
jmp 0x404d9b
push str.Unins_weather
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404da3
mov ecx, dword [0x463238]
mov edx, dword [ecx + 4]
xor eax, eax
mov word [esp + 0x84], ax
mov eax, edx
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], ebx
lea esi, [eax + 2]
jmp 0x404b20
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404b20
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x8c]
call fcn.00403280
push 7
push str.http:__
lea ecx, [esp + 0x8c]
push ecx
xor eax, eax
call fcn.00404e40
cmp eax, 0xffffffff
je 0x404d13
push 0x206
lea eax, [esp + 0xde]
xor edx, edx
push ebx
push eax
mov word [esp + 0xe4], dx
call fcn.00422fb0
add esp, 0xc
lea ecx, [esp + 0xd8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x404987
lea edx, [esp + 0xd8]
push edx
lea ecx, [esp + 0xc0]
call fcn.004087c0
mov eax, dword [0x463238]
mov edx, dword [eax + 8]
mov eax, edx
lea esi, [eax + 2]
jmp 0x404bc0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404bc0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0xc4]
call fcn.00402950
call fcn.00404dc0
sub esp, 0x1c
lea edx, [esp + 0xd8]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004024c0
call fcn.00409090
test al, al
jne 0x404ccd
push 0x45631c
push ebx
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x20], eax
xor eax, eax
mov word [esp + 0xa0], ax
lea edx, [esp + 0xf]
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xc8]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x3c]
push eax
mov edx, 0x45631c
mov dword [esp + 0xd4], 7
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x30], 3
mov dword [esp + 0x3c], 0x100000
mov dword [esp + 0x34], ebx
mov byte [esp + 0x2f], bl
call fcn.00404f90
sub esp, 0x1c
lea edx, [esp + 0xbc]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.004024c0
lea ecx, [esp + 0x3c]
call fcn.0040dd60
lea ecx, [esp + 0xa0]
call fcn.004389c0
lea esi, [esp + 0x20]
call fcn.00404860
cmp dword [esp + 0xd0], 8
mov eax, dword [esp + 0xbc]
jae 0x404ce5
lea eax, [esp + 0xbc]
push 5
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0xbc]
call fcn.004389c0
lea ecx, [esp + 0x84]
call fcn.004389c0
jmp 0x404da3
mov eax, dword [0x463238]
mov ecx, dword [eax + 0xc]
push ecx
push edi
call fcn.00402610
mov edx, dword [0x463238]
mov ecx, dword [edx + 8]
mov edx, eax
call fcn.00401710
mov eax, dword [0x463238]
mov ecx, dword [eax + 4]
push ecx
call fcn.00420c37
add esp, 4
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00402610
cmp byte [eax + 0x18], bl
je 0x404d6f
mov edx, dword [0x463238]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00402610
mov esi, eax
cmp esi, ebx
je 0x404d89
push esi
call fcn.00401660
push esi
call fcn.004204e8
add esp, 4
cmp dword [esp + 0x98], 8
jb 0x404da3
mov ecx, dword [esp + 0x84]
push ecx
call fcn.004204e8
add esp, 4
mov ecx, dword [esp + 0x8ec]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004204f3
mov esp, ebp
pop ebp
ret 0x10