Function at 0x40bf20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460181
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x47201c]
xor eax, esp
mov dword [esp + 0x1f8], eax
push ebx
push esi
push edi
mov eax, dword [0x47201c]
xor eax, esp
push eax
lea eax, [esp + 0x210]
mov dword fs:[0], eax
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov ebx, ecx
call esi
push 1
mov dword [ebx + 0x378], eax
call esi
mov dword [ebx + 0x37c], eax
mov eax, dword [ebx + 4]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0xfffbffff
or ecx, 0x80
cmp eax, ecx
je 0x40bfa7
push ecx
mov ecx, dword [ebx + 4]
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebx + 4]
lea esi, [ebx + 0x1c]
mov edi, esi
call fcn.00414b10
lea eax, [ebx + 0x14]
push eax
call fcn.00417510
mov esi, dword [0x47a4f8]
test esi, esi
jne 0x40bfcd
mov esi, dword [0x47a4f4]
mov edx, dword [ebx]
mov eax, dword [edx + 0x94]
push 0x4645f4
mov ecx, ebx
call eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40c1b6
mov eax, dword [0x47a4f8]
test eax, eax
jne 0x40bffe
mov eax, dword [0x47a4f4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40c01a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40c1b6
mov eax, dword [0x47a4f8]
test eax, eax
jne 0x40c028
mov eax, dword [0x47a4f4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x40c1b6
push esi
call fcn.0044f631
add esp, 4
mov dword [0x47a500], eax
test eax, eax
je 0x40c068
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x47a500]
push eax
push edx
call fcn.00457600
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call fcn.00414cc0
xor edi, edi
add esp, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov byte [esp + 0x170], 1
mov dword [esp + 0x174], edi
mov dword [esp + 0x178], edi
mov dword [esp + 0x218], edi
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x17c]
push ecx
mov ecx, ebx
mov dword [esp + 0x18], vtable.CDialogBuilderCallbackEx.0
call edx
mov byte [esp + 0x218], 1
mov eax, dword [eax]
xor ecx, ecx
mov word [esp + 0x18], cx
mov ecx, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x40c0e0
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x1c]
call fcn.004046d0
mov byte [esp + 0x218], 3
mov eax, dword [esp + 0x17c]
lea edx, [esp + 0x180]
cmp eax, edx
je 0x40c11c
push eax
call fcn.004501b9
add esp, 4
cmp dword [esp + 0x2c], 8
mov ecx, dword [esp + 0x18]
jae 0x40c12b
lea ecx, [esp + 0x18]
push edi
lea esi, [ebx + 0x1c]
push esi
lea eax, [esp + 0x1c]
push eax
push edi
push ecx
mov eax, esp
mov dword [eax], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], esp
call fcn.004108d0
push eax
mov edi, esi
call fcn.00416a60
lea eax, [ebx + 0x10]
push eax
call fcn.00417430
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
mov byte [ebx + 0xd4], 1
call eax
cmp dword [esp + 0x2c], 8
jb 0x40c17d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044f751
add esp, 4
mov eax, dword [esp + 0x34]
xor edx, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], dx
test eax, eax
je 0x40c1a5
push eax
call fcn.004501b9
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40c1b6
push eax
call fcn.004501b9
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret 0x10