Function at 0x401930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0x42264c
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4019d1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4019d1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4019d1
push dword [ebp - 8]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4019d1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4019c3
push dword [ebp - 8]
push edi
push eax
call fcn.00410f90
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, dword [ebp - 0x44]
test edi, edi
jne 0x4019dc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [ebp - 0x44]
test edi, edi
je 0x401bd9
push 0
push 0
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x401a96
lea eax, [ebp - 0x40]
push eax
push 0x42263c
push 1
push 0
push 0x422e7c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x401a96
mov ecx, dword [ebp - 0x40]
push 1
push edi
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x4222ec]
call esi
test eax, eax
js 0x401a96
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x10], ebx
mov eax, dword [ecx]
mov esi, dword [eax + 0x30]
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, esi
call dword [0x4222ec]
call esi
test eax, eax
js 0x401a96
cmp dword [ebp - 0x10], 1
jne 0x401a96
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x48], ebx
mov eax, dword [ecx]
mov esi, dword [eax + 0x34]
lea eax, [ebp - 0x48]
push eax
push 0
push ecx
mov ecx, esi
call dword [0x4222ec]
call esi
test eax, eax
js 0x401a96
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x48]
push 0x422e8c
call sub.WindowsCodecs.dll_WICConvertBitmapSource
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4222ec]
call esi
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x401aad
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4222ec]
call esi
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x401bb5
mov eax, dword [ebx]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov esi, dword [eax + 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
push ebx
call dword [0x4222ec]
call esi
test eax, eax
js 0x401ba5
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x401ba5
mov eax, dword [ebp - 8]
test eax, eax
je 0x401ba5
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0x28
neg eax
movlpd qword [ebp - 0x28], xmm0
push 0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x200001
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x50], 0
call dword [sym.imp.USER32.dll_GetDC]
push 0
mov esi, eax
lea eax, [ebp - 0x50]
push 0
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push esi
push 0
mov dword [ebp - 0x54], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x54], 0
je 0x401ba5
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebx]
mov ecx, edx
imul ecx, dword [ebp - 8]
mov esi, dword [eax + 0x1c]
push ecx
push edx
push 0
push ebx
mov ecx, esi
call dword [0x4222ec]
call esi
test eax, eax
jns 0x401ba5
push dword [ebp - 0x54]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 0x54], 0
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4222ec]
call esi
mov ecx, dword [edi]
push edi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4222ec]
call esi
mov eax, dword [ebp - 0x54]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041038e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041038e
mov esp, ebp
pop ebp
ret