Function at 0x515ec0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a333c
mov eax, dword fs:[0]
push eax
sub esp, 0x40
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 esi, ecx
lea ecx, [ebp - 0x40]
call fcn.005734f0
push 0
push 0
push 0x146
mov dword [ebp - 4], 0
push dword [esi + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
sub edi, 1
js 0x515f2b
push 0
push edi
push 0x144
push dword [esi + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
sub edi, 1
jns 0x515f15
xor eax, eax
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x160]
cmp byte [eax + 0xa8], 0
je 0x515f47
mov edi, dword [eax + 0x17c]
jmp 0x515f49
xor edi, edi
mov eax, dword [esi + 0x168]
sub eax, 0
je 0x515f63
sub eax, 1
je 0x515f5e
sub eax, 1
jne 0x515f73
or eax, 0xffffffff
jmp 0x515f70
mov eax, dword [esi + 0x164]
test eax, eax
je 0x515f73
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], vtable.CInstanceSmartPtr_class_CMainFrame_.0
call fcn.00546620
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 1
test eax, eax
jne 0x515fb4
push eax
push eax
push 0xfe00000a
push str.CInstanceSmartPtr_CMainFrame_
push 0x45
push 0x6ad
push str.C:drone_srcGUIWindowsConfigNetwork.cpp
push str.CConfigNetwork::MapSecurityModes
call fcn.00573980
add esp, 0x20
jmp 0x516157
mov ecx, eax
call fcn.00545f50
mov ecx, dword [ebp - 0x44]
mov ebx, edi
and ebx, 0xd333
test al, al
cmove ebx, edi
mov eax, ebx
or eax, 2
and ecx, eax
mov dword [ebp - 0x44], ecx
je 0x51612f
xor edi, edi
nop dword [eax]
mov eax, ecx
mov ecx, edi
sar eax, cl
test al, 1
je 0x5160fa
cmp edi, 1
jne 0x5160b3
test ebx, 0x1000
je 0x516047
mov ecx, dword [esi + 0x160]
lea eax, [ebp - 0x28]
push 0xc
push eax
call fcn.00532e00
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00443fb0
push eax
push 0
push 0x14a
push dword [esi + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x516047
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
test ebx, 0x2000
je 0x516097
mov ecx, dword [esi + 0x160]
lea eax, [ebp - 0x28]
push 0xd
push eax
call fcn.00532e00
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00443fb0
push eax
push 0
push 0x14a
push dword [esi + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x516097
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
test bl, 2
je 0x5160fa
mov ecx, dword [esi + 0x160]
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.00532e00
mov byte [ebp - 4], 4
jmp 0x5160c7
mov ecx, dword [esi + 0x160]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00532e00
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x40]
call fcn.00443fb0
push eax
push 0
push 0x14a
push dword [esi + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x5160fa
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
mov ecx, dword [ebp - 0x44]
inc edi
cmp edi, 0x11
jl 0x515fe0
push 0
push 0
push 0x14e
push dword [esi + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x146
push dword [esi + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x51614f
push 0x6739b8
lea ecx, [ebp - 0x40]
call fcn.00443fb0
push eax
mov ecx, esi
call fcn.00515090
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 0x48]
call fcn.005465d0
lea ecx, [ebp - 0x40]
call fcn.005734b0
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