Function at 0x4070d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
cmp eax, 0x110
je 0x407110
cmp eax, 0x111
je 0x4072f1
cmp eax, 0x4e
je 0x4071c0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x6b
lea edi, [ebp - 0x1c]
mov dword [esp], eax
call sub.user32.dll_GetDlgItem
mov ebx, eax
mov eax, dword [esi + 0x1c]
sub esp, 8
mov dword [esp + 4], 0x4116a0
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._sprintf
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.user32.dll_SetWindowTextA
mov eax, dword [esi + 0x1c]
sub esp, 8
mov edx, dword [eax*4 + 0x41a710]
test edx, edx
je 0x407370
cmp edx, 1
je 0x407430
cmp edx, 2
je 0x407470
mov eax, dword [eax*4 + 0x41a708]
test al, 4
jne 0x407400
test al, 8
jne 0x4073d0
test al, 1
jne 0x4073a0
test al, 2
je 0x4070fa
mov eax, dword [ebp + 8]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x67
mov dword [esp], eax
call sub.user32.dll_CheckDlgButton
sub esp, 0xc
jmp 0x4070fa
cmp dword [esi + 8], 0xffffff36
jne 0x4070fa
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x6b
lea esi, [ebp - 0x1c]
mov dword [esp], eax
call sub.user32.dll_GetDlgItem
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp + 8], 4
mov dword [esp], eax
call sub.user32.dll_GetWindowTextA
sub esp, 0xc
mov dword [esp], esi
call sub.msvcrt.dll_atoi
mov dword [esp + 4], 0x68
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.unk_191
sub esp, 8
test eax, eax
je 0x407440
mov dword [esi*4 + 0x41a710], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x64
mov dword [esp], eax
call sym.unk_191
sub esp, 8
test eax, eax
mov eax, dword [esi*4 + 0x41a708]
je 0x4074b0
or eax, 4
mov dword [esi*4 + 0x41a708], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x65
mov dword [esp], eax
call sym.unk_191
sub esp, 8
test eax, eax
mov eax, dword [esi*4 + 0x41a708]
je 0x4074a0
or eax, 8
mov dword [esi*4 + 0x41a708], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x66
mov dword [esp], eax
call sym.unk_191
sub esp, 8
test eax, eax
mov eax, dword [esi*4 + 0x41a708]
je 0x407490
or eax, 1
mov dword [esi*4 + 0x41a708], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x67
mov dword [esp], eax
call sym.unk_191
sub esp, 8
test eax, eax
mov eax, dword [esi*4 + 0x41a708]
je 0x407480
or eax, 2
mov dword [esi*4 + 0x41a708], eax
jmp 0x4070fa
movzx esi, word [ebp + 0x10]
cmp esi, 0x64
jb 0x4070fa
cmp esi, 0x67
jbe 0x407333
cmp esi, 0x6a
ja 0x4070fa
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x6a
mov dword [esp + 4], 0x68
mov dword [esp], eax
call sub.user32.dll_CheckRadioButton
sub esp, 0x10
jmp 0x4070fa
mov eax, dword [ebp + 8]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.unk_191
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], esi
movzx eax, al
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.user32.dll_CheckDlgButton
sub esp, 0xc
jmp 0x4070fa
mov eax, 0x68
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x6a
mov dword [esp + 4], 0x68
mov dword [esp], eax
call sub.user32.dll_CheckRadioButton
mov eax, dword [esi + 0x1c]
sub esp, 0x10
jmp 0x407175
mov eax, dword [ebp + 8]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x66
mov dword [esp], eax
call sub.user32.dll_CheckDlgButton
mov eax, dword [esi + 0x1c]
sub esp, 0xc
mov eax, dword [eax*4 + 0x41a708]
jmp 0x407194
mov eax, dword [ebp + 8]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x65
mov dword [esp], eax
call sub.user32.dll_CheckDlgButton
mov eax, dword [esi + 0x1c]
sub esp, 0xc
mov eax, dword [eax*4 + 0x41a708]
jmp 0x40718c
mov eax, dword [ebp + 8]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x64
mov dword [esp], eax
call sub.user32.dll_CheckDlgButton
mov eax, dword [esi + 0x1c]
sub esp, 0xc
mov eax, dword [eax*4 + 0x41a708]
jmp 0x407184
mov eax, 0x69
jmp 0x407375
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x69
mov dword [esp], eax
call sym.unk_191
sub esp, 8
test eax, eax
je 0x4074b8
mov dword [esi*4 + 0x41a710], 1
jmp 0x407230
mov eax, 0x6a
jmp 0x407375
and eax, 0xfffffffd
jmp 0x4072e5
and eax, 0xfffffffe
jmp 0x4072b6
and eax, 0xfffffff7
jmp 0x407287
and eax, 0xfffffffb
jmp 0x407258
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x6a
mov dword [esp], eax
call sym.unk_191
sub esp, 8
test eax, eax
je 0x407230
mov dword [esi*4 + 0x41a710], 2
jmp 0x407230