Function at 0x415420
Capabilities:
Connect pipe
Copy file
Get disk information
Get file attributes
Get hostname
Move file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1858
call fcn.00406fc0
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
push edi
xor edi, edi
jmp 0x415450
cmp dword [0x50fa3c], 0x7d
jne 0x415484
push 0
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x184c]
push ecx
lea edx, [ebp - 0x1840]
push edx
lea eax, [ebp - 0x1850]
push eax
push 0
lea ecx, [ebp - 0x1004]
push ecx
push 0
call ebx
cmp edi, 0x4d4
jne 0x41549e
mov edx, dword [0x419410]
add edx, 0x9e49
mov dword [0x50fa3c], edx
cmp dword [0x50fa3c], 0xcf9
jne 0x4154e3
xor ecx, ecx
xor eax, eax
lea edx, [ebp - 0x1848]
push edx
mov word [ebp - 0x183c], ax
mov word [ebp - 0x183a], cx
mov eax, dword [ebp - 0x183c]
push eax
push ecx
push ecx
push ecx
call esi
mov dword [0x419ff0], 0xec58ac98
mov dword [0x419ff4], 0xffffffff
inc edi
cmp edi, 0x114becc
jl 0x415450
mov edi, dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
xor esi, esi
cmp esi, 0x56051f
jne 0x41550c
mov ecx, dword [0x418c48]
mov dword [0x50fb6c], ecx
cmp dword [0x50fa3c], 0x3c
jne 0x415519
push 0
call edi
inc esi
cmp esi, 0x4cab834c
jl 0x4154f8
cmp dword [0x50fa3c], 0x7c
jne 0x415640
push 0
push 0
lea edx, [ebp - 0x1848]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
call dword [sym.imp.USER32.dll_GetFocus]
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea eax, [ebp - 0x1850]
push eax
lea ecx, [ebp - 0x1004]
push ecx
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push 0x2e
lea edx, [ebp - 0x1834]
push esi
push edx
mov dword [ebp - 0x1838], esi
call fcn.00404d40
add esp, 0xc
push esi
lea eax, [ebp - 0x1838]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
lea ecx, [ebp - 0x184c]
push ecx
mov dword [ebp - 0x184c], esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor eax, eax
xor edx, edx
mov word [ebp - 0x183e], ax
xor ecx, ecx
mov word [ebp - 0x183a], dx
lea eax, [ebp - 0x1858]
push eax
mov word [ebp - 0x183c], cx
mov ecx, dword [ebp - 0x183c]
push ecx
mov word [ebp - 0x1840], dx
mov edx, dword [ebp - 0x1840]
push edx
lea eax, [ebp - 0x1844]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
push esi
lea ecx, [ebp - 0x404]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAdjustment]
cmp dword [0x50fa3c], 0x2d
jne 0x415631
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call fcn.004011f6
push esi
call fcn.0040120c
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_SetCommState]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov edi, edi
push 0
push 0
call edi
call ebx
cmp esi, 0x24bfd
jg 0x415669
inc esi
cmp esi, 0xebabb
jl 0x415650
cmp dword [0x50fa3c], 0x2a
jne 0x415729
xor esi, esi
push esi
mov dword [0x50fa30], esi
mov dword [0x50fa34], esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
lea edx, [ebp - 0x1844]
push edx
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
lea ecx, [ebp - 0x1848]
push ecx
push str.sutelizunosisibure
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
push esi
push esi
lea edx, [ebp - 0x804]
push edx
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push esi
lea eax, [ebp - 0x1804]
push eax
push str.tekeragej
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommState]
push esi
push esi
call fcn.0040109d
push esi
push esi
call fcn.00401217
push esi
call fcn.0040100f
push esi
call fcn.0040112c
push esi
push esi
call fcn.0040109d
push esi
call fcn.00407134
push esi
push esi
call fcn.0040109d
push esi
call fcn.0040112c
add esp, 0x30
push esi
call fcn.004016d2
call fcn.004150d0
mov ecx, dword [0x50fa3c]
xor eax, eax
test ecx, ecx
jbe 0x41576d
mov edi, dword [0x50fb6c]
mov esi, dword [0x50f884]
mov edx, 0x17bc
jmp 0x415750
mov bl, byte [edi + eax + 0x9e49]
mov byte [eax + esi], bl
cmp ecx, 0x8d
jne 0x415768
mov dword [0x50f888], edx
inc eax
cmp eax, ecx
jb 0x415750
push str.gavosebisiv
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.00415100
call fcn.00415380
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, dword [sym.imp.KERNEL32.dll_SetStdHandle]
xor esi, esi
cmp dword [0x50fa3c], 0x41
jne 0x4157af
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp esi, 0xd606b
jne 0x4157bc
call fcn.004150f0
cmp dword [0x50fa3c], 0xc
jne 0x4157d2
lea ecx, [ebp - 0x1844]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
inc esi
cmp esi, 0x24e87d
jl 0x415790
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, 0x1d5ed5
mov edi, 0x8e4e4fe0
jmp 0x4157f0
cmp dword [0x50fa3c], 0x7c4
mov dword [0x50f88c], edi
jne 0x415809
push str.huzunupiwaxudoy
call esi
sub ebx, 1
jne 0x4157f0
mov ecx, dword [ebp - 0x1828]
pop edi
pop esi
xor eax, eax
pop ebx
lea esp, [esp]
cmp eax, 0x408e
jle 0x41582f
cmp ecx, 0xf5bed7
jne 0x415837
inc eax
cmp eax, 0x687ed2
jl 0x415820
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret