Function at 0x406780
Capabilities:
Check for peb beingdebugged flag
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov dword [ebp - 0xa8], ecx
mov ecx, dword [0x4334c4]
push esi
push edi
test ecx, ecx
je 0x4067c3
mov dl, 1
call fcn.0040c180
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4
push 0
push 1
push 0x433d38
call dword [sym.imp.ntdll.dll_RtlRunOnceBeginInitialize]
test eax, eax
jns 0x4068f3
push 0
push 0
push 0x433d38
call dword [sym.imp.ntdll.dll_RtlRunOnceBeginInitialize]
cmp eax, 0x103
jne 0x4068f3
mov eax, dword [0x4334c0]
xor esi, esi
cmp dword [eax + 8], esi
jbe 0x4068d4
lea esp, [esp]
mov eax, dword [0x4334c0]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
imul ecx, esi
mov ecx, dword [ecx + eax + 8]
test ecx, ecx
je 0x4068c5
mov eax, dword fs:[0x18]
mov dword [ebp - 0x98], 5
mov dword [ebp - 0x90], 0
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 8]
movzx eax, cx
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xa0]
push eax
push 3
lea eax, [ebp - 0x98]
push eax
push edi
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x4068c5
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xa0]
push edi
call dword [sym.imp.ntdll.dll_LdrAccessResource]
xor ecx, ecx
test eax, eax
cmovns ecx, dword [ebp - 0xa4]
js 0x4068c5
test dword [ecx + 0xc], 0x40000000
je 0x4068c5
movzx eax, word [ecx + 0x16]
cmp word [0x433d40], ax
jge 0x4068b2
mov word [0x433d40], ax
movzx eax, word [ecx + 0x18]
cmp word [0x433924], ax
jge 0x4068c5
mov word [0x433924], ax
mov eax, dword [0x4334c0]
inc esi
cmp esi, dword [eax + 8]
jb 0x406810
add word [0x433924], 0x26
add word [0x433d40], 0x12
push 0
push 0
push 0x433d38
call dword [sym.imp.ntdll.dll_RtlRunOnceComplete]
call fcn.00407de0
push 0x122
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x66
push 0x42e168
mov ebx, eax
lea eax, [ebp - 0x8c]
push 0x40
push eax
call fcn.00409bc0
add esp, 0x10
lea edx, [ebp - 0x8c]
mov ecx, str.SettingsLastPage
push 0
call fcn.00402c80
mov dword [0x4334bc], 0x411ce0
lea edi, [ebx + 0x1a]
mov dword [ebx], 0xffff0001
xor eax, eax
mov dword [ebx + 4], 0
mov ecx, 0x7ffffffe
mov dword [ebx + 8], 0x50000
mov dword [ebx + 0xc], 0x86c800c8
mov dword [ebx + 0x10], 4
mov word [ebx + 0x14], ax
mov ax, word [0x433d40]
mov word [ebx + 0x16], ax
mov ax, word [0x433924]
mov word [ebx + 0x18], ax
mov eax, 0x42ce1c
cmp word [eax], 0
je 0x406993
add eax, 2
sub ecx, 1
jne 0x406985
lea eax, [ecx + ecx]
mov ecx, 0xfffffffc
sub ecx, eax
xor eax, eax
lea esi, [ecx + 2]
mov word [ecx + edi], ax
push esi
push 0x42ce1c
push edi
call fcn.00416670
add esp, 0xc
mov ecx, 0x7ffffffe
add edi, esi
mov eax, 0x42ce1c
cmp word [eax], 0
je 0x4069cf
add eax, 2
sub ecx, 1
jne 0x4069c1
lea eax, [ecx + ecx]
mov ecx, 0xfffffffc
sub ecx, eax
xor eax, eax
lea esi, [ecx + 2]
mov word [ecx + edi], ax
push esi
push 0x42ce1c
push edi
call fcn.00416670
add esp, 0xc
mov ecx, 0x7ffffffe
add edi, esi
mov eax, 0x42ce1c
lea ecx, [ecx]
cmp word [eax], 0
je 0x406a0e
add eax, 2
sub ecx, 1
jne 0x406a00
lea eax, [ecx + ecx]
mov ecx, 0xfffffffc
sub ecx, eax
xor eax, eax
lea esi, [ecx + 2]
mov word [ecx + edi], ax
push esi
push 0x42ce1c
push edi
call fcn.00416670
xor eax, eax
mov dword [esi + edi], 0x1900008
mov word [esi + edi + 4], ax
add esp, 0xc
add edi, 6
mov ecx, 0x7ffffffe
add edi, esi
mov eax, str.MS_Shell_Dlg
lea ecx, [ecx]
cmp word [eax], 0
je 0x406a5e
add eax, 2
sub ecx, 1
jne 0x406a50
lea eax, [ecx + ecx]
mov ecx, 0xfffffffc
sub ecx, eax
xor eax, eax
lea esi, [ecx + 2]
mov word [ecx + edi], ax
push esi
push str.MS_Shell_Dlg
push edi
call fcn.00416670
add esp, 0xc
lea ecx, [ebp - 0xa0]
add edi, esi
mov edx, 0x76
mov si, word [0x433924]
mov dword [ebp - 0xa0], edi
mov di, word [0x433d40]
push str.SysTabControl32
lea eax, [esi - 0x22]
movzx eax, ax
push eax
lea eax, [edi - 0x10]
movzx eax, ax
push eax
push 6
push 8
push 0x56014040
call fcn.0040e6a0
push str.Button
push 0xe
push 0x32
sub si, 0x16
lea ecx, [ebp - 0xa0]
push esi
push 8
push 0x56010000
mov edx, 0x77
call fcn.0040e6a0
push str.Button
push 0xe
push 0x32
push esi
lea eax, [edi - 0x70]
mov edx, 0x78
movzx eax, ax
lea ecx, [ebp - 0xa0]
push eax
push 0x56010000
call fcn.0040e6a0
push str.Button
push 0xe
push 0x32
push esi
sub di, 0x3a
lea ecx, [ebp - 0xa0]
movzx eax, di
mov edx, 0x79
push eax
push 0x56010000
call fcn.0040e6a0
mov eax, dword fs:[0x18]
push 0
push 0x406b80
push dword [ebp - 0xa8]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 8]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
call fcn.00407de0
push ebx
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4