Function at 0x401780
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp eax, 0xfc0
je 0x401ca7
cmp eax, 0xfc2
je 0x401dee
jg 0x4017b4
cmp dword [ebp + 0xc], 2
je 0x4017e9
jmp 0x401eaa
mov eax, dword [ebp + 0xc]
cmp eax, 0xfc8
je 0x40180b
cmp eax, 0xfc9
je 0x401939
cmp eax, 0xfca
je 0x401800
cmp eax, 0xfc8
jl 0x401eaa
cmp dword [ebp + 0xc], 0xff1
je 0x4017f5
jmp 0x401eaa
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x401eaa
push ebx
call fcn.004029a0
jmp 0x401eaa
push ebx
call fcn.00402c40
jmp 0x401eaa
cmp dword [ebp + 0x14], 0
jne 0x401eaa
push 0xfc0
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x200
push 0x43c488
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, 0x43c488
push eax
push 0xffffffffffffffff
push 0x158
push 0xfc0
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
jne 0x401874
mov eax, 0x43c488
push eax
push 0
push 0x14a
push 0xfc0
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0xfc0
push ebx
call fcn.004027d0
mov dword [0x43c888], 0
push 0xfc7
push ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x4018a2
or dword [0x43c888], 1
mov dword [0x43c88c], 1
jmp 0x4018ac
mov dword [0x43c88c], 0
push 0xfc3
push ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x4018d0
or dword [0x43c888], 4
mov dword [0x43c890], 4
jmp 0x4018da
mov dword [0x43c890], 0
push 0x1001
push ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x4018f7
mov dword [0x43c898], 1
jmp 0x401901
mov dword [0x43c898], 0
push 0xfc4
push ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x401925
or dword [0x43c888], 2
mov dword [0x43c894], 2
jmp 0x40192f
mov dword [0x43c894], 0
call fcn.004030e0
jmp 0x401eaa
cmp dword [ebp + 0x14], 0
jne 0x401eaa
mov dword [ebp - 0x808], 1
mov esi, 1
push 0xfc0
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x200
push 0x43c488
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, 0x43c488
push eax
push 0xffffffffffffffff
push 0x158
push 0xfc0
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
jne 0x4019b1
mov eax, 0x43c488
push eax
push 0
push 0x14a
push 0xfc0
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0xfc0
push ebx
call fcn.004027d0
mov dword [0x43c888], 0
push 0xfc7
push ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x4019df
or dword [0x43c888], 1
mov dword [0x43c88c], 1
jmp 0x4019e9
mov dword [0x43c88c], 0
push 0xfc3
push ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x401a14
or dword [0x43c888], 4
or dword [ebp - 0x808], 4
mov dword [0x43c890], 4
jmp 0x401a1e
mov dword [0x43c890], 0
push 0xfc4
push ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x401a49
or dword [0x43c888], 2
or dword [ebp - 0x808], 2
mov dword [0x43c894], 2
jmp 0x401a53
mov dword [0x43c894], 0
push 0x1001
push ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x401a70
mov dword [0x43c898], 1
jmp 0x401a7a
mov dword [0x43c898], 0
push 0xfc2
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x200
push 0x43c89c
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, 0x43c89c
push eax
push 0xffffffffffffffff
push 0x158
push 0xfc2
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
jne 0x401ad9
mov eax, 0x43c89c
push eax
push 0
push 0x14a
push 0xfc2
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0xfc2
push ebx
call fcn.004027d0
lea ecx, [ebp - 0x800]
mov edx, 0x43ee9c
push ecx
sub ecx, edx
mov ax, word [edx]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x401ae7
pop eax
push 0x42624a
lea eax, [ebp - 0x800]
push eax
call fcn.0041e5f0
add esp, 8
push 0x43c488
lea eax, [ebp - 0x800]
push eax
call fcn.0041e5f0
add esp, 8
jmp 0x401c9a
xor esi, esi
push 0
push 0
push 0x740
mov eax, dword [0x43f09c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x804], eax
test eax, eax
je 0x401c7b
push 0xffffffffffffffff
mov eax, dword [ebp - 0x804]
push eax
call fcn.00402e80
cmp eax, 0xffffffff
jne 0x401c9a
cmp dword [0x43c898], 0
jne 0x401b8d
push 0
push 0x42623e
lea eax, [ebp - 0x800]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x43f0a0], 0
jmp 0x401c9a
push 0
mov eax, dword [0x43f0a0]
lea edx, [eax + 1]
mov dword [0x43f0a0], edx
push eax
push 0x74b
mov eax, dword [0x43f09c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x80c], eax
test eax, eax
je 0x401c5a
mov eax, dword [0x43c888]
and eax, 1
cmp eax, 1
jne 0x401bd6
mov dword [ebp - 0x814], 0
jmp 0x401c0e
mov dword [ebp - 0x81c], 0xa
mov dword [ebp - 0x818], 0x4b0
push 0
lea eax, [ebp - 0x81c]
push eax
push 0x45f
mov eax, dword [ebp - 0x80c]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
dec eax
mov dword [ebp - 0x814], eax
mov eax, dword [ebp - 0x814]
mov dword [ebp - 0x810], eax
lea eax, [ebp - 0x814]
push eax
push 0
push 0x437
mov eax, dword [ebp - 0x80c]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov eax, dword [ebp - 0x80c]
mov eax, dword [eax]
push eax
push 0x74c
mov eax, dword [0x43f09c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, 1
jmp 0x401c9a
push 0
push 0x42623e
lea eax, [ebp - 0x800]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x43f0a0], 0
jmp 0x401c9a
push 0
push 0x42623e
lea eax, [ebp - 0x800]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x43f0a0], 0
test esi, esi
jne 0x401b24
jmp 0x401eaa
cmp dword [ebp + 0x14], 5
jne 0x401d81
push 0xfc0
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x401d1e
push 0xfc8
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xff1
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xfc9
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xfca
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x401d72
push 0xfc8
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xff1
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xfc9
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xfca
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [0x43f0a4], 0
jmp 0x401eaa
cmp dword [ebp + 0x14], 9
jne 0x401eaa
push 0xfc8
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xff1
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xfc9
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xfca
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [0x43f0a4], 0
jmp 0x401eaa
cmp dword [ebp + 0x14], 5
jne 0x401e63
push 0xfc0
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x401e37
push 0xfc9
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xfca
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x401eaa
push 0xfc9
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xfca
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x401eaa
cmp dword [ebp + 0x14], 9
jne 0x401eaa
push 0xfc0
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x401eaa
push 0xfc9
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xfca
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10