Function at 0x522f80
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a41fb
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x6340c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x58]
call fcn.005734f0
push 0x4da
mov dword [ebp - 4], 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4e3
mov dword [edi + 0x2c], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4e4
mov dword [edi + 0x30], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4e5
mov dword [edi + 0x34], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4e6
mov dword [edi + 0x38], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4e0
mov dword [edi + 0x3c], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4e7
mov dword [edi + 0x40], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4e1
mov dword [edi + 0x44], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4e8
mov dword [edi + 0x48], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
mov dword [edi + 0x4c], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 2
mov dword [edi + 0x50], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x671b40
lea ecx, [ebp - 0x58]
mov dword [edi + 0x54], eax
call fcn.00443fb0
push eax
push dword [edi + 0x40]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x673478
lea ecx, [ebp - 0x58]
call fcn.00443fb0
push eax
push dword [edi + 0x48]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x6719c0
lea ecx, [ebp - 0x58]
call fcn.00443fb0
push eax
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x672ae8
lea ecx, [ebp - 0x58]
call fcn.00443fb0
push eax
push dword [edi + 0x54]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x4ea
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x671198
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00443fb0
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 7
xor eax, eax
mov word [ebp - 0x28], ax
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x523110
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004459d0
push 0x5dbea0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.004833f0
add esp, 4
lea ecx, [edi + 0x8c]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00483460
add esp, 4
push 0x5dbde8
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0045ac80
mov ebx, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, ebx
je 0x5231cb
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x523195
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x18
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 0x14], 7
call fcn.004c7170
add esp, 0xc
mov dword [ebx + 0x10], 0
xor eax, eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x5231e6
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x40]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], 7
cmp eax, 8
jb 0x523215
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x70]
call fcn.00446620
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
cmp eax, 8
jb 0x52324b
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x88]
call fcn.00446620
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x4dc
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x673d00
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00443fb0
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x4dd
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x672728
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00443fb0
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x4de
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x671ee8
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00443fb0
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x4df
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x671be8
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00443fb0
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x674210
lea ecx, [ebp - 0x58]
call fcn.00443fb0
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [edi + 0xa8]
xor ebx, ebx
mov ecx, dword [edi + 0xa4]
sub eax, ecx
sar eax, 3
imul eax, eax, 0x3cf3cf3d
test eax, eax
je 0x52336f
xor esi, esi
nop dword [eax + eax]
cmp dword [ecx + esi + 0x14], 8
lea eax, [ecx + esi]
jb 0x52333c
mov eax, dword [eax]
push eax
push 0
push 0x143
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xa8]
inc ebx
mov ecx, dword [edi + 0xa4]
add esi, 0xa8
sub eax, ecx
sar eax, 3
imul eax, eax, 0x3cf3cf3d
cmp ebx, eax
jb 0x523330
push 0
push 0
push 0x14e
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.00522b60
push dword [edi + 0xb4]
mov ecx, edi
call fcn.0055e600
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [edi + 0x70]
lea eax, [ebp - 0x40]
push 0xc
push str.CL2CertPopup
push eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x30], 0xc
call fcn.004c7170
add esp, 0xc
mov byte [ebp - 0x34], 0
push edi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.0054bd10
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x5233ef
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00446620
add esp, 8
mov dword [ebp - 0x90], vtable.CInstanceSmartPtr_class_CMainFrame_.0
call fcn.00546620
mov ecx, eax
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 5
test ecx, ecx
jne 0x523432
push eax
push eax
push 0xfe00000a
push str.CInstanceSmartPtr_CMainFrame_
push 0x45
push 0x79
push str.C:drone_srcGUIWindowsL2CertPopup.cpp
push str.CL2CertPopup::OnInitDialog
call fcn.00573980
add esp, 0x20
jmp 0x523440
mov eax, dword [edi + 4]
mov dword [ecx + 0x5a4], eax
call fcn.005465d0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x52345b
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.005734b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c59c5
mov esp, ebp
pop ebp
ret 0x10