Function at 0x4064f7
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1f5c
call fcn.0040be90
cmp dword [0x4a6140], 0x10
jge 0x406516
cmp dword [0x4a6140], 0
jge 0x40651b
jmp 0x406aed
mov eax, dword [ebp + 8]
and eax, 0xffff
mov dword [ebp - 0x1f5c], eax
cmp dword [ebp - 0x1f5c], 0xc0b
jg 0x406573
cmp dword [ebp - 0x1f5c], 0xc0b
je 0x406598
cmp dword [ebp - 0x1f5c], 2
je 0x406a5d
cmp dword [ebp - 0x1f5c], 0xbe7
je 0x4069fe
cmp dword [ebp - 0x1f5c], 0xc08
je 0x4067fd
jmp 0x406aed
cmp dword [ebp - 0x1f5c], 0xc3c
je 0x406a6e
cmp dword [ebp - 0x1f5c], 0xc3f
je 0x40661d
jmp 0x406aed
push 0x3e8
lea ecx, [ebp - 0x1f58]
push ecx
push 0xca3
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x3e8
lea edx, [ebp - 0x1b70]
push edx
push 0xca4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 4
lea eax, [ebp - 0x1b70]
push eax
lea ecx, [ebp - 0x1f58]
push ecx
mov edx, dword [0x4a5540]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x406618
mov eax, dword [0x4a6140]
imul eax, eax, 0x9650
add eax, 0x40f040
push eax
call fcn.0040990e
add esp, 4
call fcn.004080b2
jmp 0x406aed
cmp dword [0x40e848], 0xffffffff
jne 0x406648
push 0
push 0x4a61a8
push 0xcae
call fcn.00409a9b
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x406aed
lea ecx, [ebp - 0x1780]
push ecx
lea edx, [ebp - 0x1788]
push edx
lea eax, [ebp - 0x1784]
push eax
lea ecx, [ebp - 0x1394]
push ecx
call fcn.00407e16
add esp, 0x10
test eax, eax
je 0x406683
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x406aed
push 0x3e8
lea edx, [ebp - 0x177c]
push edx
push 0xc33
mov eax, dword [0x40f038]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x3e8
lea ecx, [ebp - 0x3e8]
push ecx
push 0xc40
mov edx, dword [0x40f038]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x3e8]
push eax
lea ecx, [ebp - 0x177c]
push ecx
call fcn.00407c4b
add esp, 8
mov word [ebp - 0xfa8], ax
movsx edx, word [ebp - 0xfa8]
cmp edx, 0x1000
jg 0x406703
movsx eax, word [ebp - 0xfa8]
test eax, eax
jge 0x40672b
mov word [ebp - 0xfa8], 0xfff
push 0
push 0x4a61ac
push 0xcad
call fcn.00409a9b
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x406743
movsx ecx, word [ebp - 0xfa8]
cmp ecx, 0x1000
jne 0x406743
mov word [ebp - 0xfa8], 0xfff
mov edx, dword [ebp - 0x1784]
imul edx, edx, 0xe10
mov eax, dword [ebp - 0x1788]
imul eax, eax, 0x3c
mov ecx, dword [ebp - 0x1780]
add ecx, edx
add eax, ecx
mov dword [ebp - 0xfa4], eax
lea edx, [ebp - 0x1394]
push edx
push 0x40ed04
lea eax, [ebp - 0xfa0]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov cx, word [ebp - 0xfa8]
push ecx
lea edx, [ebp - 0x3e8]
push edx
lea eax, [ebp - 0xbb8]
push eax
call fcn.0040823f
add esp, 0xc
lea ecx, [ebp - 0x3e8]
push ecx
push 0x40ed08
lea edx, [ebp - 0x7d0]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0xbc4
lea eax, [ebp - 0xfac]
push eax
mov ecx, dword [0x4a6140]
imul ecx, ecx, 0x9650
mov edx, dword [0x40e848]
imul edx, edx, 0xbc4
mov eax, dword [ecx + 0x418674]
add eax, edx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
call fcn.004080b2
jmp 0x406aed
lea ecx, [ebp - 0x1780]
push ecx
lea edx, [ebp - 0x1788]
push edx
lea eax, [ebp - 0x1784]
push eax
lea ecx, [ebp - 0x1394]
push ecx
call fcn.00407e16
add esp, 0x10
test eax, eax
je 0x406847
push 0
push 0x4a61b0
push 0xcac
call fcn.00409a9b
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x406aed
push 0x3e8
lea edx, [ebp - 0x177c]
push edx
push 0xc33
mov eax, dword [0x40f038]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x3e8
lea ecx, [ebp - 0x3e8]
push ecx
push 0xc40
mov edx, dword [0x40f038]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x3e8]
push eax
lea ecx, [ebp - 0x177c]
push ecx
call fcn.00407c4b
add esp, 8
mov word [ebp - 0xfa8], ax
movsx edx, word [ebp - 0xfa8]
push edx
push 0x40ed0c
lea eax, [ebp - 0x177c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
movsx ecx, word [ebp - 0xfa8]
cmp ecx, 0x1000
jg 0x4068e4
movsx edx, word [ebp - 0xfa8]
test edx, edx
jge 0x40690c
mov word [ebp - 0xfa8], 0xfff
push 0
push 0x4a61b4
push 0xcad
call fcn.00409a9b
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x406957
movsx eax, word [ebp - 0xfa8]
test eax, eax
jge 0x40693f
mov word [ebp - 0xfa8], 0
push 0
push 0x4a61b8
push 0xcad
call fcn.00409a9b
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x406957
movsx ecx, word [ebp - 0xfa8]
cmp ecx, 0x1000
jne 0x406957
mov word [ebp - 0xfa8], 0xfff
mov edx, dword [ebp - 0x1784]
imul edx, edx, 0xe10
mov eax, dword [ebp - 0x1788]
imul eax, eax, 0x3c
mov ecx, dword [ebp - 0x1780]
add ecx, edx
add eax, ecx
mov dword [ebp - 0xfa4], eax
lea edx, [ebp - 0x1394]
push edx
push 0x40ed10
lea eax, [ebp - 0xfa0]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov cx, word [ebp - 0xfa8]
push ecx
lea edx, [ebp - 0x3e8]
push edx
lea eax, [ebp - 0xbb8]
push eax
call fcn.0040823f
add esp, 0xc
lea ecx, [ebp - 0x3e8]
push ecx
push 0x40ed14
lea edx, [ebp - 0x7d0]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0xfac]
push eax
mov ecx, dword [0x4a6140]
imul ecx, ecx, 0x9650
add ecx, 0x40f040
push ecx
call fcn.00409944
add esp, 8
call fcn.004080b2
jmp 0x406aed
cmp dword [0x40e848], 0xffffffff
jne 0x406a29
push 0
push 0x4a61bc
push 0xcae
call fcn.00409a9b
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x406aed
mov edx, dword [0x40e848]
push edx
mov eax, dword [0x4a6140]
imul eax, eax, 0x9650
add eax, 0x40f040
push eax
call fcn.00409a3e
add esp, 8
mov dword [0x40e848], 0xffffffff
call fcn.004080b2
jmp 0x406aed
push 0
mov ecx, dword [0x40f038]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x406aed
push 0x40ed18
push 0xc3d
mov edx, dword [0x40f038]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0040981e
add esp, 8
push 0x40ed1c
push 0xbe1
mov eax, dword [0x40f038]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0040981e
add esp, 8
push 0x40ed20
push 0xbe3
mov ecx, dword [0x40f038]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0040981e
add esp, 8
push 0x40ed24
push 0xc33
mov edx, dword [0x40f038]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0040981e
add esp, 8
mov esp, ebp
pop ebp
ret