Function at 0x46d12a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
mov esi, eax
cmp dword [esi + 0x18], 8
push edi
mov edi, ecx
lea ebx, [esi + 4]
jb 0x46d144
mov eax, dword [ebx]
jmp 0x46d146
mov eax, ebx
push 0x4f5b7c
push eax
call fcn.004b9e85
test eax, eax
pop ecx
pop ecx
jne 0x46d1c0
movzx eax, word [ebp + 8]
push eax
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x46d176
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 0x3c]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x10
call fcn.004b6eb3
cmp eax, ebx
pop ecx
je 0x46d19e
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov byte [eax + 0xc], bl
mov ecx, eax
jmp 0x46d1a0
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [ecx], esi
mov ecx, dword [eax]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 4], edx
mov ecx, dword [eax]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 8], edx
mov eax, dword [eax]
mov byte [eax + 0xc], bl
mov al, 1
jmp 0x46d16f
cmp dword [esi + 0x18], 8
jb 0x46d1c8
mov ebx, dword [ebx]
movzx eax, word [ebp + 8]
push ebx
push eax
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0xc], esi
je 0x46d16d
push esi
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 8], eax
push esi
jne 0x46d1ff
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x46d16d
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x46d16d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebp + 8]
push ecx
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00492ef4
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
je 0x46d16d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x2c
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.004b9920
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov edi, esi
imul edi, dword [ebp - 0x10]
neg eax
add esp, 0xc
mov dword [ebp - 0x60], eax
push ebx
mov eax, edi
shl eax, 2
push ebx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x68]
push eax
push ebx
mov dword [ebp - 0x68], 0x28
mov dword [ebp - 0x64], esi
mov word [ebp - 0x5c], 1
mov word [ebp - 0x5a], 0x20
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x20], edi
mov byte [ebp + 0xb], bl
mov dword [ebp - 8], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp eax, ebx
mov dword [ebp - 0x24], eax
jne 0x46d2b4
push dword [ebp - 0x14]
call fcn.004b7fad
pop ecx
mov al, bl
jmp 0x46d16f
cmp edi, ebx
mov dword [ebp - 0xc], ebx
jle 0x46d378
mov esi, dword [ebp - 0x14]
add esi, 3
mov ecx, dword [ebp - 0xc]
mov al, byte [esi]
mov edx, dword [ebp - 8]
shl ecx, 2
mov byte [ecx + edx + 3], al
mov eax, dword [ebp - 8]
add eax, ecx
cmp byte [eax + 3], 0xff
mov dword [ebp - 0x1c], eax
jae 0x46d326
movzx edx, byte [esi]
movzx eax, byte [esi - 1]
imul eax, edx
xor edx, edx
mov edi, 0xff
div edi
mov edx, dword [ebp - 0x1c]
mov byte [ebp + 0xb], 1
mov byte [edx], al
movzx edx, byte [esi]
movzx eax, byte [esi - 2]
imul eax, edx
xor edx, edx
div edi
mov edx, dword [ebp - 8]
mov byte [ecx + edx + 1], al
movzx edx, byte [esi]
movzx eax, byte [esi - 3]
imul eax, edx
xor edx, edx
div edi
mov edi, dword [ebp - 0x20]
jmp 0x46d338
mov dl, byte [esi - 1]
mov byte [eax], dl
mov al, byte [esi - 2]
mov edx, dword [ebp - 8]
mov byte [ecx + edx + 1], al
mov al, byte [esi - 3]
mov edx, dword [ebp - 8]
mov byte [ecx + edx + 2], al
mov eax, dword [ebp - 8]
add eax, ecx
mov edx, dword [eax]
cmp edx, dword [ebp + 0x10]
jne 0x46d366
mov byte [eax], bl
mov eax, dword [ebp - 8]
mov byte [ecx + eax + 1], bl
mov eax, dword [ebp - 8]
mov byte [ecx + eax + 2], bl
mov eax, dword [ebp - 8]
mov byte [ecx + eax + 3], bl
mov byte [ebp + 0xb], 1
inc dword [ebp - 0xc]
add esi, 4
cmp dword [ebp - 0xc], edi
jl 0x46d2c5
mov esi, dword [ebp - 0x18]
push 0x10
call fcn.004b6eb3
cmp eax, ebx
pop ecx
je 0x46d391
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov byte [eax + 0xc], bl
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
mov dword [eax], ebx
mov dword [ebx], ecx
mov ecx, dword [eax]
mov dword [ecx + 4], esi
mov ecx, dword [eax]
mov dword [ecx + 8], edx
mov eax, dword [eax]
mov cl, byte [ebp + 0xb]
mov byte [eax + 0xc], cl
mov bl, 1
jmp 0x46d2a4