Function at 0x402db0
Capabilities:
Check mutex on windows
Copy file
Print debug messages

Disassembly:
mov eax, 0x3130
call fcn.004196c0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x1141]
mov byte [esp + 0x1140], bl
mov esi, dword [esp + 0x3144]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1140]
push esi
push eax
call fcn.00402780
add esp, 8
lea ecx, [esp + 0x1140]
push ecx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
cmp ebp, ebx
jne 0x402e21
push str._MassUP__Fail:_Cannot_Create_Mutex.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3130
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402e54
push str._MassUP__Fail:_Mutex_Already_Exists.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3130
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.mass2.dat
push 0x437280
lea edx, [esp + 0x44]
push 0x42f174
push edx
stosb byte es:[edi], al
call fcn.00419629
add esp, 0x10
lea eax, [esp + 0x3c]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x141]
mov byte [esp + 0x140], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00402d20
lea edx, [esp + 0x1c]
push 0xfff
push edx
push 0x437384
call fcn.004196f0
add esp, 0x10
lea eax, [esp + 0x18]
lea ecx, [esp + 0x140]
push 0x42f12c
push eax
push str._AhnLab_UpdateLog_
push str._s_s_s
push ecx
call fcn.00419629
lea edi, [esp + 0x154]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x2154], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x2155]
mov edx, ecx
mov ecx, 0x3ff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
push 0x80b
lea eax, [esp + 0x15c]
push edx
push eax
lea ecx, [esp + 0x2164]
push edx
push ecx
mov dword [esp + 0x40], edx
mov byte [esp + 0x3f], bl
call fcn.004020c0
add esp, 0x2c
test eax, eax
je 0x402f7b
push str._MassUP__Fail:_Enc_Fail
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3130
ret
push 3
push 0x42f150
push esi
call fcn.00402610
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x402fd4
push esi
push 1
lea edx, [esp + 0x1c]
push 4
push edx
call fcn.00419a50
push esi
push 1
lea eax, [esp + 0x2b]
push 1
push eax
call fcn.00419a50
mov ecx, dword [esp + 0x34]
push esi
push 1
lea edx, [esp + 0x2168]
push ecx
push edx
call fcn.00419a50
push esi
call fcn.004199d3
add esp, 0x34
mov ebx, 1
jmp 0x402fdf
push str._MassUP__Fail:_File_open_Fail.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x3130
ret