Function at 0x488160
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 0x48817e
mov eax, dword [esi]
jmp 0x488180
mov eax, esi
mov ecx, 0x52374c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4881ab
test dx, dx
je 0x4881a7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4881ab
add eax, 4
add ecx, 4
test dx, dx
jne 0x488185
xor eax, eax
jmp 0x4881b0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x488226
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 0x48825e
lea edx, [esp + 0x1c]
push edx
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x10
call fcn.004e7d83
add esp, 4
cmp eax, edi
je 0x4881f8
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov byte [eax + 0xc], 0
jmp 0x4881fa
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 0x48822f
mov eax, dword [esi]
jmp 0x488231
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 0x48825e
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 0x48826a
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 0x48825e
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.004c0030
add esp, 8
test eax, eax
mov dword [esp + 0x68], eax
je 0x48825e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x2c
lea eax, [esp + 0x38]
push 0
push eax
call fcn.004f1960
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 0x488341
mov edx, dword [esp + 0x68]
push edx
call fcn.004e8e42
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 0x488420
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 0x4883ba
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 0x4883d8
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 0x48840a
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 0x488356
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
push 0x10
call fcn.004e7d83
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x48843d
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov byte [eax + 0xc], cl
jmp 0x48843f
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.004e8e42
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x54
ret 0x10