Function at 0x408470
Capabilities:
Get graphical window text

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov edx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
cmp eax, 0x110
je 0x4084c0
cmp eax, 0x111
je 0x408690
cmp eax, 0x4e
je 0x408570
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 4], 0x6b
lea edi, [ebp - 0x1c]
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetDlgItem]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x1c]
sub esp, 8
mov dword [esp + 4], 0x4131d0
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._sprintf
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowTextA]
mov eax, dword [esi + 0x1c]
sub esp, 8
mov edx, dword [eax*4 + 0x411860]
test edx, edx
je 0x408710
cmp edx, 1
je 0x4087d0
cmp edx, 2
je 0x408808
mov eax, dword [eax*4 + 0x41004c]
test al, 4
jne 0x4087a0
test al, 8
jne 0x408770
test al, 1
jne 0x408740
test al, 2
je 0x4084aa
mov dword [esp + 8], 1
mov dword [esp + 4], 0x67
mov dword [esp], ebx
call dword [sym.imp.user32.dll_CheckDlgButton]
sub esp, 0xc
jmp 0x4084aa
cmp dword [esi + 8], 0xffffff36
jne 0x4084aa
mov dword [esp + 4], 0x6b
lea esi, [ebp - 0x1c]
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp + 8], 4
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextA]
sub esp, 0xc
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_atoi]
mov dword [esp], ebx
mov edi, dword [sym.imp.user32.dll_IsDlgButtonChecked]
mov dword [esp + 4], 0x68
mov esi, eax
call edi
sub esp, 8
test eax, eax
je 0x4087e0
mov dword [esi*4 + 0x411860], 0
mov dword [esp + 4], 0x64
mov dword [esp], ebx
call edi
sub esp, 8
test eax, eax
mov eax, dword [esi*4 + 0x41004c]
je 0x408840
or eax, 4
mov dword [esi*4 + 0x41004c], eax
mov dword [esp + 4], 0x65
mov dword [esp], ebx
call edi
sub esp, 8
test eax, eax
mov eax, dword [esi*4 + 0x41004c]
je 0x408830
or eax, 8
mov dword [esi*4 + 0x41004c], eax
mov dword [esp + 4], 0x66
mov dword [esp], ebx
call edi
sub esp, 8
test eax, eax
mov eax, dword [esi*4 + 0x41004c]
je 0x408820
or eax, 1
mov dword [esi*4 + 0x41004c], eax
mov dword [esp + 4], 0x67
mov dword [esp], ebx
call edi
sub esp, 8
test eax, eax
mov eax, dword [esi*4 + 0x41004c]
je 0x408818
or eax, 2
mov dword [esi*4 + 0x41004c], eax
jmp 0x4084aa
movzx esi, dx
cmp dx, 0x67
jbe 0x4086d0
lea eax, [esi - 0x68]
cmp eax, 2
ja 0x4084aa
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x6a
mov dword [esp + 4], 0x68
mov dword [esp], ebx
call dword [sym.imp.user32.dll_CheckRadioButton]
sub esp, 0x10
jmp 0x4084aa
cmp esi, 0x63
jbe 0x4084aa
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], esi
movzx eax, al
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.user32.dll_CheckDlgButton]
sub esp, 0xc
jmp 0x4084aa
mov eax, 0x68
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x6a
mov dword [esp + 4], 0x68
mov dword [esp], ebx
call dword [sym.imp.user32.dll_CheckRadioButton]
mov eax, dword [esi + 0x1c]
sub esp, 0x10
jmp 0x408528
mov dword [esp + 8], 1
mov dword [esp + 4], 0x66
mov dword [esp], ebx
call dword [sym.imp.user32.dll_CheckDlgButton]
mov eax, dword [esi + 0x1c]
sub esp, 0xc
mov eax, dword [eax*4 + 0x41004c]
jmp 0x408547
mov dword [esp + 8], 1
mov dword [esp + 4], 0x65
mov dword [esp], ebx
call dword [sym.imp.user32.dll_CheckDlgButton]
mov eax, dword [esi + 0x1c]
sub esp, 0xc
mov eax, dword [eax*4 + 0x41004c]
jmp 0x40853f
mov dword [esp + 8], 1
mov dword [esp + 4], 0x64
mov dword [esp], ebx
call dword [sym.imp.user32.dll_CheckDlgButton]
mov eax, dword [esi + 0x1c]
sub esp, 0xc
mov eax, dword [eax*4 + 0x41004c]
jmp 0x408537
mov eax, 0x69
jmp 0x408715
mov dword [esp + 4], 0x69
mov dword [esp], ebx
call edi
sub esp, 8
test eax, eax
je 0x408848
mov dword [esi*4 + 0x411860], 1
jmp 0x4085e0
mov eax, 0x6a
jmp 0x408715
and eax, 0xfffffffd
jmp 0x40867d
and eax, 0xfffffffe
jmp 0x408654
and eax, 0xfffffff7
jmp 0x40862b
and eax, 0xfffffffb
jmp 0x408602
mov dword [esp + 4], 0x6a
mov dword [esp], ebx
call edi
sub esp, 8
test eax, eax
je 0x4085e0
mov dword [esi*4 + 0x411860], 2
jmp 0x4085e0