Function at 0x494d10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d5e8
mov eax, dword fs:[0]
push eax
mov eax, 0x115c
mov dword fs:[0], esp
call fcn.00555ae0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
push 0x3fe
push eax
mov dword [ebp - 0x48], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ebx, ebx
push 0xffc
lea ecx, [ebp - 0x1164]
push ebx
push ecx
mov esi, eax
mov dword [ebp - 0x1168], ebx
call fcn.00555020
add esp, 0xc
push 0x800
lea edx, [ebp - 0x1168]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x1168]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x494d84
sub eax, edx
sar eax, 1
add eax, eax
cmp eax, ebx
jne 0x494dfc
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f5774
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
push ebx
push 0x2e7c
call fcn.004013d0
add esp, 8
cmp eax, ebx
je 0x494dd4
push 0x2e7c
push eax
lea ecx, [ebp - 0x14]
call fcn.00405fa0
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
push 0x10
push 0x5a34f4
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
jmp 0x495354
push 0x800
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x1c], ebx
call fcn.004f0230
add esp, 8
test eax, eax
je 0x49536d
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 4
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 6
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 8
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0xa
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0xc
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0xe
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x10
push 0xfe
lea ecx, [ebp - 0x164]
push ebx
push ecx
mov dword [ebp - 0x168], ebx
call fcn.00555020
mov eax, dword [0x5fd7c0]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 0xc
push 0x80
lea edx, [ebp - 0x168]
push edx
push 0x2e7d
push eax
call esi
lea eax, [ebp - 0x168]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x494f20
sub eax, ecx
sar eax, 1
push eax
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00405e50
mov eax, dword [0x5fd7c0]
push 0x80
lea edx, [ebp - 0x168]
push edx
push 0x2e7e
push eax
call esi
lea eax, [ebp - 0x168]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x494f61
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00405e50
mov eax, dword [0x5fd7c0]
push 0x80
lea edx, [ebp - 0x168]
push edx
push 0x2e7f
push eax
call esi
lea eax, [ebp - 0x168]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x494fa2
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00405e50
mov eax, dword [0x5fd7c0]
push 0x80
lea edx, [ebp - 0x168]
push edx
push 0x2e80
push eax
call esi
lea eax, [ebp - 0x168]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x494fe3
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00405e50
mov eax, dword [0x5fd7c0]
push 0x80
lea edx, [ebp - 0x168]
push edx
push 0x2e81
push eax
call esi
lea eax, [ebp - 0x168]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x495024
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00405e50
mov eax, dword [0x5fd7c0]
push 0x80
lea edx, [ebp - 0x168]
push edx
push 0x2e82
push eax
call esi
lea eax, [ebp - 0x168]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x495065
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00405e50
mov eax, dword [0x5fd7c0]
push 0x80
lea edx, [ebp - 0x168]
push edx
push 0x2e7c
push eax
call esi
lea eax, [ebp - 0x168]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4950a6
sub eax, ecx
sar eax, 1
push eax
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00405e50
mov esi, dword [ebp - 0x14]
push ecx
mov edi, esp
add esi, 0xfffffff0
mov dword [ebp - 0x64], esp
push esi
mov dword [ebp - 0x18], edi
call fcn.004021d0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x12
mov edi, dword [ebp - 0x40]
mov ebx, esp
add edi, 0xfffffff0
mov dword [ebp - 0x60], esp
push edi
mov dword [ebp - 0x18], ebx
call fcn.004021d0
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0x14
mov ebx, dword [ebp - 0x38]
add ebx, 0xfffffff0
mov dword [ebp - 0x58], esp
mov dword [ebp - 0x10], esp
push ebx
call fcn.004021d0
mov edx, dword [ebp - 0x10]
add eax, 0x10
mov dword [edx], eax
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
mov dword [ebp - 0x4c], esp
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0x20], eax
call fcn.004021d0
mov ecx, dword [ebp - 0x10]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 0x50], esp
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0x28], eax
call fcn.004021d0
mov edx, dword [ebp - 0x10]
add eax, 0x10
mov dword [edx], eax
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov dword [ebp - 0x54], esp
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0x30], eax
call fcn.004021d0
mov ecx, dword [ebp - 0x10]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov dword [ebp - 0x5c], esp
mov dword [ebp - 0x18], esp
push eax
mov dword [ebp - 0x10], eax
call fcn.004021d0
mov edx, dword [ebp - 0x18]
add eax, 0x10
add esp, 4
mov dword [edx], eax
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x1c]
push eax
push ecx
lea edx, [ebp - 0x1168]
push edx
mov byte [ebp - 4], 0x10
call fcn.004f07f0
add esp, 0x28
test eax, eax
jne 0x495284
mov byte [ebp - 4], 0xe
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4951e5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 0xc
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495202
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [ebp - 4], 0xa
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49521f
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49523f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x28]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49525f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x30]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49527f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49534a
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 4]
push 1
push edx
call dword [sym.imp.USER32.dll_EndDialog]
mov byte [ebp - 4], 0xe
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4952b0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 0xc
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4952cd
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [ebp - 4], 0xa
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4952ea
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49530a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x28]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49532a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x30]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49534a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49536d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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