Function at 0x49853c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov dword [esp], eax
mov ebp, dword [0x4be750]
mov byte [esp + 4], 0
push 0x30a
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call sub.user32.dll_GetDlgItem
mov esi, eax
push esi
call sub.user32.dll_GetWindowTextLengthA
mov ebx, eax
inc ebx
push ebx
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
jne 0x4985a4
mov dword [esp + 0x1c], ebx
fild dword [esp + 0x1c]
add esp, 0xfffffff8
fistp qword [esp]
wait
call fcn.004b1e30
mov edx, eax
mov ax, 0xb
call fcn.004acdac
jmp 0x4989a0
push ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call sub.user32.dll_GetWindowTextA
mov edi, dword [esp + 0xc]
mov eax, dword [esp]
mov dx, 0x325
call fcn.00497994
mov edx, dword [0x4be784]
mov byte [edx + 0x18c8], al
mov eax, dword [esp]
mov dx, 0x326
call fcn.00497994
mov edx, dword [0x4be784]
mov byte [edx + 0x18b7], al
push 0x327
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call sub.user32.dll_IsDlgButtonChecked
mov edx, dword [0x4be784]
mov byte [edx + 0x18c0], al
mov eax, dword [0x4be784]
cmp byte [eax + 0x189e], 2
jne 0x498616
push edi
push edi
call sub.user32.dll_CharToOemA
mov eax, dword [0x4be784]
cmp byte [eax + 0x188a], 0
je 0x49865f
mov eax, edi
call fcn.004b8144
mov esi, eax
test esi, esi
jl 0x49865f
inc esi
xor ebx, ebx
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b7], 0
je 0x498653
mov al, byte [edi + ebx]
mov edx, dword [0x4be784]
cmp al, byte [edx + 0x189c]
je 0x49865b
lea eax, [ebx + edi]
call fcn.004acb2c
inc ebx
dec esi
jne 0x498634
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [0x4be7a4]
mov dword [ebp], eax
mov eax, dword [ebp]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
mov eax, dword [eax + 0x100]
test eax, eax
je 0x498686
call fcn.004ab744
mov eax, dword [0x4be784]
add eax, 0x1a7a
mov cx, 0xff
mov edx, edi
call fcn.004b81d8
mov byte [esp + 0x18], 0
mov ebx, edi
mov dl, 0xd
mov eax, edi
call fcn.004b8284
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
je 0x4986dd
mov edx, dword [esp + 0x10]
sub edx, edi
mov eax, 0xff
call fcn.004aa570
mov ecx, eax
mov eax, dword [0x4bedb0]
mov edx, edi
call fcn.004b81d8
mov edi, dword [esp + 0x10]
add edi, 2
jmp 0x4986ed
mov eax, dword [0x4bedb0]
mov cx, 0xff
mov edx, edi
call fcn.004b81d8
mov eax, dword [0x4bedb0]
cmp byte [eax], 0
je 0x4988f6
cmp dword [esp + 8], 0
jle 0x498723
mov eax, 0x13a
call fcn.00402504
mov dword [ebp], eax
mov eax, dword [ebp]
mov edx, dword [esp + 0x14]
mov dword [edx + 0x100], eax
mov eax, dword [ebp]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
mov edx, 0x13a
call fcn.004066e4
mov eax, dword [0x4be784]
mov al, byte [eax + 0x18c0]
cmp al, 2
jae 0x498755
mov edx, dword [0x4be784]
cmp al, 1
sete al
mov edx, dword [ebp]
mov byte [edx + 0x138], al
jmp 0x49877e
cmp byte [esp + 0x18], 0
jne 0x49876f
mov eax, dword [ebp]
mov byte [eax + 0x138], 0
mov byte [esp + 0x18], 1
mov edi, ebx
jmp 0x49877e
mov eax, dword [ebp]
mov byte [eax + 0x138], 1
mov byte [esp + 0x18], 0
mov edx, dword [0x4bedb0]
cmp byte [edx], 0x30
jne 0x49882c
mov eax, dword [0x4bedb0]
mov al, byte [eax + 1]
cmp al, 0x78
je 0x4987a7
mov edx, dword [0x4bedb0]
cmp al, 0x58
jne 0x49882c
mov eax, dword [ebp]
mov byte [eax + 0x137], 1
push 0x32
push 1
push 0
mov eax, dword [ebp]
lea edx, [eax + 0x104]
mov eax, dword [0x4bedb0]
add eax, 2
or ecx, 0xffffffff
call fcn.004b1510
test eax, eax
jg 0x49881e
mov ax, 0xd1
call fcn.004aa600
mov edx, eax
mov eax, dword [0x4beb38]
call fcn.004b81b0
push 0x4989ac
mov eax, dword [0x4beb38]
push eax
call sub.kernel32.dll_lstrcatA
mov eax, dword [0x4bedb0]
push eax
mov eax, dword [0x4beb38]
push eax
call sub.kernel32.dll_lstrcatA
mov eax, dword [0x4beb38]
mov edx, 3
call fcn.004b12a8
jmp 0x4989a0
mov edx, dword [ebp]
mov byte [edx + 0x136], al
jmp 0x4988f2
push 0
push 1
mov edx, dword [0x4bedb0]
mov eax, dword [esp + 8]
mov cx, 0x30a
call fcn.00497314
test al, al
je 0x4989a0
mov eax, dword [0x4bedb0]
mov byte [eax + 0x32], 0
mov eax, dword [0x4bedb0]
call fcn.004b8144
mov ebx, eax
mov eax, dword [ebp]
mov byte [eax + 0x136], bl
mov eax, dword [ebp]
cmp byte [eax + 0x138], 0
jne 0x49889e
mov esi, ebx
and esi, 0xff
test esi, esi
jle 0x4988f2
mov ebx, 1
mov eax, dword [0x4bedb0]
mov dl, byte [eax]
mov ecx, dword [ebp]
mov byte [ecx + ebx + 0x103], dl
inc ebx
inc eax
dec esi
jne 0x49888b
jmp 0x4988f2
mov eax, dword [ebp]
movzx esi, byte [eax + 0x136]
test esi, esi
jle 0x4988de
mov ebx, 1
mov eax, dword [0x4bedb0]
mov edx, ebx
add edx, edx
mov ecx, dword [ebp]
mov byte [ecx + edx + 0x103], 0
mov edx, ebx
add edx, edx
mov ecx, dword [ebp]
lea edx, [ecx + edx + 0x102]
push edx
mov dl, byte [eax]
pop ecx
mov byte [ecx], dl
inc ebx
inc eax
dec esi
jne 0x4988b6
mov eax, dword [ebp]
mov al, byte [eax + 0x136]
add eax, eax
mov edx, dword [ebp]
mov byte [edx + 0x136], al
inc dword [esp + 8]
cmp dword [esp + 0x10], 0
jne 0x4986a0
cmp byte [esp + 0x18], 0
jne 0x4986a0
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [0x4be7a4]
mov dword [ebp], eax
mov eax, dword [esp]
mov dx, 0x322
call fcn.00497994
mov edx, dword [0x4be784]
mov byte [edx + 0x18b3], al
mov eax, dword [esp]
mov dx, 0x323
call fcn.00497994
mov edx, dword [0x4be784]
mov byte [edx + 0x18bf], al
mov eax, dword [esp]
mov dx, 0x324
call fcn.00497994
mov edx, dword [0x4be784]
mov byte [edx + 0x18c1], al
push 0x320
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call sub.user32.dll_IsDlgButtonChecked
mov edx, dword [0x4be784]
mov byte [edx + 0x18a6], al
mov eax, dword [esp]
mov dx, 0x65
call fcn.00497994
mov edx, dword [0x4be784]
mov byte [edx + 0x1882], al
mov byte [esp + 4], 1
mov al, byte [esp + 4]
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret