Function at 0x4098df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
movzx eax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [0x4c69a8]
push edi
push 0xf1
push eax
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor edi, edi
cmp eax, edi
je 0x4099f2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4099f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x4099f2
xor eax, eax
cmp dword [ebp + 0x10], edi
setne al
mov esi, eax
movzx eax, word [ebx + 6]
add eax, esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax*4]
shl eax, 2
add eax, 3
and al, 0xfc
call fcn.0049c210
cmp dword [ebp + 0x10], edi
mov eax, esp
mov dword [ebp - 0xc], eax
je 0x409971
and byte [eax + 8], 0
mov dword [eax], 4
mov dword [eax + 4], edi
mov byte [eax + 9], 1
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
xor edx, edx
cmp word [ebx + 6], di
mov dword [ebp - 4], edi
jbe 0x4099c8
lea esi, [esi + esi*4]
lea ecx, [ebx + 8]
lea eax, [eax + esi*4 + 8]
cmp word [ecx], di
je 0x4099a3
mov esi, dword [ebp - 4]
inc dword [ebp - 4]
mov dword [eax - 8], esi
movzx esi, word [ecx]
mov dword [eax - 4], esi
mov byte [eax], 4
and byte [eax + 1], 0
jmp 0x4099b4
mov dword [eax - 8], 8
mov dword [eax - 4], edi
and byte [eax], 0
mov byte [eax + 1], 1
mov dword [eax + 4], edi
mov dword [eax + 8], edi
movzx esi, word [ebx + 6]
inc edx
inc ecx
inc ecx
add eax, 0x14
cmp edx, esi
jl 0x409986
mov eax, dword [0x4c69a4]
push edi
push eax
push dword [ebp + 0x18]
push dword [ebp + 8]
push 0x64
push 0x64
push edi
push edi
push dword [ebp + 0x14]
push edi
push 0x4b0388
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, edi
mov dword [ebp + 0x10], eax
jne 0x4099f9
xor eax, eax
jmp 0x409b27
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0x14
push 0x41e
push eax
call esi
push edi
push edi
push 0x31
push dword [ebp + 0x10]
call esi
mov edx, eax
cmp edx, edi
jne 0x409a23
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, eax
push 0x16
mov dword [ebp - 0x74], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push eax
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x74]
push ecx
cdq
mov edi, eax
mov ecx, esp
movzx eax, word [ebp + 0xc]
xor edi, edx
mov dword [ecx], eax
sub edi, edx
mov dword [ebp + 0x18], edi
call fcn.00409b2f
cmp ax, 4
pop ecx
jbe 0x409a9c
cmp ax, 0x20
mov ecx, 0xff000000
jne 0x409a6d
or ecx, 0xffffffff
push 0x2040
push 0
push ecx
mov eax, dword [0x4c69a8]
movzx ecx, word [ebx + 2]
push 1
push ecx
movzx ecx, word [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_LoadImageW]
push eax
push 0
push 0x430
push dword [ebp + 0x10]
call esi
jmp 0x409ac2
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
push 0x413
push dword [ebp + 0x10]
call esi
mov edi, dword [ebp + 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x444
push dword [ebp + 0x10]
call esi
mov ax, word [ebx + 4]
cmp ax, di
ja 0x409add
mov eax, edi
movzx ecx, word [ebx + 2]
movzx eax, ax
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x420
push dword [ebp + 0x10]
call esi
mov ax, word [ebx + 4]
cmp ax, di
ja 0x409b01
mov eax, edi
mov cx, word [ebx + 2]
add eax, 7
movzx eax, ax
add cx, 7
movzx ecx, cx
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x41f
push dword [ebp + 0x10]
call esi
mov eax, dword [ebp + 0x10]
lea esp, [ebp - 0x80]
pop edi
pop esi
pop ebx
leave
ret