Function at 0x40feb5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], edx
push ebx
lea eax, [ebp - 0x1c]
mov esi, ecx
mov ecx, dword [0x5223d4]
push eax
push str.icon
push 0xe
push 0x78
pop edx
mov dword [ebp - 0x10], esi
call fcn.0042df9d
mov edi, eax
push ecx
mov ecx, esi
mov dword [ebp - 0x1c], edi
call fcn.0040fe15
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
jne 0x40ff17
call fcn.0042fc51
push eax
push dword [ebp - 0x10]
push str.Unable_to_create_icon__s:__s.
call fcn.0042ed57
add esp, 0xc
jmp 0x410099
push ecx
lea eax, [ebp - 0xc]
mov edx, edi
push eax
push 6
mov ecx, esi
call fcn.0043032f
add esp, 0xc
test eax, eax
jne 0x40ff45
call fcn.0042fc51
push eax
push str.Could_not_write_icon_header:__s.
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x41008e
movzx eax, word [edi + 4]
mov ecx, ebx
and dword [ebp - 0x14], ecx
shl eax, 4
add eax, 6
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
movzx eax, word [edi + 4]
mov edx, eax
cmp word [ebp - 0x14], ax
jae 0x40ffda
movzx eax, cx
lea edx, [edi + 6]
push ecx
imul eax, eax, 0xe
lea ecx, [ebp - 0xc]
push ecx
push 0xc
mov ecx, esi
add edx, eax
mov dword [ebp - 0x14], eax
call fcn.0043032f
add esp, 0xc
test eax, eax
je 0x40fffa
mov eax, dword [ebp - 0x14]
push 3
movzx eax, word [eax + edi + 0x12]
push eax
push dword [0x5223d4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push ecx
mov dword [ebp - 0x14], eax
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
push 4
call fcn.0043032f
add esp, 0xc
test eax, eax
je 0x40ffe6
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movzx eax, word [edi + 4]
inc ecx
mov dword [ebp - 4], ecx
cmp cx, ax
jb 0x40ff66
mov edx, eax
xor ecx, ecx
mov eax, ebx
cmp cx, dx
jmp 0x410072
call fcn.0042fc51
mov ecx, dword [ebp - 4]
push eax
movzx eax, cx
push eax
push str.Could_not_write_ICONDIRENTRY__d__offset:__s.
jmp 0x41000c
call fcn.0042fc51
mov ecx, dword [ebp - 4]
push eax
movzx eax, cx
push eax
push str.Could_not_write_ICONDIRENTRY__d_:__s.
call fcn.0042ed57
add esp, 0xc
jmp 0x41008e
movzx eax, ax
mov dword [ebp - 0x14], eax
imul eax, eax, 0xe
push 3
movzx eax, word [eax + edi + 0x12]
push eax
push dword [0x5223d4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp - 0x18]
mov edx, edi
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.0043032f
add esp, 0xc
test eax, eax
je 0x4100a0
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
inc eax
cmp ax, word [edi + 4]
mov dword [ebp - 4], eax
jb 0x410016
cmp dword [ebp - 0x20], ebx
jne 0x41008b
push dword [ebp - 0x10]
push str.Created:__s
call fcn.0042ed57
pop ecx
pop ecx
xor ebx, ebx
inc ebx
test esi, esi
je 0x410099
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
call fcn.0042fc51
push eax
push dword [ebp - 0x14]
push str.Could_not_write_icon_data__d:__s.
jmp 0x41000c