Function at 0x41be30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x60]
push ebp
mov ebp, dword [esp + 0x60]
push esi
push edi
mov edi, dword [eax + 0x18]
cmp edi, 8
lea esi, [eax + 4]
jb 0x41be4e
mov eax, dword [esi]
jmp 0x41be50
mov eax, esi
mov ecx, 0x48a9a4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41be7b
test dx, dx
je 0x41be77
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41be7b
add eax, 4
add ecx, 4
test dx, dx
jne 0x41be55
xor eax, eax
jmp 0x41be80
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41bef6
mov ecx, dword [ebp + 0x38]
movzx eax, bx
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x41bf2e
lea edx, [esp + 0x1c]
push edx
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x10
call fcn.00468c53
add esp, 4
cmp eax, edi
je 0x41bec8
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov byte [eax + 0xc], 0
jmp 0x41beca
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword [ecx], eax
mov dword [eax], esi
mov eax, dword [ecx]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov eax, dword [ecx]
mov edx, dword [esp + 0x24]
mov dword [eax + 8], edx
mov eax, dword [ecx]
mov byte [eax + 0xc], 0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x10
cmp edi, 8
jb 0x41beff
mov eax, dword [esi]
jmp 0x41bf01
mov eax, esi
mov edx, dword [ebp + 0x38]
movzx ecx, bx
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41bf2e
mov eax, dword [ebp + 0x38]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
push edi
jne 0x41bf3a
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x10
mov ecx, dword [ebp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x41bf2e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
lea edx, [esp + 0x68]
push edx
push esi
lea esi, [esp + 0x1c]
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.0043a320
add esp, 8
test eax, eax
mov dword [esp + 0x68], eax
je 0x41bf2e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x2c
lea eax, [esp + 0x38]
push 0
push eax
call fcn.0046f200
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0
mov ebp, edi
imul ebp, esi
push 0
mov ecx, esi
neg ecx
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x48], ecx
push 0
lea ecx, [esp + 0x44]
push ecx
lea edx, [ebp*4]
push 0
mov dword [esp + 0x4c], 0x28
mov dword [esp + 0x50], edi
mov word [esp + 0x58], 1
mov word [esp + 0x5a], 0x20
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], edx
xor bl, bl
mov dword [esp + 0x84], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x41c011
mov edx, dword [esp + 0x68]
push edx
call fcn.00469c81
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x10
xor ecx, ecx
test ebp, ebp
jle 0x41c0f0
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
add esi, 3
mov dl, byte [esi]
mov byte [eax + ecx*4 + 3], dl
mov edi, dword [esp + 0x6c]
cmp byte [edi + ecx*4 + 3], 0xff
jae 0x41c08a
movzx eax, byte [esi]
movzx edx, byte [esi - 1]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [edi + ecx*4], dl
movzx eax, byte [esi]
movzx edx, byte [esi - 2]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x6c]
shr edx, 7
mov byte [eax + ecx*4 + 1], dl
movzx eax, byte [esi]
movzx edx, byte [esi - 3]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x6c]
shr edx, 7
mov byte [eax + ecx*4 + 2], dl
mov bl, 1
jmp 0x41c0a8
mov dl, byte [esi - 1]
mov byte [edi + ecx*4], dl
movzx eax, byte [esi - 2]
mov edx, dword [esp + 0x6c]
mov byte [edx + ecx*4 + 1], al
movzx eax, byte [esi - 3]
mov edx, dword [esp + 0x6c]
mov byte [edx + ecx*4 + 2], al
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
cmp dword [eax + ecx*4], edx
jne 0x41c0da
mov byte [eax + ecx*4], 0
mov eax, dword [esp + 0x6c]
mov byte [eax + ecx*4 + 1], 0
mov edx, dword [esp + 0x6c]
mov byte [edx + ecx*4 + 2], 0
mov eax, dword [esp + 0x6c]
mov byte [eax + ecx*4 + 3], 0
mov eax, dword [esp + 0x6c]
mov bl, 1
add ecx, 1
add esi, 4
cmp ecx, ebp
jl 0x41c026
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
push 0x10
call fcn.00468c53
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x41c10d
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov byte [eax + 0xc], cl
jmp 0x41c10f
xor eax, eax
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [eax], edx
mov eax, dword [ecx]
mov dword [eax + 4], edi
mov edx, dword [ecx]
mov dword [edx + 8], esi
mov eax, dword [ecx]
mov ecx, dword [esp + 0x68]
push ecx
mov byte [eax + 0xc], bl
call fcn.00469c81
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x54
ret 0x10