Function at 0x456200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f87ed
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x53c160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [0x547960]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x456405
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x456405
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edx, eax
mov dword [ebp - 0x14], edx
test edx, edx
je 0x456405
movzx eax, word [edx + 4]
lea edi, [edx + 8]
movzx ecx, word [edx + 6]
push eax
movzx eax, word [edx + 2]
mov dword [ebp - 0x10], ecx
mov ecx, ebx
push eax
call fcn.00456420
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x456305
mov esi, dword [0x547960]
push 2
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push 1
cmp word [eax + 0xe], 0x20
mov al, byte [ebx + 0x85]
setne dl
and al, 0xdf
dec dl
and dl, 0x20
or dl, al
mov eax, dword [ebp - 0x14]
mov byte [ebx + 0x85], dl
test dl, 0x20
movzx ecx, word [eax + 6]
mov eax, 0
setne al
push ecx
lea eax, [eax*8 + 0x19]
push eax
push dword [ebx + 0x94]
push dword [ebx + 0x90]
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [ebx + 0x48], eax
test eax, eax
je 0x456405
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
test byte [ebx + 0x85], 0x20
je 0x45633b
push 0x2040
push 0
push 0
push 0
push dword [ebp + 8]
push dword [0x547960]
call dword [sym.imp.USER32.dll_LoadImageW]
jmp 0x45634a
push dword [ebp + 8]
push dword [0x547960]
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x4563e2
push dword [ebx + 0xa0]
push esi
push dword [ebx + 0x48]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp eax, 0xffffffff
je 0x4563e2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x456390
cmp word [edi], 0
je 0x456385
push edi
lea ecx, [ebx + 0x4c]
call fcn.00409c30
mov eax, dword [ebp - 0x10]
add edi, 2
sub eax, 1
mov dword [ebp - 0x10], eax
jne 0x456373
push dword [ebx + 0x48]
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov edi, eax
cmp edi, dword [ebx + 0x50]
jne 0x4563e2
xor edx, edx
push ecx
lea ecx, [edx + 6]
call fcn.00407670
add esp, 4
test al, al
je 0x4563c0
mov eax, dword [ebp - 0x18]
mov ecx, ebx
sub edi, eax
push edi
push eax
call fcn.00457450
push esi
mov edi, 1
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
xor edi, edi
test esi, esi
je 0x4563ef
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14