Function at 0x40bbd5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x40
mov eax, 0x41e254
call fcn.0041dfb6
mov dword [ebp - 0x18], edx
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x2c], 0x401028
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040d6bd
test al, al
je 0x40be24
push 2
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x40bc3e
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push dword [ebp - 0x20]
push 4
call fcn.0040d0e5
add esp, 0x14
jmp 0x40be24
push ebx
push 1
push 0x402c3c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x40bc75
push 0x402da0
push ebx
push edi
call fcn.0040cff7
add esp, 0xc
test al, al
je 0x40be0b
push ecx
mov edx, edi
call fcn.0040b70d
jmp 0x40be0b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40bc88
push 0x402de0
jmp 0x40bc56
cmp dword [eax], 0xfecdfecd
je 0x40bca4
push 0x402e28
push ebx
push edi
call fcn.0040cff7
add esp, 0xc
jmp 0x40be0b
lea esi, [eax + 0x2c]
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x1c]
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0x18]
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.0040d6bd
test al, al
je 0x40be24
push 2
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40bcf7
mov edx, dword [ebp - 0x20]
push ecx
call fcn.0040b70d
jmp 0x40be24
push ebx
push 1
push 0x402c3c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40bd17
push 0x402e50
jmp 0x40bc56
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40bd0d
cmp dword [eax], 0xfecdfecd
jne 0x40bc90
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x402aa0
push eax
mov dword [ebp - 0x1c], eax
call fcn.0041d3c6
mov edi, eax
mov dword [ebp - 0x10], edi
pop ecx
pop ecx
test edi, edi
jne 0x40bd5f
call fcn.0040d097
jmp 0x40be0b
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov edx, 0x402c3c
mov word [0x41f4b8], ax
mov ecx, esi
push ebx
push 0x40bbc0
push 1
call fcn.0040dce9
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add edi, 0x2c
mov dword [ebp - 0x14], ebx
lea esi, [ebp - 0x3c]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x10]
lea esi, [ebp - 0x4c]
lea edi, [edi + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edi, eax
test edi, edi
jne 0x40bdcd
push 0x402ea4
push ebx
push esi
call fcn.0040cff7
add esp, 0xc
jmp 0x40be16
push dword [ebp - 0x1c]
movzx eax, word [0x41f4b8]
push dword [ebp - 0x10]
push eax
push 1
push 0x402c3c
push edi
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
jne 0x40bdf4
push 0x402ee0
jmp 0x40bdc1
mov ecx, edi
call fcn.00418c17
test eax, eax
jne 0x40be06
push 0x402f10
jmp 0x40bdc1
mov esi, dword [ebp - 0x14]
mov bl, 1
test esi, esi
je 0x40be16
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40be24
push eax
call sub.msvcrt.dll_free
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.0040d2d0
mov al, bl
call fcn.0041df93
ret