Function at 0x40a6c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cmp eax, 0x4e
je 0x40a790
cmp eax, 0x111
je 0x40a768
cmp eax, 0x110
jne 0x40a8f6
push 0x6b
push edi
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, eax
lea edi, [ebp - 0x14]
push dword [ebx + 0x1c]
push 0x40d4e8
push edi
call sym._sprintf
add esp, 0xc
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.user32.dll_SetWindowTextA]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax*4 + 0x419f60]
cmp ecx, 2
ja 0x40a73c
or ecx, 0x68
push ecx
push 0x6a
push 0x68
push edi
call dword [sym.imp.user32.dll_CheckRadioButton]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax*4 + 0x419f70]
test al, 4
jne 0x40a898
test al, 8
jne 0x40a8b5
test al, 1
jne 0x40a8d2
test al, 2
jne 0x40a8eb
jmp 0x40a8f6
mov eax, dword [ebp + 0x10]
movzx esi, ax
lea eax, [esi - 0x64]
cmp eax, 4
jae 0x40a880
push esi
push edi
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
xor ecx, ecx
test eax, eax
sete cl
push ecx
push esi
jmp 0x40a8ef
cmp dword [ebx + 8], 0xffffff36
jne 0x40a8f6
push 0x6b
push edi
call dword [sym.imp.user32.dll_GetDlgItem]
lea esi, [ebp - 0x10]
push 4
push esi
push eax
call dword [sym.imp.user32.dll_GetWindowTextA]
push esi
call dword [sym.imp.ucrtbase.dll_atoi]
add esp, 4
mov esi, eax
push 0x68
push edi
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
xor ecx, ecx
test eax, eax
jne 0x40a7f2
push 0x69
push edi
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
mov ecx, 1
test eax, eax
jne 0x40a7f2
push 0x6a
push edi
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
mov ecx, 2
test eax, eax
je 0x40a7f9
mov dword [esi*4 + 0x419f60], ecx
mov ebx, dword [sym.imp.user32.dll_IsDlgButtonChecked]
push 0x64
push edi
call ebx
xor ecx, ecx
test eax, eax
setne cl
mov eax, dword [esi*4 + 0x419f70]
and eax, 0xfffffffb
lea eax, [eax + ecx*4]
mov dword [esi*4 + 0x419f70], eax
push 0x65
push edi
call ebx
xor ecx, ecx
test eax, eax
setne cl
mov eax, dword [esi*4 + 0x419f70]
and eax, 0xfffffff7
lea eax, [eax + ecx*8]
mov dword [esi*4 + 0x419f70], eax
push 0x66
push edi
call ebx
xor ecx, ecx
test eax, eax
setne cl
mov eax, dword [esi*4 + 0x419f70]
and eax, 0xfffffffe
or ecx, eax
mov dword [esi*4 + 0x419f70], ecx
push 0x67
push edi
call ebx
xor ecx, ecx
test eax, eax
setne cl
mov eax, dword [esi*4 + 0x419f70]
and eax, 0xfffffffd
lea eax, [eax + ecx*2]
mov dword [esi*4 + 0x419f70], eax
jmp 0x40a8f6
mov eax, esi
add eax, 0xffffff98
cmp eax, 2
ja 0x40a8f6
push esi
push 0x6a
push 0x68
push edi
call dword [sym.imp.user32.dll_CheckRadioButton]
jmp 0x40a8f6
push 1
push 0x64
push edi
call dword [sym.imp.user32.dll_CheckDlgButton]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax*4 + 0x419f70]
test al, 8
je 0x40a753
push 1
push 0x65
push edi
call dword [sym.imp.user32.dll_CheckDlgButton]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax*4 + 0x419f70]
test al, 1
je 0x40a75b
push 1
push 0x66
push edi
call dword [sym.imp.user32.dll_CheckDlgButton]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax*4 + 0x419f70]
test al, 2
je 0x40a8f6
push 1
push 0x67
push edi
call dword [sym.imp.user32.dll_CheckDlgButton]
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0x10