Function at 0x413b70
Capabilities:
Accept command line arguments
Create mailslot
Delete file
Get common file path
Get disk information
Get file attributes
Get hostname
Identify system language via api
Manipulate console buffer
Move file
Set current directory
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4187dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x3398
call fcn.00413110
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x114]
push esi
push edi
xor edi, edi
xor esi, esi
lea esp, [esp]
cmp esi, 0x1f03c
jge 0x413bc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, 0x1e970b36
jle 0x413bdc
cmp ebx, 0xbd844c
je 0x413bdc
cmp ebp, 0x8910cb0
jne 0x413be5
inc esi
cmp esi, 0x95c3c0e2
jb 0x413bb0
cmp dword [0x22dbd2c], 0x84
jne 0x413ee3
push edi
call fcn.00407d5f
add esp, 4
push edi
push edi
call fcn.0040773d
push edi
call fcn.00407d5f
add esp, 0xc
lea eax, [esp + 0x70]
push eax
call fcn.00405ae0
mov dword [esp + 0x33b4], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x33b4], 1
xor eax, eax
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413c50
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x413c6a
push 0x4042d0
call fcn.0040728a
cmp esi, 0xf
jbe 0x413c7c
push edi
push esi
lea ecx, [esp + 0x3c]
call fcn.004069b0
jmp 0x413c89
cmp esi, edi
jne 0x413c8b
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
cmp esi, edi
seta al
mov ebp, 0x10
test al, al
je 0x413cc6
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebp
jae 0x413ca5
lea eax, [esp + 0x34]
push esi
push edi
push eax
call fcn.00408300
mov eax, dword [esp + 0x40]
add esp, 0xc
mov dword [esp + 0x44], esi
cmp dword [esp + 0x48], ebp
jae 0x413cc2
lea eax, [esp + 0x34]
mov byte [eax + esi], 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x33b4], 2
call fcn.004063c0
mov ebx, dword [esp + 0x24]
push ebx
lea edi, [esp + 0x38]
call fcn.00406c50
add ebx, 0x1c
cmp dword [esp + 0x48], ebp
jb 0x413cfb
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00407ea5
add esp, 4
push 0
call fcn.00407eb0
add esp, 4
push 0
push 0
call fcn.00407c8b
push 0
call fcn.00407ccb
add esp, 0xc
push 0
call fcn.00407ccb
add esp, 4
push 0
push 0
call fcn.00407c8b
push 0
call fcn.00407c51
add esp, 0xc
push 0
push 0
push 0
call fcn.00407f50
add esp, 0xc
push 0
push 0
push 0
push 0
call fcn.00407e73
mov edi, dword [esp + 0x30]
add esp, 0x10
test edi, edi
je 0x413d76
mov esi, edi
cmp edi, ebx
je 0x413d6d
call fcn.00406ca0
add esi, 0x1c
cmp esi, ebx
jne 0x413d61
push edi
call fcn.00407ea5
add esp, 4
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xc8]
mov dword [esp + 0x1c], edx
mov dword [esp + ecx + 0x70], 0x40438c
mov dword [esp + 0x33b4], 3
test byte [esp + 0xc0], 1
lea edx, [esp + 0x80]
mov dword [esp + 0x50], edx
mov dword [esp + 0x80], 0x40434c
je 0x413dcd
mov eax, dword [esp + 0x90]
mov eax, dword [eax]
push eax
call fcn.00407ea5
add esp, 4
mov ecx, dword [esp + 0x90]
mov dword [ecx], 0
mov edx, dword [esp + 0xa0]
mov dword [edx], 0
mov eax, dword [esp + 0xb0]
mov dword [eax], 0
mov ecx, dword [esp + 0x94]
mov dword [ecx], 0
mov edx, dword [esp + 0xa4]
mov dword [edx], 0
mov eax, dword [esp + 0xb4]
mov dword [eax], 0
and dword [esp + 0xc0], 0xfffffffe
mov dword [esp + 0xbc], 0
mov dword [esp + 0x80], 0x404304
mov byte [esp + 0x33b4], 4
mov eax, dword [esp + 0xb8]
mov ebx, eax
test eax, eax
je 0x413e98
mov edi, dword [eax]
test edi, edi
je 0x413e8f
push 0
lea ecx, [esp + 0x18]
call fcn.0040739f
mov eax, dword [edi + 4]
test eax, eax
je 0x413e6f
cmp eax, 0xffffffff
jae 0x413e6f
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x14]
not esi
call fcn.004073c7
and esi, edi
je 0x413e8f
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebx
call fcn.00407ea5
add esp, 4
lea ecx, [esp + 0x84]
mov byte [esp + 0x33b4], 3
call fcn.004073f8
mov dword [esp + 0x33b4], 0xffffffff
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xc8]
mov dword [esp + edx + 0x70], 0x404344
push eax
mov dword [esp + 0xcc], 0x4042f0
call fcn.00406ece
add esp, 4
xor edi, edi
mov eax, 0x5d1
add dword [0x22dbd2c], eax
mov ecx, dword [0x22dbd2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov edi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileType]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov dword [0x22d1cd4], eax
mov eax, dword [0x22dbd2c]
mov dword [esp + 0x14], 0x9682ab
cmp eax, 3
jne 0x413f3c
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [0x22dbd2c]
cmp eax, 0xdf
jne 0x4140ed
xor edx, edx
lea ecx, [esp + 0x50]
push ecx
push edx
push edx
lea eax, [esp + 0x17b4]
push eax
push edx
mov dword [esp + 0x30], edx
call esi
xor eax, eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x114]
push edx
push eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
call edi
push 0
call ebp
push 0
push 0
push 0
push 0x40408c
call ebx
lea eax, [esp + 0x6c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x68]
push ecx
push 0
lea edx, [esp + 0x3c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea ecx, [esp + 0x30]
push ecx
push 0
lea edx, [esp + 0x27b0]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push 0
lea eax, [esp + 0x7ac]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push 0x40409c
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
push 0
lea ecx, [esp + 0xfac]
push ecx
push 0
push 0x4040b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x4040bc
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
lea edx, [esp + 0x158]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x4040d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
lea eax, [esp + 0x1fac]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3ac]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
lea eax, [esp + 0x2bac]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [0x22dbd2c]
dec dword [esp + 0x14]
jne 0x413f26
xor esi, esi
test eax, eax
je 0x414159
mov ebx, dword [sym.imp.KERNEL32.dll__hread]
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
cmp eax, 0xfe
jne 0x41412e
push 0
push 0
push 0
call ebx
push 0
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.004138d0
mov eax, dword [0x22dbd2c]
cmp eax, 0x29
jne 0x414154
push 0
push 0
push 0
push 0x404180
push 0x404190
call edi
mov eax, dword [0x22dbd2c]
inc esi
cmp esi, eax
jb 0x41410f
mov ebp, dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp eax, 0x70
jne 0x41422e
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea edx, [esp + 0x2ba8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
lea eax, [esp + 0x1fac]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push 0x4041d4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
push 0
call ebp
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
call ebp
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
xor edx, edx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
lea eax, [esp + 0xfac]
push eax
push edx
lea ecx, [esp + 0x2c]
push ecx
push edx
push edx
mov word [esp + 0x38], dx
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x8dc
push 0
call edi
dec esi
jne 0x414239
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, 0x25887
jmp 0x414250
cmp dword [0x22dbd2c], 0x222
jne 0x414271
push 0x4041f8
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
dec edi
jne 0x414250
mov byte [0x4386a0], 0
call fcn.00413830
call fcn.00413b20
mov edi, dword [sym.imp.KERNEL32.dll_GetHandleInformation]
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomW]
xor esi, esi
cmp dword [0x22dbd2c], 0xba
jne 0x4142a9
push 0
push 0
call edi
push 0
call ebx
cmp esi, 0x2f64
jne 0x4142bb
add dword [0x22d1cd4], 0x2b4c
inc esi
cmp esi, 0x46d9a
jl 0x414293
mov esi, dword [sym.imp.KERNEL32.dll__llseek]
mov edi, 0xf2b8b
nop
cmp dword [0x22dbd2c], 0x21
jne 0x4142e1
push 0
push 0
push 0
call esi
dec edi
jne 0x4142d0
mov edx, 0x73
mov eax, 0x6d
mov word [0x22d1d6a], dx
mov word [0x22d1d6e], ax
xor eax, eax
mov ecx, 0x33
mov edx, 0x67
mov word [0x22d1d72], cx
mov word [0x22d1d7e], ax
mov word [0x22d1d70], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
push 0x22d1d68
mov dword [0x22d1d78], 0x6c0064
mov word [0x22d1d6c], ax
mov word [0x22d1d68], cx
mov word [0x22d1d7c], dx
mov dword [0x22d1d74], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x22dbd2c], 0xc30
jne 0x4143d5
push edi
call dword [sym.imp.KERNEL32.dll_LocalSize]
push edi
call ebp
lea edx, [esp + 0x158]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push edi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x404238
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x30]
push edx
push edi
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push edi
lea ecx, [esp + 0x3ac]
push ecx
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
mov ecx, dword [esp + 0x33ac]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret