Function at 0x40d9e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x34
mov eax, 0x51b71e
call fcn.004f8194
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 0x40da90
push 2
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
jne 0x40da90
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.00404205
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.004f826c
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 0x40daee
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 0x40db3f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x40db50
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 0x40dbe5
lea eax, [ebp - 0x40]
push eax
call fcn.0041ce18
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.0041ce96
test eax, eax
jne 0x40db9a
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x40dbda
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.0041cff7
test eax, eax
jne 0x40dbcf
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x40dbd2
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x40]
call fcn.0041d1c9
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.0041ce65
test edi, edi
je 0x40dbf0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x14]
jmp 0x40da6e