Function at 0x515a60
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x308]
sub esp, 0x308
push 0xffffffffffffffff
push 0x58f388
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5cca0c]
xor eax, ebp
mov dword [ebp + 0x304], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x3c]
add eax, 0xffffffff
cmp eax, 3
ja case.default.0x515aaa
jmp dword [eax*4 + 0x515f60]
mov eax, dword [edi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
jmp case.default.0x515aaa
mov ecx, dword [edi + 0x40]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jne 0x515ae0
mov edx, dword [edi + 4]
push 0x30
push edx
mov ecx, 0x59c60c
jmp 0x515f2a
xor esi, esi
push 0xc6
lea eax, [ebp + 0x19e]
push esi
push eax
mov word [ebp + 0x19c], si
call fcn.00552500
mov edx, dword [edi + 0x40]
add esp, 0xc
push 0x64
lea ecx, [ebp + 0x19c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle case.default.0x515aaa
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x515b51
lea esi, [eax + eax]
mov eax, esi
call fcn.00553150
mov eax, esp
push 0x3a8
push esi
lea ecx, [ebp + 0x19c]
push ecx
push eax
call fcn.00401180
mov esi, eax
push esi
mov ecx, edi
call fcn.00511b80
test al, al
je 0x515bce
push 0x59c5ec
lea ecx, [ebp - 0x2c]
call fcn.0040dcb0
mov ebx, eax
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.0040dcb0
push ebx
push eax
lea edx, [ebp]
push edx
mov byte [ebp - 4], 1
call fcn.0040cec0
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.004074a0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004074a0
cmp dword [ebp + 0x18], 0x10
mov ecx, dword [ebp + 4]
jae 0x515bae
lea ecx, [ebp + 4]
mov eax, dword [edi + 4]
push 0x30
push eax
mov edx, 0x59aadc
call fcn.00512c60
add esp, 8
lea ecx, [ebp]
call fcn.004074a0
jmp case.default.0x515aaa
push esi
mov ecx, edi
call fcn.0050cbd0
mov bl, al
test bl, bl
je 0x515c30
push 0x7f
lea ecx, [ebp + 0x11d]
push 0
push ecx
mov byte [ebp + 0x11c], 0
call fcn.00552500
movsx edx, bl
push edx
lea eax, [ebp + 0x11c]
push 0x59c7dc
push eax
call fcn.004ec670
mov ecx, dword [edi + 4]
push 0x30
push ecx
mov edx, 0x59aadc
lea ecx, [ebp + 0x11c]
call fcn.00512c60
mov edx, dword [edi + 0x40]
add esp, 0x20
push edx
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.default.0x515aaa
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x515c4b
xor eax, eax
jmp 0x515c6a
lea esi, [eax + eax]
mov eax, esi
call fcn.00553150
mov eax, esp
push 0x3a8
push esi
lea ecx, [ebp + 0x19c]
push ecx
push eax
call fcn.00401180
mov ecx, eax
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x515c70
sub ecx, esi
push ecx
push eax
lea ecx, [edi + 0x48]
call fcn.0040c1c0
mov edx, dword [edi + 4]
push 0x520
push edx
call fcn.0050cab0
add esp, 8
cmp eax, 1
jne 0x515cb1
mov ecx, edi
mov dword [edi + 0x44], eax
call fcn.00510490
mov dword [edi + 0x3c], 3
jmp case.default.0x515aaa
mov eax, dword [edi + 4]
push 0x521
push eax
call fcn.0050cab0
add esp, 8
cmp eax, 1
jne case.default.0x515aaa
mov ecx, edi
mov dword [edi + 0x44], 2
call fcn.00510ae0
mov dword [edi + 0x3c], 4
jmp case.default.0x515aaa
mov edx, dword [edi + 0x40]
push 0x64
lea ecx, [ebp + 0x2e4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jle case.default.0x515aaa
lea eax, [ebp + 0x2e4]
push eax
mov ecx, edi
call fcn.00511cb0
test al, al
jne 0x515d22
mov ecx, dword [edi + 4]
push 0x30
push ecx
mov ecx, 0x59c7c8
jmp 0x515f2a
lea eax, [ebp + 0x2e4]
lea edx, [eax + 1]
jmp 0x515d30
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x515d30
sub eax, edx
push eax
lea edx, [ebp + 0x2e4]
lea esi, [edi + 0x64]
push edx
mov ecx, esi
call fcn.0040c1c0
lea ebx, [edi + 0x80]
push 0x59648b
mov ecx, ebx
call fcn.0040dd10
lea ecx, [edi + 0x9c]
push 0x59648b
call fcn.0040dd10
push 0
lea eax, [edi + 0x9c]
push eax
mov eax, dword [edi + 0x44]
push ebx
push esi
push eax
lea ecx, [edi + 0x48]
push ecx
mov ecx, edi
call fcn.005150e0
mov ecx, edi
call fcn.0050f960
mov dword [edi + 0x3c], 1
jmp case.default.0x515aaa
xor ebx, ebx
push 0xfe
lea edx, [ebp + 0x1e]
push ebx
push edx
mov word [ebp + 0x1c], bx
call fcn.00552500
push 0x7e
lea eax, [ebp + 0x266]
push ebx
push eax
mov word [ebp + 0x264], bx
call fcn.00552500
mov ecx, dword [edi + 4]
push 0xffffffffffffffff
push 0x52a
push ecx
push 0x80
lea esi, [ebp + 0x1c]
call fcn.0050c890
mov edx, dword [edi + 4]
push 0xffffffffffffffff
push 0x52b
push edx
push 0x40
lea esi, [ebp + 0x264]
call fcn.0050c890
lea eax, [ebp + 0x1c]
add esp, 0x38
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x515e00
sub eax, edx
sar eax, 1
je 0x515f1f
lea eax, [ebp + 0x264]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x515e20
sub eax, edx
sar eax, 1
je 0x515f1f
lea ebx, [edi + 0x80]
mov ecx, ebx
call fcn.0042e410
lea ecx, [edi + 0x9c]
call fcn.0042e410
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x515e65
xor esi, esi
jmp 0x515e83
lea esi, [eax + eax]
mov eax, esi
call fcn.00553150
mov eax, esp
push 0x3a8
push esi
lea ecx, [ebp + 0x1c]
push ecx
push eax
call fcn.00401180
mov esi, eax
lea edx, [ebp + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x515ea3
mov dword [ebp - 0x10], 0
jmp 0x515ec8
add eax, eax
mov dword [ebp - 0x10], eax
call fcn.00553150
mov ecx, dword [ebp - 0x10]
mov eax, esp
push 0x3a8
push ecx
lea edx, [ebp + 0x264]
push edx
push eax
call fcn.00401180
mov dword [ebp - 0x10], eax
push esi
mov ecx, ebx
call fcn.0040dd10
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [edi + 0x9c]
call fcn.0040dd10
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x515ee4
sub eax, ecx
push eax
push esi
mov ecx, ebx
call fcn.0040c1c0
lea esi, [edi + 0x64]
push 0x59648b
mov ecx, esi
call fcn.0040dd10
mov ecx, dword [edi + 0x44]
push 0
lea eax, [edi + 0x9c]
push eax
push ebx
push esi
push ecx
lea edx, [edi + 0x48]
push edx
jmp 0x515d82
mov eax, dword [edi + 4]
push 0x30
push eax
mov ecx, 0x59c7a0
mov edx, 0x59aadc
call fcn.00512c60
add esp, 8
lea esp, [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x304]
xor ecx, ebp
call fcn.00552d63
add ebp, 0x308
mov esp, ebp
pop ebp
ret