Function at 0x520e60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65b27e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
push ebx
push esi
push edi
xor edi, edi
push 0xfe
lea eax, [ebp - 0x138]
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x13c], edi
call fcn.006100a0
push 0x1fa
lea ecx, [ebp - 0x338]
push edi
push ecx
mov dword [ebp - 0x33c], edi
call fcn.006100a0
push 0x1fa
lea edx, [ebp - 0x538]
push edi
push edx
mov dword [ebp - 0x53c], edi
call fcn.006100a0
mov eax, dword [ebx + 0x20]
add esp, 0x24
push edi
push edi
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, edi
jne 0x520efe
call fcn.005a63a0
mov ecx, dword [ebx + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x521266
mov eax, dword [ebx + 0x24]
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xff
lea edx, [ebp - 0x33c]
push edx
push eax
call esi
lea eax, [ebp - 0x33c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x520f20
push 0xff
sub eax, edx
mov edx, dword [ebx + 0x28]
lea ecx, [ebp - 0x53c]
push ecx
sar eax, 1
push edx
mov dword [ebp - 0x20], eax
call esi
lea ecx, [ebp - 0x53c]
lea eax, [ebp - 0x33c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x520f76
cmp dx, di
je 0x520f72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x520f76
add eax, 4
add ecx, 4
cmp dx, di
jne 0x520f50
xor eax, eax
jmp 0x520f7b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x520fba
mov ecx, dword [0x716738]
push 0x80
lea eax, [ebp - 0x13c]
push eax
push 0x9f
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebx + 4]
push 0x10
push 0x67999c
lea edx, [ebp - 0x13c]
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x521266
mov ecx, dword [ebx + 0x20]
push edi
push edi
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [0x714068], 1
jne 0x520ff9
or dword [0x714068], 1
mov dword [ebp - 4], edi
push 2
push 0x800
call fcn.0061227d
add esp, 8
mov dword [0x714064], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [0x714064], edi
je 0x521266
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x20], 0x800
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x521015
sub eax, edx
sar eax, 1
cmp eax, edi
jne 0x521062
mov eax, dword [0x716738]
push 0x80
lea edx, [ebp - 0x13c]
push edx
push 0xc2
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebx + 4]
push 0x10
push 0x67999c
lea ecx, [ebp - 0x13c]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x521266
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 2
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 6
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov bl, 8
mov byte [ebp - 4], bl
mov ecx, dword [0x716738]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x80
lea eax, [ebp - 0x13c]
push eax
push 0x2e7d
push ecx
call esi
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00403420
mov ecx, dword [0x716738]
push 0x80
lea eax, [ebp - 0x13c]
push eax
push 0x2e7e
push ecx
call esi
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x14]
call fcn.00403420
mov ecx, dword [0x716738]
push 0x80
lea eax, [ebp - 0x13c]
push eax
push 0x2e7f
push ecx
call esi
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x10]
call fcn.00403420
mov ecx, dword [0x716738]
push 0x80
lea eax, [ebp - 0x13c]
push eax
push 0x2e80
push ecx
call esi
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x18]
call fcn.00403420
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x34], esp
push eax
mov dword [ebp - 0x28], esi
call fcn.004011f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x28], esp
push eax
mov dword [ebp - 0x30], esi
call fcn.004011f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x30], esp
push eax
mov dword [ebp - 0x24], esi
call fcn.004011f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x24], esp
push eax
mov dword [ebp - 0x38], esi
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [0x714064]
lea eax, [ebp - 0x20]
push eax
push ecx
lea edx, [ebp - 0x33c]
push edx
mov byte [ebp - 4], bl
call fcn.005a6610
add esp, 0x1c
cmp eax, edi
je 0x521233
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x714064]
push eax
push ecx
call fcn.005a6310
add esp, 8
test eax, eax
je 0x521233
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.004014a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.004014a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004014a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004014a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10