Function at 0x41afe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d0ed
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x4b41e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x14]
mov esi, dword [ebx + 8]
push 0x49f170
push eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebx + 0x18]
push esi
mov dword [ebp - 0x34], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41b1f2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x41b1f2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41b1f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41b1f2
xor esi, esi
mov dword [ebp - 0x2c], esi
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41b1cf
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x41b1d2
mov ecx, dword [eax]
mov edi, dword [ebp - 0x1c]
push esi
push edi
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x41b1cf
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
push edx
push edi
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x41b1cf
cmp dword [ebp - 0x24], edi
jne 0x41b1cf
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x41b1c0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x2c]
movups xmmword [edi], xmm0
mov ecx, dword [ebp - 0x28]
push eax
push ecx
mov dword [edi], vtable.Gdiplus::Bitmap.0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [edi + 8], eax
mov esi, edi
mov eax, dword [ebp - 0x2c]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x1c]
and eax, 0xff000000
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], eax
test edi, edi
je 0x41b1c5
mov eax, dword [edi + 8]
mov dword [edi + 8], 0
test eax, eax
jne 0x41b1c5
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x41b15d
mov dword [edi + 8], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x41b178
mov dword [edi + 8], eax
mov edx, dword [ebp - 0x30]
test edx, edx
mov ecx, dword [ebp - 0x34]
cmove edx, dword [ebp - 0x1c]
test ecx, ecx
cmove ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], edx
jne 0x41b1a7
cmp dword [ebp - 0x18], ecx
jne 0x41b1a7
cmp dword [ebp - 0x20], 0
jne 0x41b1a7
mov eax, dword [ebp - 0x28]
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
jmp 0x41b1d4
push dword [ebx + 0x1c]
push ecx
mov ecx, edi
call fcn.00406a10
mov edi, eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x28]
jmp 0x41b1d4
xor esi, esi
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x28]
xor edi, edi
mov dword [ebp - 0x20], edi
jmp 0x41b1d4
mov eax, dword [ebp - 0x28]
xor edi, edi
mov byte [ebp - 4], 6
test eax, eax
je 0x41b1e2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
je 0x41b1ee
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov eax, edi
jmp 0x41b1f4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00469e65
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18