Function at 0x5ad550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
call fcn.005ace96
mov eax, dword [ebp + 8]
mov edx, dword [eax]
xor ebx, ebx
cmp edx, ebx
je 0x5ad7dc
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jl 0x5ad7dc
cmp edi, dword [0x72dbb8]
jge 0x5ad7dc
cmp byte [ebp + 0x10], bl
mov eax, dword [0x72dbb0]
mov byte [ebp + 0xb], bl
jne 0x5ad5b5
mov ecx, edi
imul ecx, ecx, 0x14
mov esi, dword [ecx + eax + 4]
cmp esi, ebx
je 0x5ad5b5
mov ecx, dword [ebp + 0x18]
mov cl, byte [esi + ecx*2]
cmp cl, bl
je 0x5ad5b5
movzx ecx, cl
lea ecx, [edx + ecx*4 - 4]
mov byte [ebp + 0xb], 1
jmp 0x5ad5b8
lea ecx, [edx + edi*4]
cmp dword [ecx], ebx
mov dword [ebp - 4], ecx
jne 0x5ad926
mov ecx, dword [0x72dbe0]
cmp ecx, 1
jne 0x5ad5d1
mov byte [ebp + 0x10], cl
mov edx, edi
imul edx, edx, 0x14
add eax, edx
cmp byte [ebp + 0x10], bl
mov edi, dword [eax]
mov dword [ebp - 0xc], edx
mov esi, edi
je 0x5ad5ec
lea esi, [edi + 0x174]
jmp 0x5ad5fa
cmp ecx, ebx
je 0x5ad5fa
mov esi, ecx
imul esi, esi, 0x174
add esi, edi
cmp byte [ebp + 0xb], bl
je 0x5ad61d
cmp ecx, ebx
mov edx, dword [ebp + 0x18]
mov eax, dword [eax + 4]
movzx eax, byte [eax + edx*2]
mov edx, dword [0x72dbc0]
mov edi, dword [edx + eax*8 - 8]
lea esi, [ecx + edi - 1]
jne 0x5ad61d
mov esi, edi
cmp byte [ebp + 0x10], bl
je 0x5ad6c6
push 0x2000
push ebx
push ebx
movzx eax, si
push ebx
push eax
call fcn.00649f06
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x5ad7dc
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
call esi
mov dword [ebp + 0x18], eax
call fcn.005ad401
push eax
push 0x20
push ebx
push edi
call dword [sym.imp.GDI32.dll_SetDIBColorTable]
push dword [ebp + 0x18]
push edi
call esi
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp byte [ebp + 0x14], bl
je 0x5ad90d
mov eax, dword [0x72dbb0]
mov ecx, dword [ebp - 0xc]
test byte [ecx + eax + 0x12], 0x20
je 0x5ad90d
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov dword [ebp + 0x14], ebx
call fcn.005b5d5e
cmp dword [ebp + 0x14], ebx
je 0x5ad90d
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
jmp 0x5ad90d
push 0x2c
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0066e181
add esp, 0xc
movzx eax, si
push 0x3e6
push eax
mov dword [ebp - 0x48], 0x28
mov word [ebp - 0x3c], 1
mov dword [ebp - 0x38], ebx
call fcn.00649f06
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x5ad729
cmp esi, edi
je 0x5ad7dc
movzx eax, di
push 0x3e6
push eax
call fcn.00649f06
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x5ad7dc
push dword [ebp - 8]
call fcn.00649f06
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x5ad7dc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x5ad7dc
movzx ecx, word [esi + 4]
cmp cx, 0x20
je 0x5ad761
cmp cx, 0x18
jne 0x5ad7dc
movzx eax, word [esi]
movzx ecx, cx
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
and eax, 0xfffffffc
push eax
call fcn.005ad217
push eax
movzx eax, word [esi + 2]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.005ad537
push dword [eax]
call fcn.005ad201
movzx ecx, word [esi]
mov edi, eax
movzx eax, word [esi + 4]
push ebx
mov dword [ebp - 0x44], ecx
movzx ecx, word [esi + 2]
push ebx
mov word [ebp - 0x3a], ax
lea eax, [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 0x48]
push eax
push ebx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x5ad7dc
cmp dword [ebp + 0xc], ebx
je 0x5ad7dc
cmp dword [ebp - 0x34], edi
jae 0x5ad7e5
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
push edi
push dword [ebp - 8]
call fcn.00649f06
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
sub eax, 6
push eax
push dword [ebp + 0xc]
add esi, 6
push esi
call fcn.00655361
cmp byte [ebp + 0x14], bl
je 0x5ad90d
cmp byte [ebp + 0xb], bl
je 0x5ad8dc
cmp dword [0x72dbb8], ebx
mov dword [ebp + 8], ebx
jle 0x5ad90d
mov eax, dword [0x72dbb0]
xor esi, esi
cmp dword [esi + eax + 4], ebx
je 0x5ad8c5
test byte [esi + eax + 0x12], 0x20
je 0x5ad8c5
cmp byte [esi + eax + 0xc], bl
mov dword [ebp + 0x14], ebx
jbe 0x5ad8c5
mov edi, dword [ebp + 0x14]
mov edx, dword [esi + eax + 4]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + edi*2]
mov ecx, dword [ecx + eax + 4]
mov edi, dword [ebp + 0x18]
cmp dl, byte [ecx + edi*2]
jne 0x5ad8b8
mov ecx, dword [esi + eax + 4]
mov edx, dword [ebp + 0x14]
mov edi, dword [0x72dbc0]
lea ecx, [ecx + edx*2]
movzx edx, byte [ecx]
movzx ecx, byte [ecx + 1]
mov edx, dword [edi + edx*8 - 4]
movzx edi, word [esi + eax + 8]
movzx eax, byte [esi + eax + 0xd]
lea ecx, [edx + ecx*4]
movzx edx, word [ecx]
movzx ecx, word [ecx + 2]
add eax, ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
add edi, edx
push eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
call fcn.005acd5a
mov eax, dword [0x72dbb0]
movzx ecx, byte [esi + eax + 0xc]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], ecx
jl 0x5ad84b
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
add esi, 0x14
cmp ecx, dword [0x72dbb8]
jl 0x5ad82d
jmp 0x5ad90d
mov eax, dword [0x72dbb0]
mov ecx, dword [ebp - 0xc]
test byte [ecx + eax + 0x12], 0x20
je 0x5ad90d
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.005acd5a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x5ad926
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
jmp 0x5ad7de