Function at 0x40e8f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x487bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x34], edi
movzx esi, word [ebp + 8]
mov eax, dword [0x4be060]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xf0
push esi
push eax
call ebx
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], ecx
je 0x40e965
mov ecx, dword [0x4be060]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e965
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x28], eax
mov edx, dword [0x4be060]
push 5
push esi
push edx
call ebx
test eax, eax
je 0x40ec8a
push eax
mov eax, dword [0x4be060]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ec81
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40ec81
movzx ecx, word [eax + 2]
xor edx, edx
cmp cx, 0xffff
sete dl
cmp cx, 0xffff
lea ecx, [eax + 0x10]
mov esi, edx
mov dword [esp + 0x18], esi
je 0x40e9be
lea ecx, [eax + 8]
movzx ecx, word [ecx]
push eax
mov dword [esp + 0x34], ecx
call fcn.00417cc0
mov edx, dword [edi + 4]
add esp, 4
push 5
push edx
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindow]
xor edx, edx
cmp word [esp + 0x30], dx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
jbe 0x40ec8a
test esi, esi
je 0x40e9fd
mov ecx, dword [ebx + 0x14]
lea eax, [ebx + 0x18]
jmp 0x40ea04
movzx ecx, word [ebx + 0x10]
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x40ec1c
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x20]
push eax
push edx
push ecx
mov dword [esp + 0x2c], 0
call fcn.00417c70
mov edi, eax
xor eax, eax
add esp, 0xc
mov dword [esp + 0x14], eax
cmp edi, eax
mov dword [esp + 0x58], eax
je 0x40ea84
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40ec56
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x20]
push edi
push ecx
push edi
push eax
call fcn.00465fe2
push eax
call fcn.00402be0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [esp + 0x14]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov byte [esp + 0x58], 1
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00417a60
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
jl 0x40ebf7
mov dword [esp + 0x10], 0
call fcn.004171d0
test esi, esi
je 0x40eac9
movzx eax, word [ebx + 0xc]
lea edx, [ebx + 0x18]
mov dword [esp + 0x2c], edx
jmp 0x40ead4
lea eax, [ebx + 0x12]
mov dword [esp + 0x2c], eax
movzx eax, word [ebx + 8]
test esi, esi
movsx edx, ax
mov dword [esp + 0x3c], edx
je 0x40eae5
movzx eax, word [ebx + 0xe]
jmp 0x40eae9
movzx eax, word [ebx + 0xa]
test esi, esi
movsx ecx, ax
mov dword [esp + 0x40], ecx
je 0x40eafa
movzx eax, word [ebx + 0x10]
jmp 0x40eafe
movzx eax, word [ebx + 0xc]
movsx eax, ax
add eax, edx
test esi, esi
mov dword [esp + 0x44], eax
je 0x40eb11
movzx eax, word [ebx + 0x12]
jmp 0x40eb15
movzx eax, word [ebx + 0xe]
mov edi, dword [esp + 0x34]
movsx edx, ax
add edx, ecx
mov ecx, dword [edi + 4]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x50], edx
call dword [sym.imp.USER32.dll_MapDialogRect]
test esi, esi
je 0x40eb40
mov esi, dword [ebx + 0x14]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
jmp 0x40eb48
movzx esi, word [ebx + 0x10]
mov eax, dword [ebx]
xor edx, edx
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
or eax, 0x10000
push eax
push 0
push ecx
mov eax, esp
mov dword [ecx], esi
lea edx, [esp + 0x54]
mov dword [eax], edx
mov eax, dword [edi + 4]
mov dword [esp + 0x50], esp
push eax
lea ecx, [esp + 0x2c]
call fcn.0040ece0
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40ebea
cmp dword [esp + 0x18], 0
je 0x40eb93
mov eax, dword [ebx]
test eax, eax
je 0x40eb93
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
push edi
push 0
push 0x48dba8
push 0
push 0
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.0040efd0
test eax, eax
mov dword [esp + 0x10], eax
jl 0x40ec60
cmp word [esp + 0x24], 0
jne 0x40ebce
xor eax, eax
jmp 0x40ebd2
mov eax, dword [esp + 0x1c]
push 0x13
push 0
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x1c], esi
jmp 0x40ebf3
call fcn.00417a40
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40ec32
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40ec32
test dx, dx
je 0x40ec32
mov eax, dword [esp + 0x1c]
push 2
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x1c], eax
push esi
push ebx
call fcn.004179d0
mov edx, dword [esp + 0x2c]
add edx, 1
add esp, 8
cmp dx, word [esp + 0x30]
mov ebx, eax
mov dword [esp + 0x24], edx
jb 0x40e9f1
jmp 0x40ec8a
mov dword [esp + 0x10], 0x8007000e
jmp 0x40ec67
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40ec8a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40ec8a
call fcn.00417a40
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4