Function at 0x40ef60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453aeb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x46ebd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
call fcn.0041b710
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40efa5
push 0x80004005
call fcn.00401be0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
call fcn.0041b710
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40efd4
push 0x80004005
call fcn.00401be0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx + 4], eax
push 0x45ea46
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0040da90
push 0x45ea46
lea ecx, [ebx + 4]
call fcn.0040da90
mov byte [ebx + 8], 0
call fcn.0041b710
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f01e
push 0x80004005
call fcn.00401be0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0x45fffc
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40f05e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
jmp 0x40f180
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40f079
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
jmp 0x40f180
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40f096
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
jmp 0x40f180
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.0041472c
mov edx, dword [ebp - 0x1c]
push edi
mov esi, eax
push edx
push esi
call fcn.0043f9b0
add esp, 0x10
push esi
lea ecx, [ebp - 0x10]
mov byte [esi + edi], 0
call fcn.0040da90
push esi
call fcn.00414721
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [esi - 0xc], 1
jl 0x40f179
lea ecx, [ebp - 0x10]
call fcn.0040f1b0
test al, al
jne 0x40f179
lea eax, [ebp - 0x1c]
push eax
push 0x460018
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
call fcn.004080b0
lea edx, [ebp - 0x1c]
push edx
push 0x460018
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004080b0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jle 0x40f15f
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
jle 0x40f15f
push eax
call fcn.00439cc3
add esp, 4
test eax, eax
jle 0x40f15f
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebx + 4]
call fcn.00404730
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.00404730
mov byte [ebx + 8], 1
lea ecx, [ebp - 0x14]
call fcn.00401950
lea ecx, [ebp - 0x18]
call fcn.00401950
lea ecx, [ebp - 0x10]
call fcn.00401950
jmp 0x40f199
mov byte [ebp - 4], 1
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f199
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4