Function at 0x465320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4edfe8]
push 0xf1
push eax
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x46534e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x465364
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x46537b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
xor eax, eax
lea ecx, [edi + 8]
mov ax, word [edi + 6]
xor ebx, ebx
mov bx, word [edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x44]
xor ebp, ebp
mov bp, word [edi + 2]
mov dword [esp + 0x18], ecx
test eax, eax
je 0x4653bb
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
test eax, eax
jne 0x4653e1
mov edx, dword [esi + 0x44]
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov dword [esi + 0x44], 0
test ebp, ebp
je 0x4653e1
test ebx, ebx
je 0x4653e1
mov dword [esi + 0x8c], ebp
mov dword [esi + 0x90], ebx
add ebp, 2
add ebx, 2
mov dword [esi + 0x94], ebp
mov dword [esi + 0x98], ebx
mov eax, dword [esi + 0x44]
mov ebx, 0x20
test eax, eax
jne 0x46543e
mov eax, dword [0x4e3a24]
mov ebp, dword [esp + 0x20]
push ebp
mov eax, dword [eax + 8]
push eax
call fcn.0042c0c0
mov cl, byte [esi + 0x81]
add esp, 8
cmp word [eax + 0xe], bx
sete al
and al, 1
and cl, 0xdf
shl al, 5
or al, cl
xor edx, edx
mov byte [esi + 0x81], al
mov dx, word [edi + 6]
push edx
mov ecx, esi
call fcn.0042bb70
test al, al
jne 0x465442
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov ebp, dword [esp + 0x20]
mov al, byte [esi + 0x81]
mov dword [esp + 0x10], 0
test bl, al
je 0x465478
mov eax, dword [0x4edfe8]
push 0x2040
push 0
push 0
push 0
push ebp
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
lea ecx, [esp + 0x14]
call fcn.0042e390
jmp 0x465486
push ecx
lea ecx, [esp + 0x14]
mov eax, esp
mov dword [eax], ebp
call fcn.00424530
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x465498
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov ecx, dword [esi + 0x9c]
mov edx, dword [esi + 0x44]
push ecx
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp eax, 0xffffffff
jne 0x4654cc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46551b
lea ecx, [esp + 0x10]
call fcn.00428e50
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4654f9
mov edi, dword [esp + 0x18]
mov ebx, eax
mov ax, word [edi]
test ax, ax
je 0x4654f3
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 0x48]
call fcn.00431620
add edi, 2
dec ebx
jne 0x4654da
mov ecx, dword [esi + 0x44]
mov edi, dword [esi + 0x4c]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
cmp eax, edi
mov eax, dword [esp + 0x10]
je 0x465527
test eax, eax
je 0x46551b
lea ecx, [esp + 0x10]
call fcn.00428e50
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
test eax, eax
je 0x465534
lea ecx, [esp + 0x10]
call fcn.00428e50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4