Function at 0x46a310
Capabilities:
Copy file
Delete file
Get common file path
Get disk information
Get file attributes
Manipulate console buffer
Query environment variable
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2658
call fcn.00409140
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x3c]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
xor esi, esi
cmp esi, 0x2cdbe
jge 0x46a342
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x7f4644], 0x6fb
jne 0x46a35c
push 0
lea eax, [esp + 0x66c]
push eax
push 0
call edi
cmp esi, 0x1e9afa0a
jle 0x46a374
cmp ebx, 0xc10c98
je 0x46a374
cmp ebp, 0x952fcbc
jne 0x46a37d
inc esi
cmp esi, 0x80c66
jl 0x46a334
cmp dword [0x7f4644], 0xcf8
jne 0x46a3f7
push 0x402d50
push 0
call fcn.0040337f
push 0
call fcn.004032a0
add esp, 0xc
push 0
push 0
call fcn.00403164
push 0
call fcn.00403374
add esp, 0xc
push 0
push 0
call fcn.00403260
push 0
push 0
call fcn.00403464
push 0x402d5c
push 0x402d60
push 0x470900
call fcn.004030e0
add esp, 0x1c
push 0
push 0
call fcn.00403260
push 0
push 0
call fcn.00403464
push 0
call fcn.0040343c
add esp, 0x14
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
xor esi, esi
cmp esi, 0x408
jne 0x46a418
mov eax, 0x5d1
add dword [0x7f4644], eax
cmp dword [0x7f4644], 3
jne 0x46a444
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
push 0x402d68
push ecx
mov dword [esp + 0x24], ecx
call edi
push 0
push 0
lea edx, [esp + 0x670]
push edx
call ebx
inc esi
cmp esi, 0x1518d4
jl 0x46a405
mov eax, dword [0x7f4644]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x475694], eax
mov eax, dword [0x7f4644]
xor esi, esi
test eax, eax
je 0x46a4ba
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
lea ecx, [ecx]
cmp eax, 0xfe
jne 0x46a48b
push 0
call ebp
call fcn.00469ea0
mov eax, dword [0x7f4644]
cmp eax, 0x29
jne 0x46a4b5
push 0
push 0
lea ecx, [esp + 0x670]
push ecx
push 0
call edi
push 0
push 0
call ebx
mov eax, dword [0x7f4644]
inc esi
cmp esi, eax
jb 0x46a480
cmp eax, 0x70
jne 0x46a5a6
push 0x402d78
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0x402d80
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea edx, [esp + 0x668]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
lea eax, [esp + 0x166c]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0
lea ecx, [esp + 0x12c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll__hread]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0x402d98
push 0x402dd0
call esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
push 0
push 0
lea edx, [esp + 0xe70]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
push 0
lea eax, [esp + 0x1e6c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
mov eax, dword [0x7f4644]
mov edi, dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov dword [esp + 0x14], 0x9682ab
jmp 0x46a5d0
cmp eax, 0xdf
jne 0x46a6d9
push 0
push 0
push 0
call edi
push 0
call ebx
xor ecx, ecx
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
lea edx, [esp + 0x1e74]
push edx
push ecx
mov dword [esp + 0x24], ecx
call ebp
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
lea ecx, [esp + 0x30]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
lea eax, [esp + 0x18]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalCompact]
push 0
lea edx, [esp + 0x12c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
lea eax, [esp + 0x38]
push eax
push 0x402dec
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindActCtxSectionStringA]
lea ecx, [esp + 0xe68]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x7f4644]
dec dword [esp + 0x14]
jne 0x46a5d0
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x12dba7f4
push 0
call edi
push 0
call ebx
dec esi
jne 0x46a6f4
mov byte [0x470900], 0
call fcn.00469db0
call fcn.0046a130
mov esi, dword [sym.imp.GDI32.dll_GetCharWidthFloatW]
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
xor ebp, ebp
cmp dword [0x7f4644], 0xba
jne 0x46a76f
push 0
push 0
push 0
push 0
call esi
push 0
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
lea eax, [esp + 0x1680]
push eax
push 0x402dfc
call edi
push 0x402e34
push 0
push 0
call ebx
cmp ebp, 0x2f64
jne 0x46a782
mov eax, 0
add dword [0x475694], eax
inc ebp
cmp ebp, 0x1605a
jl 0x46a724
mov esi, dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov ebx, 0x1e6dcb
lea esp, [esp]
cmp dword [0x7f4644], 0x85
jne 0x46a7ba
push 0
call esi
push 0
push 0
push 0
push 0
call edi
dec ebx
jne 0x46a7a0
mov ecx, 0x73
mov edx, 0x6d
mov word [0x7f464a], cx
mov word [0x7f464e], dx
xor edx, edx
mov eax, 0x33
mov ecx, 0x67
mov word [0x7f4652], ax
mov word [0x7f465e], dx
mov word [0x7f4650], cx
mov edx, 0x69
mov eax, 0x6d
mov ecx, 0x6c
push 0x7f4648
mov dword [0x7f4658], 0x6c0064
mov word [0x7f464c], dx
mov word [0x7f4648], ax
mov word [0x7f465c], cx
mov dword [0x7f4654], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x7f4644], 0xc30
jne 0x46a936
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateConsoleScreenBuffer]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x528]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ebx
lea edx, [esp + 0x166c]
push edx
push 0x402e70
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
call dword [sym.imp.KERNEL32.dll_AddRefActCtx]
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
lea ecx, [esp + 0x134]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push ebx
lea edx, [esp + 0x1e6c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0x402e98
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [esp + 0x66c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VerLanguageNameA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 0x402ed0
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
lea edx, [esp + 0x28]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumaAvailableMemoryNode]
push ebx
lea eax, [esp + 0xe6c]
push eax
push 0x402f80
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp + 0x18]
push ebx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret