Function at 0x401750
Capabilities:
Accept command line arguments
Copy file
Create process on windows
Get common file path
Get file attributes
Get memory capacity
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51df56
mov eax, dword fs:[0]
push eax
sub esp, 0x3bc
mov eax, dword [0x569600]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x54ae84
push 0x54ae90
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push 0x100
lea eax, [ebp - 0x328]
push eax
push 0
push 0x1d7b
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x54ae9c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x104
lea ecx, [ebp - 0x120]
push ecx
or edi, 0xffffffff
push 0
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4019e4
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [ebp - 0x38c]
push edx
call esi
lea eax, [ebp - 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 0
push 0xf
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea ecx, [ebp - 0x3a4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
lea edx, [ebp - 0x228]
push edx
push 0x104
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4019e4
lea eax, [ebp - 0x38c]
push eax
mov dword [ebp - 0x18], 0x652e7468
mov word [ebp - 0x14], 0x6578
mov byte [ebp - 0x12], 0
call esi
call ebx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x1464
call ebx
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push 0x54aea8
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 4], edi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x368], 0xf
mov dword [ebp - 0x36c], 0
mov byte [ebp - 0x37c], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018c4
sub eax, esi
mov edi, eax
lea eax, [ebp - 0x228]
lea esi, [ebp - 0x37c]
call fcn.00401070
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [ebp - 0x18]
push ecx
mov edx, esi
push edx
lea eax, [ebp - 0x344]
push eax
mov dword [ebp - 4], 6
call fcn.00402530
add esp, 0xc
push 0x54aeb0
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 4], 9
mov ebx, 0xf
lea eax, [ebp - 0x120]
mov dword [ebp - 0x34c], ebx
mov dword [ebp - 0x350], 0
mov byte [ebp - 0x360], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401941
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x120]
lea esi, [ebp - 0x360]
call fcn.00401070
call dword [sym.imp.KERNEL32.dll_GetACP]
push 4
mov ecx, esi
push ecx
call fcn.004024a0
mov esi, 0x10
cmp eax, 0xffffffff
je 0x4019eb
cmp dword [ebp - 0x34c], esi
jb 0x40198e
mov edx, dword [ebp - 0x360]
push edx
call fcn.004049c6
add esp, 4
xor edi, edi
mov dword [ebp - 0x34c], ebx
mov dword [ebp - 0x350], edi
mov byte [ebp - 0x360], 0
cmp dword [ebp - 0x330], esi
jb 0x4019ba
mov eax, dword [ebp - 0x344]
push eax
call fcn.004049c6
add esp, 4
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x334], edi
mov byte [ebp - 0x344], 0
cmp dword [ebp - 0x368], esi
jb 0x4019e4
mov ecx, dword [ebp - 0x37c]
push ecx
call fcn.004049c6
add esp, 4
xor al, al
jmp 0x401b53
mov eax, dword [ebp - 0x344]
cmp dword [ebp - 0x330], esi
jae 0x4019ff
lea eax, [ebp - 0x344]
xor edi, edi
push edi
push eax
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401a8a
cmp dword [ebp - 0x34c], esi
jb 0x401a2b
mov eax, dword [ebp - 0x360]
push eax
call fcn.004049c6
add esp, 4
mov dword [ebp - 0x34c], ebx
mov dword [ebp - 0x350], edi
mov byte [ebp - 0x360], 0
cmp dword [ebp - 0x330], esi
jb 0x401a55
mov ecx, dword [ebp - 0x344]
push ecx
call fcn.004049c6
add esp, 4
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x334], edi
mov byte [ebp - 0x344], 0
cmp dword [ebp - 0x368], esi
jb 0x4019e4
mov edx, dword [ebp - 0x37c]
push edx
call fcn.004049c6
add esp, 4
xor al, al
jmp 0x401b53
mov eax, dword [ebp - 0x344]
cmp dword [ebp - 0x330], esi
jae 0x401a9e
lea eax, [ebp - 0x344]
push 1
push edi
push edi
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
lea eax, [ebp - 0x3a4]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCPInfo]
call edi
lea ecx, [ebp - 0x3c4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x3c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea eax, [ebp - 0x390]
push eax
push 0
call edi
cmp esi, 0x20
lea esi, [ebp - 0x360]
jg 0x401b36
call fcn.00401040
lea esi, [ebp - 0x344]
call fcn.00401040
lea esi, [ebp - 0x37c]
call fcn.00401040
xor al, al
jmp 0x401b53
call fcn.00401040
lea esi, [ebp - 0x344]
call fcn.00401040
lea esi, [ebp - 0x37c]
call fcn.00401040
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fbd04
mov esp, ebp
pop ebp
ret