Function at 0x40bc80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4789b6
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4ad3bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x428], esi
test esi, esi
jne 0x40bd54
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x428], eax
test esi, esi
jne 0x40bd54
push edi
push str.Failed_to_LoadLibrary_on__Ts_n
push eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VC_atlmfcinclude_statreg.h
push 8
push eax
mov dword [ebp - 0x420], 0x1d9
call fcn.004043d0
add esp, 0x14
call fcn.0040ab10
mov edi, eax
jmp 0x40beaa
push dword [ebp - 0x41c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40bdb2
push dword [ebp - 0x41c]
mov ecx, str.Failed_to_FindResource_on_ID:_Ts_TYPE:_Ts_n
mov dword [ebp - 0x424], str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VC_atlmfcinclude_statreg.h
push ebx
shr ebx, 0x10
mov eax, str.Failed_to_FindResource_on_ID:_d_TYPE:_Ts_n
test ebx, ebx
mov dword [ebp - 0x420], 0x1e2
cmovne eax, ecx
push eax
push edi
lea eax, [ebp - 0x424]
push 8
push eax
call fcn.004043d0
add esp, 0x18
call fcn.0040ab10
jmp 0x40be9d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x40bdfb
push str.Failed_to_LoadResource_n
push eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VC_atlmfcinclude_statreg.h
push 8
push eax
mov dword [ebp - 0x420], 0x1ed
call fcn.004043d0
add esp, 0x10
call fcn.0040ab10
jmp 0x40be9d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x42c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40be1c
mov edi, 0x8007000e
jmp 0x40be9f
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040a8b0
jmp 0x40be46
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40be5d
mov edi, 0x8007000e
jmp 0x40be9f
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40be7d
call fcn.0040ab10
jmp 0x40be9d
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.0040ba70
mov edi, eax
test esi, esi
je 0x40beaa
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40bec3
lea ecx, [ebp - 0x418]
call fcn.0040aff0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043e140
mov esp, ebp
pop ebp
ret 0x10