Function at 0x40c360
Capabilities:
Accept command line arguments
Get common file path
Get disk information
Get file size
Identify system language via api
Manipulate console buffer
Move file
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41114b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x21b0
call fcn.0040b720
push ebx
mov ebx, dword [sym.imp.USER32.dll_CharUpperBuffW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
xor esi, esi
cmp esi, 0x1f029
jge 0x40c3b2
push 0
call edi
push 0
push 0
call ebx
call ebp
cmp esi, 0x1e970ad2
jle 0x40c3ce
cmp dword [esp + 0x10], 0xae6930
je 0x40c3ce
cmp dword [esp + 0x44], 0x8924530
jne 0x40c3d7
inc esi
cmp esi, 0x95c3c4c0
jb 0x40c39e
cmp dword [0x2b41c34], 0x520
jne 0x40c40f
push 0
call fcn.0040bed8
add esp, 4
lea eax, [esp + 0x38]
push eax
call fcn.004044b0
xor eax, eax
push eax
mov dword [esp + 0x3c], 0x4034ac
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
call fcn.00404fa5
mov eax, 0x39ee
add dword [0x2b41c34], eax
mov ecx, dword [0x2b41c34]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov ebp, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x2b37bdc], eax
mov eax, dword [0x2b41c34]
mov dword [esp + 0x10], 0x9682ab
cmp eax, 3
jne 0x40c463
push 0
push 0
call edi
mov eax, dword [0x2b41c34]
cmp eax, 0xdf
jne 0x40c584
xor edx, edx
lea ecx, [esp + 0x1c]
push ecx
push edx
push edx
lea eax, [esp + 0x5cc]
push eax
push edx
mov dword [esp + 0x2c], edx
call esi
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call ebp
push 0
push 0
call ebx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push 0
push 0x4032dc
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
lea edx, [esp + 0x11c4]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
lea eax, [esp + 0xdc4]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapSize]
push 0x4032f4
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0x403304
push 0x403338
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
lea ecx, [esp + 0x1c4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x2b41c34]
dec dword [esp + 0x10]
jne 0x40c453
xor esi, esi
test eax, eax
je 0x40c5e2
mov ebx, dword [sym.imp.KERNEL32.dll__llseek]
mov ebp, dword [sym.imp.KERNEL32.dll__lclose]
cmp eax, 0xfe
jne 0x40c5d3
push 0
push 0
push 0
call ebx
push 0
call ebp
push 0
lea edx, [esp + 0x1c4]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
call fcn.0040bfd0
mov eax, dword [0x2b41c34]
inc esi
cmp esi, eax
jb 0x40c5a0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
cmp eax, 0x584
jne 0x40c70b
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea edx, [esp + 0x1c0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
lea eax, [esp + 0xdc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
mov esi, dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
call esi
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 0
call edi
push 0
call esi
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
call ebx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x4033a4
lea edx, [esp + 0x11c4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0
lea eax, [esp + 0x5c8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
lea ecx, [esp + 0x19c4]
push ecx
push 0x4033dc
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov edi, dword [sym.imp.GDI32.dll_GetCharWidthA]
mov esi, 0x8dc
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
push 0
push 0
call edi
dec esi
jne 0x40c716
mov byte [0x439ea8], 0
call fcn.0040bef0
call fcn.0040c330
mov edi, dword [sym.imp.GDI32.dll_GetCharWidthFloatW]
cmp dword [0x2b41c34], 0xba
jne 0x40c758
push 0
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x40c76a
add dword [0x2b37bdc], 0x27fb
inc esi
cmp esi, 0x46d9a
jl 0x40c742
call fcn.0040c130
cmp dword [0x2b41c34], 0xc30
jne 0x40c7d7
lea edx, [esp + 0x80]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x4033f4
call esi
push 0x4033fc
call esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
call ebx
push 0
lea ecx, [esp + 0x5c4]
push ecx
push 0x403408
push 0x403448
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
mov ecx, dword [esp + 0x21c4]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret