Function at 0x40d7e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x34
mov eax, 0x500db6
call fcn.004e2589
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 0x40d890
push 2
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
jne 0x40d890
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.004040f8
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.004e2661
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 0x40d8ee
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 0x40d93f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x40d950
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 0x40d9e5
lea eax, [ebp - 0x40]
push eax
call fcn.0041a7b5
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.0041a833
test eax, eax
jne 0x40d99a
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x40d9da
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.0041a994
test eax, eax
jne 0x40d9cf
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x40d9d2
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x40]
call fcn.0041ab66
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.0041a802
test edi, edi
je 0x40d9f0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x14]
jmp 0x40d86e