Function at 0x401180
Capabilities:
Accept command line arguments
Copy file
Create process on windows
Set file attributes

Disassembly:
sub esp, 0x220
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x408220
push eax
call fcn.00401470
add esp, 8
cmp eax, ebx
je 0x40140d
push eax
call section..text
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x40140d
push 0x408220
push edi
call fcn.00401470
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x40140d
mov eax, edi
mov byte [ebp], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401200
sub eax, edx
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.00401712
push esi
push edi
push eax
mov dword [esp + 0x20], eax
call fcn.00401590
mov edx, dword [esp + 0x20]
add ebp, 1
push ebp
mov byte [esi + edx], bl
call section..text
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40140d
push 0x408220
push esi
call fcn.00401470
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
je 0x40125e
mov byte [eax], bl
add eax, 1
mov dword [esp + 0x14], eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401263
sub eax, edx
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00401712
push edi
mov ebx, eax
push esi
push ebx
call fcn.00401590
add esp, 0x10
mov byte [edi + ebx], 0
call fcn.004010c0
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor esi, esi
push 0x80
push ebx
call ebp
mov ecx, dword [esp + 0x10]
push 0
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4012ca
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 1
cmp esi, 0xa
jl 0x401297
jmp 0x4012cf
cmp esi, 0xa
jl 0x40134b
push 0x103
lea edx, [esp + 0x29]
push 0
push edx
mov byte [esp + 0x30], 0
call fcn.00401510
push 0x103
lea eax, [esp + 0x139]
push 0
push eax
mov byte [esp + 0x140], 0
call fcn.00401510
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
add esp, 0x18
push 0x104
lea ecx, [esp + 0x12c]
push ecx
push 2
push 0
call esi
push 0x104
lea edx, [esp + 0x28]
push edx
push 3
push 0
call esi
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x401454
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401366
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401356
sub eax, edx
mov edi, eax
add edi, 0xa
push edi
call fcn.00401712
mov ebp, eax
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
mov dword [esp + 0x1c], ebp
mov dword [ebp], 0
je 0x4013b0
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401386
mov edi, ebp
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401396
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 5
push 0
push ebp
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jae 0x401403
push 0xff
lea edx, [esp + 0x29]
push 0
push edx
mov byte [esp + 0x30], 0
call fcn.00401510
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push 0x100
lea eax, [esp + 0x28]
push eax
push 1
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
push 0
lea edx, [esp + 0x2c]
push edx
jmp 0x401419
mov dword [esp + 0x18], 1
jmp 0x401421
push 0
push str.Usage
push str.Usage:_ReUpdate.exe__SRC_File___Desc_File___UpdateParam_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401432
push eax
call fcn.0040158a
add esp, 4
test ebx, ebx
je 0x40143f
push ebx
call fcn.0040158a
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401450
push eax
call fcn.0040158a
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004014f6
add esp, 0x220
ret 0x10