Function at 0x40be4e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448448
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x45fd70]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
call fcn.0042568e
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x48], eax
je 0x40c417
cmp dword [esp + 0x40], ebx
je 0x40c417
push 0x28
call fcn.0041b856
mov esi, eax
pop ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x60], ebx
cmp esi, ebx
je 0x40bf02
push ebx
push dword [esp + 0x44]
mov ecx, esi
push dword [esp + 0x50]
call fcn.004264b7
mov byte [esp + 0x60], 1
mov dword [esi], vtable.CMemBuffer.0
mov byte [esp + 0x60], bl
mov dword [esp + 0x38], esi
jmp 0x40bf08
mov dword [esp + 0x38], ebx
mov esi, ebx
or dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x3c], esi
mov dword [esp + 0x60], 2
push 4
pop edi
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], ebx
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
jne 0x40bf48
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [esp + 0x3c], ebx
jmp 0x40c417
lea ecx, [esp + 0x34]
call fcn.00401b04
mov byte [esp + 0x60], 3
lea ecx, [esp + 0x30]
call fcn.00401b04
mov byte [esp + 0x60], 4
cmp dword [esp + 0x44], 0xffff0001
mov ebx, dword [ebp + 8]
push edi
jne 0x40c1b2
mov eax, dword [esi]
lea ecx, [ebx + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push edi
lea ecx, [ebx + 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push edi
lea ecx, [ebx + 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push 2
pop edi
push edi
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
lea eax, [esp + 0x34]
push eax
lea edi, [esp + 0x28]
call fcn.0040b8b3
test eax, eax
pop ecx
je 0x40c3e8
lea eax, [esp + 0x30]
push eax
lea edi, [esp + 0x2c]
call fcn.0040b8b3
test eax, eax
pop ecx
je 0x40c3e8
lea eax, [ebx + 0x34]
push eax
call fcn.0040b92f
test eax, eax
pop ecx
je 0x40c3e8
mov eax, dword [esi]
push 2
lea ecx, [ebx + 0x40]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push 2
lea ecx, [ebx + 0x42]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push 1
lea ecx, [ebx + 0x44]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push 1
lea ecx, [ebx + 0x45]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
lea eax, [ebx + 0x48]
push eax
call fcn.0040b92f
test eax, eax
pop ecx
je 0x40c3e8
and dword [esp + 0x40], 0
mov byte [esp + 0x60], 5
cmp word [esp + 0x2c], 0
je 0x40c142
add dword [esp + 0x2c], 0xffff
push 0x50
call fcn.0041b856
pop ecx
mov dword [esp + 0x50], eax
mov byte [esp + 0x60], 6
test eax, eax
je 0x40c0fc
push eax
call fcn.0040b967
mov ebx, eax
jmp 0x40c0fe
xor ebx, ebx
mov byte [esp + 0x60], 5
mov ecx, esi
mov dword [esp + 0x40], ebx
call fcn.0040bb7d
test eax, eax
je 0x40c168
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.0040c4f7
cmp eax, dword [esi + 4]
jae 0x40c1a8
mov ecx, dword [esi]
lea edi, [ecx + eax*4]
lea esi, [esp + 0x40]
call fcn.0040c47f
cmp word [esp + 0x2c], 0
mov esi, dword [esp + 0x38]
jne 0x40c0d5
mov ebx, dword [ebp + 8]
add dword [esp + 0x2c], 0xffff
mov byte [esp + 0x60], 4
cmp dword [esp + 0x40], 0
je 0x40c34c
push dword [esp + 0x40]
call fcn.0040c4a5
jmp 0x40c34c
mov byte [esp + 0x60], 4
test ebx, ebx
je 0x40c177
push ebx
call fcn.0040c4a5
and dword [esp + 0x40], 0
mov byte [esp + 0x60], 3
lea ecx, [esp + 0x30]
call fcn.004088d8
mov byte [esp + 0x60], 2
lea ecx, [esp + 0x34]
call fcn.004088d8
or dword [esp + 0x60], 0xffffffff
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
jmp 0x40c40d
push 0x80070057
call fcn.004017d0
mov edx, dword [esi]
lea eax, [ebx + 0x20]
push eax
mov ecx, esi
call dword [edx + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push edi
lea ecx, [ebx + 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push 2
pop edi
push edi
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
lea eax, [esp + 0x34]
push eax
lea edi, [esp + 0x28]
call fcn.0040b8b3
test eax, eax
pop ecx
je 0x40c3e8
lea eax, [esp + 0x30]
push eax
lea edi, [esp + 0x2c]
call fcn.0040b8b3
test eax, eax
pop ecx
je 0x40c3e8
lea eax, [ebx + 0x34]
push eax
call fcn.0040b92f
test eax, eax
pop ecx
je 0x40c3e8
test byte [ebx + 0x20], 0x40
je 0x40c2b2
mov eax, dword [esi]
push 2
lea ecx, [ebx + 0x40]
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c3e8
add ebx, 0x48
push ebx
call fcn.0040b92f
test eax, eax
pop ecx
je 0x40c3e8
and dword [esp + 0x40], 0
mov byte [esp + 0x60], 7
jmp 0x40c324
add dword [esp + 0x2c], 0xffff
push 0x50
call fcn.0041b856
pop ecx
mov dword [esp + 0x50], eax
mov byte [esp + 0x60], 8
test eax, eax
je 0x40c2e5
push eax
call fcn.0040b967
mov ebx, eax
jmp 0x40c2e7
xor ebx, ebx
mov byte [esp + 0x60], 7
mov ecx, esi
mov dword [esp + 0x40], ebx
call fcn.0040b9af
test eax, eax
je 0x40c168
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.0040c4f7
cmp eax, dword [esi + 4]
jae 0x40c1a8
mov ecx, dword [esi]
lea edi, [ecx + eax*4]
lea esi, [esp + 0x40]
call fcn.0040c47f
mov esi, dword [esp + 0x38]
cmp word [esp + 0x2c], 0
jne 0x40c2be
add dword [esp + 0x2c], 0xffff
mov byte [esp + 0x60], 4
cmp dword [esp + 0x40], 0
je 0x40c349
push dword [esp + 0x40]
call fcn.0040c4a5
mov ebx, dword [ebp + 8]
movsx eax, word [esp + 0x14]
movsx ecx, word [esp + 0x18]
and dword [esp + 0x40], 0
mov dword [ebx + 0x28], eax
movsx eax, word [esp + 0x1c]
mov dword [ebx + 0x24], ecx
movsx ecx, word [esp + 0x20]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x34]
xor edi, edi
mov dword [ebx + 0x2c], ecx
cmp dword [eax - 0xc], edi
je 0x40c385
push eax
call fcn.0042e6bc
pop ecx
jmp 0x40c38a
movzx eax, word [esp + 0x24]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x30]
cmp dword [eax - 0xc], edi
je 0x40c39f
push eax
call fcn.0042e6bc
pop ecx
jmp 0x40c3a4
movzx eax, word [esp + 0x28]
mov dword [ebx + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x14], eax
mov byte [esp + 0x60], 3
lea ecx, [esp + 0x30]
call fcn.004088d8
mov byte [esp + 0x60], 2
lea ecx, [esp + 0x34]
call fcn.004088d8
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
xor eax, eax
mov dword [esp + 0x3c], edi
inc eax
jmp 0x40c419
mov byte [esp + 0x60], 3
lea ecx, [esp + 0x30]
call fcn.004088d8
mov byte [esp + 0x60], 2
lea ecx, [esp + 0x34]
call fcn.004088d8
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
and dword [esp + 0x3c], 0
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8