Function at 0x40e200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x4302ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [0x4322c8]
push edi
mov dword [ebp - 0x26c], eax
movzx eax, word [ebp + 0xc]
push 0xf1
push eax
push esi
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x278], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
je 0x40e2bb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40e2bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x40e2bb
mov edi, dword [ebp + 0x10]
movzx eax, word [esi + 6]
xor ecx, ecx
cmp edi, ebx
setne cl
mov dword [ebp - 0x264], ebx
add eax, ecx
mov dword [ebp - 0x268], ecx
push eax
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x284], eax
call fcn.0040ce10
mov dword [ebp - 0x27c], eax
cmp eax, ebx
jne 0x40e2ce
lea edx, [ebp - 0x260]
cmp dword [ebp - 0x264], edx
je 0x40e2bb
lea ecx, [ebp - 0x264]
call fcn.0040b8e0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418c6f
mov esp, ebp
pop ebp
ret
cmp edi, ebx
je 0x40e2e8
mov dword [eax], 4
mov dword [eax + 4], ebx
mov byte [eax + 8], bl
mov byte [eax + 9], 1
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
xor edx, edx
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x274], edx
cmp di, word [esi + 6]
jae 0x40e34a
mov edi, dword [ebp - 0x268]
lea edi, [edi + edi*4]
lea eax, [eax + edi*4 + 8]
cmp word [esi + ecx*2 + 8], bx
je 0x40e322
mov dword [eax - 8], edx
movzx edi, word [esi + ecx*2 + 8]
inc edx
mov dword [eax - 4], edi
mov byte [eax], 4
mov byte [eax + 1], bl
jmp 0x40e332
mov dword [eax - 8], 8
mov dword [eax - 4], ebx
mov byte [eax], bl
mov byte [eax + 1], 1
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
movzx edi, word [esi + 6]
inc ecx
add eax, 0x14
cmp ecx, edi
jl 0x40e307
mov dword [ebp - 0x274], edx
mov eax, dword [0x4322c4]
mov ecx, dword [ebp - 0x288]
mov edx, dword [ebp - 0x26c]
push ebx
push eax
mov eax, dword [ebp + 0x14]
push ecx
push edx
push 0x64
push 0x64
push ebx
push ebx
push eax
push ebx
push 0x428d5c
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
cmp edi, ebx
jne 0x40e38d
lea ecx, [ebp - 0x260]
cmp dword [ebp - 0x264], ecx
jmp 0x40e2ae
push ebx
push 0x14
push 0x41e
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x31
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x268], eax
cmp eax, ebx
jne 0x40e3bf
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x268], eax
push 0x58
lea edx, [ebp - 0x5c]
push ebx
push edx
mov dword [ebp - 0x60], ebx
call fcn.00418c80
mov ecx, dword [ebp - 0x268]
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
push 0x5c
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x60]
cdq
xor eax, edx
sub eax, edx
movzx edx, ax
push ecx
mov ecx, dword [ebp - 0x278]
mov eax, esp
mov dword [ebp - 0x268], edx
mov dword [eax], ecx
call fcn.0040af80
movzx eax, ax
add esp, 4
cmp ax, 4
jbe 0x40e44a
mov ecx, 0xff000000
cmp ax, 0x20
jne 0x40e41f
or ecx, 0xffffffff
movzx edx, word [esi + 2]
mov eax, dword [ebp - 0x278]
push 0x2040
push ebx
push ecx
mov ecx, dword [0x4322c8]
push 1
push edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_LoadImageW]
push eax
push ebx
push 0x430
jmp 0x40e478
mov edx, dword [ebp - 0x280]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x270], edx
mov edx, dword [ebp - 0x274]
push ecx
push edx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x26c], eax
push 0x413
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x284]
push eax
push ecx
push 0x444
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, word [esi + 4]
mov ecx, dword [ebp - 0x268]
cmp ax, cx
movzx eax, ax
ja 0x40e4ae
movzx eax, cx
movzx edx, ax
movzx eax, word [esi + 2]
shl edx, 0x10
or edx, eax
push edx
push ebx
push 0x420
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, word [esi + 4]
mov ecx, dword [ebp - 0x268]
cmp ax, cx
movzx eax, ax
ja 0x40e4dd
movzx eax, cx
mov dx, word [esi + 2]
add eax, 7
movzx ecx, ax
add dx, 7
movzx eax, dx
shl ecx, 0x10
or ecx, eax
push ecx
push ebx
push 0x41f
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x260]
cmp dword [ebp - 0x264], ecx
je 0x40e51a
lea ecx, [ebp - 0x264]
call fcn.0040b8e0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418c6f
mov esp, ebp
pop ebp
ret