Function at 0x40dae2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x34
mov eax, 0x51dfbb
call fcn.004fa4d4
mov esi, ecx
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
xor edi, edi
cmp eax, edi
je 0x40db8f
push 2
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
jne 0x40db8f
push ebx
push 0x17d
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.CCoreResource::ExtractResourceFile
call fcn.00401769
mov byte [ebp - 4], 2
push ecx
mov eax, esp
mov dword [ebp + 0x10], esp
lea ecx, [ebp + 8]
push ecx
push str.LoadLibrary_failed_in_loading_current_exe:
push eax
call fcn.00404236
mov byte [ebp - 4], 3
add esp, 8
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.loadlibraryfailed
call fcn.00401769
mov byte [ebp - 4], 4
mov eax, dword [esi]
push 0xd
mov byte [ebp - 4], bl
mov ecx, esi
call dword [eax + 0x14]
xor esi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401898
mov eax, esi
call fcn.004fa5ac
ret 0x10
and dword [ebp - 0x14], 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x40dbed
push ebx
push 0x189
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.CCoreResource::ExtractResourceFile
call fcn.00401769
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.Unable_to_find_resource_for_given_name__type_
call fcn.00401769
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.findresourcefailed
call fcn.00401769
mov byte [ebp - 4], 7
jmp 0x40dc3e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x40dc4f
push ebx
push 0x190
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.CCoreResource::ExtractResourceFile
call fcn.00401769
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.Unable_to_load_resource_
call fcn.00401769
mov byte [ebp - 4], 9
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.loadresourcefailed
call fcn.00401769
mov byte [ebp - 4], 0xa
mov eax, dword [esi]
push 0xd
mov byte [ebp - 4], bl
mov ecx, esi
call dword [eax + 0x14]
jmp 0x40dce4
lea eax, [ebp - 0x40]
push eax
call fcn.0041cf3e
mov byte [ebp - 4], 0xb
push 0x80
push 2
push ebx
push 0x40000000
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x40]
call fcn.0041cfbc
test eax, eax
jne 0x40dc99
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x40dcd9
push dword [ebp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x40]
push eax
call fcn.0041d11d
test eax, eax
jne 0x40dcce
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x40dcd1
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x40]
call fcn.0041d2ef
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.0041cf8b
test edi, edi
je 0x40dcef
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x14]
jmp 0x40db6d