Function at 0x2108ac36
Capabilities:
Get graphical window text

Disassembly:
enter 0x29c, 0
cmp dword [0x401088], 0
jne 0x2108ac63
push 0x30
push 0x2108803a
push 0x2108815f
push dword [0x401004]
call sub.USER32.DLL_MessageBoxA
jmp 0x2108b961
lea eax, [ebp - 0x24c]
push eax
push dword [0x401088]
call sub.KERNEL32.DLL_GetExitCodeProcess
cmp dword [ebp - 0x24c], 0x103
je 0x2108aca1
push 0x30
push 0x2108803a
push 0x21088094
push dword [0x401004]
call sub.USER32.DLL_MessageBoxA
jmp 0x2108b961
push 0
push dword [0x401040]
call sub.USER32.DLL_EnableWindow
push 0x28
lea eax, [ebp - 0x274]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x274], 4
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
lea eax, [ebp - 0x274]
push eax
push 0
push 0x1005
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
cmp dword [ebp - 0x254], 0
jne 0x2108ad1c
push 0x30
push 0x2108803a
push 0x2108813d
push dword [0x401004]
call sub.USER32.DLL_MessageBoxA
jmp 0x2108b961
push 0x21088355
push dword [0x40101c]
call sub.USER32.DLL_SetWindowTextA
push 0
push 0
push 0xb
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
push 0
push 0x2108e6d2
push dword [0x401004]
push 0x12d
push dword [section..data_]
call sub.USER32.DLL_CreateDialogParamA
mov dword [0x401064], eax
mov byte [ebp - 0x23d], 0
mov byte [ebp - 0x34], 0
push 0xb
lea eax, [ebp - 0x3e]
push eax
push dword [0x401014]
call sub.USER32.DLL_GetWindowTextA
mov byte [ebp - 0x30], 0x2e
mov byte [ebp - 0x2f], 0
mov byte [ebp - 0x32], 0x2d
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3e]
push eax
call sub.SHELL32.DLL_StrStrA
or eax, eax
jne 0x2108ae57
lea eax, [ebp - 0x3e]
push eax
call fcn.21097e95
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x32]
push eax
lea eax, [ebp - 0x3e]
push eax
call sub.SHELL32.DLL_StrStrA
or eax, eax
jne 0x2108ae0f
cmp dword [ebp - 0x28], 0xff
jg 0x2108add5
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x28], 0xff
jle 0x2108adf6
cmp dword [ebp - 0x28], 0xffff
jg 0x2108adf6
mov dword [ebp - 0x2c], 2
cmp dword [ebp - 0x28], 0xffff
jle 0x2108ae0a
mov dword [ebp - 0x2c], 3
jmp 0x2108ae52
mov eax, 0xffffff01
mov ebx, 0xffff0001
cmp dword [ebp - 0x28], eax
jl 0x2108ae29
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x28], eax
jge 0x2108ae42
cmp dword [ebp - 0x28], ebx
jl 0x2108ae42
mov dword [ebp - 0x2c], 2
cmp dword [ebp - 0x28], ebx
jge 0x2108ae52
mov dword [ebp - 0x2c], 3
jmp 0x2108ae87
mov dword [ebp - 0x2c], 4
wait
fninit
wait
fnstcw word [ebp - 0x2e]
and word [ebp - 0x2e], 0xf0ff
or word [ebp - 0x2e], 0x1000
fldcw word [ebp - 0x2e]
push 0x80
push 0
lea eax, [ebp - 0x3e]
push eax
call fcn.21097bd0
fstp dword [ebp - 0x28]
mov dword [0x4010e8], 0
mov dword [0x4010e4], 0
mov dword [0x4010ec], 0
mov dword [0x4010f0], 0
mov eax, dword [0x4010e0]
mov dword [ebp - 8], eax
mov dword [0x4010e0], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x2108b825
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jg 0x2108b28a
push 0x28
lea eax, [ebp - 0x274]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x274], 6
mov eax, dword [0x4010e0]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 0
lea eax, [ebp - 0x274]
push eax
push 0
push 0x1005
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
cmp dword [ebp - 0x258], 1
jne 0x2108affc
cmp dword [ebp - 0x2c], 1
jne 0x2108afe4
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0xc], eax
push 0
push 1
lea eax, [ebp - 0x33]
push eax
push dword [ebp - 0xc]
push dword [0x401088]
call sub.KERNEL32.DLL_ReadProcessMemory
mov al, byte [ebp - 0x28]
mov byte [ebp - 0x19], al
mov al, byte [ebp - 0x33]
cmp byte [ebp - 0x19], al
je 0x2108af8a
push 0
push dword [0x4010e0]
push 0x1008
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
jmp 0x2108afdf
push 0x28
lea eax, [ebp - 0x29c]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x29c], 1
mov eax, dword [0x4010e0]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], 1
lea eax, [ebp - 0x3e]
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x29c]
push eax
push 0
push 0x1006
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
inc dword [0x4010e0]
jmp 0x2108affc
push 0
push dword [0x4010e0]
push 0x1008
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
cmp dword [ebp - 0x258], 2
jne 0x2108b0d7
cmp dword [ebp - 0x2c], 2
jg 0x2108b0bf
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0xc], eax
push 0
push 2
lea eax, [ebp - 0xe]
push eax
push dword [ebp - 0xc]
push dword [0x401088]
call sub.KERNEL32.DLL_ReadProcessMemory
mov ax, word [ebp - 0x28]
mov word [ebp - 0x1c], ax
mov ax, word [ebp - 0xe]
cmp word [ebp - 0x1c], ax
je 0x2108b065
push 0
push dword [0x4010e0]
push 0x1008
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
jmp 0x2108b0ba
push 0x28
lea eax, [ebp - 0x29c]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x29c], 1
mov eax, dword [0x4010e0]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], 1
lea eax, [ebp - 0x3e]
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x29c]
push eax
push 0
push 0x1006
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
inc dword [0x4010e0]
jmp 0x2108b0d7
push 0
push dword [0x4010e0]
push 0x1008
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
cmp dword [ebp - 0x258], 3
jne 0x2108b1ae
cmp dword [ebp - 0x2c], 3
jg 0x2108b196
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0xc], eax
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
push dword [0x401088]
call sub.KERNEL32.DLL_ReadProcessMemory
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x20], eax
je 0x2108b13c
push 0
push dword [0x4010e0]
push 0x1008
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
jmp 0x2108b191
push 0x28
lea eax, [ebp - 0x29c]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x29c], 1
mov eax, dword [0x4010e0]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], 1
lea eax, [ebp - 0x3e]
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x29c]
push eax
push 0
push 0x1006
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
inc dword [0x4010e0]
jmp 0x2108b1ae
push 0
push dword [0x4010e0]
push 0x1008
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
cmp dword [ebp - 0x258], 4
jne 0x2108b285
cmp dword [ebp - 0x2c], 4
jne 0x2108b26d
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0xc], eax
push 0
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push dword [0x401088]
call sub.KERNEL32.DLL_ReadProcessMemory
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x24], eax
je 0x2108b213
push 0
push dword [0x4010e0]
push 0x1008
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
jmp 0x2108b268
push 0x28
lea eax, [ebp - 0x29c]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x29c], 1
mov eax, dword [0x4010e0]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], 1
lea eax, [ebp - 0x3e]
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x29c]
push eax
push 0
push 0x1006
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
inc dword [0x4010e0]
jmp 0x2108b285
push 0
push dword [0x4010e0]
push 0x1008
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
jmp 0x2108b81d
cld
lea esi, [0x4011fc]
add esi, dword [0x4010e4]
lodsd eax, dword [esi]
mov dword [ebp - 0xc], eax
lea eax, [0x4010e8]
lea esi, [0x2a26bfc]
add esi, dword [0x4010e8]
lodsb al, byte [esi]
mov byte [ebp - 0x246], al
cmp byte [ebp - 0x246], 1
jne 0x2108b40a
cmp dword [ebp - 0x2c], 1
jne 0x2108b40a
push 0
push 1
lea eax, [ebp - 0x33]
push eax
push dword [ebp - 0xc]
push dword [0x401088]
call sub.KERNEL32.DLL_ReadProcessMemory
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0x19], al
mov al, byte [ebp - 0x33]
cmp byte [ebp - 0x19], al
jne 0x2108b40a
inc dword [0x4010e0]
cmp dword [0x4010e0], 0x64
jg 0x2108b3d8
push 0x28
lea eax, [ebp - 0x274]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x274], 7
mov eax, dword [0x4010e0]
dec eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x258], 1
push dword [ebp - 0xc]
push 0x2108805f
lea eax, [ebp - 0x245]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x245]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x274]
push eax
push 0
push 0x1007
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
push 0x28
lea eax, [ebp - 0x274]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x274], 1
mov eax, dword [0x4010e0]
dec eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 1
lea eax, [ebp - 0x3e]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x274]
push eax
push 0
push 0x1006
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
jmp 0x2108b40a
cld
lea edi, [0x4011fc]
add edi, dword [0x4010ec]
mov eax, dword [ebp - 0xc]
stosd dword es:[edi], eax
add dword [0x4010ec], 4
lea edi, [0x2a26bfc]
add edi, dword [0x4010f0]
mov al, byte [ebp - 0x246]
stosb byte es:[edi], al
add dword [0x4010f0], 1
cmp byte [ebp - 0x246], 2
jne 0x2108b563
cmp dword [ebp - 0x2c], 2
jg 0x2108b563
push 0
push 2
lea eax, [ebp - 0xe]
push eax
push dword [ebp - 0xc]
push dword [0x401088]
call sub.KERNEL32.DLL_ReadProcessMemory
mov eax, dword [ebp - 0x28]
mov word [ebp - 0x1c], ax
mov ax, word [ebp - 0xe]
cmp word [ebp - 0x1c], ax
jne 0x2108b563
inc dword [0x4010e0]
cmp dword [0x4010e0], 0x64
jg 0x2108b531
push 0x28
lea eax, [ebp - 0x274]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x274], 7
mov eax, dword [0x4010e0]
dec eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x258], 2
push dword [ebp - 0xc]
push 0x2108805f
lea eax, [ebp - 0x245]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x245]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x274]
push eax
push 0
push 0x1007
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
push 0x28
lea eax, [ebp - 0x274]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x274], 1
mov eax, dword [0x4010e0]
dec eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 1
lea eax, [ebp - 0x3e]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x274]
push eax
push 0
push 0x1006
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
jmp 0x2108b563
cld
lea edi, [0x4011fc]
add edi, dword [0x4010ec]
mov eax, dword [ebp - 0xc]
stosd dword es:[edi], eax
add dword [0x4010ec], 4
lea edi, [0x2a26bfc]
add edi, dword [0x4010f0]
mov al, byte [ebp - 0x246]
stosb byte es:[edi], al
add dword [0x4010f0], 1
cmp byte [ebp - 0x246], 3
jne 0x2108b6b9
cmp dword [ebp - 0x2c], 3
jg 0x2108b6b9
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
push dword [0x401088]
call sub.KERNEL32.DLL_ReadProcessMemory
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x20], eax
jne 0x2108b6b9
inc dword [0x4010e0]
cmp dword [0x4010e0], 0x64
jg 0x2108b687
push 0x28
lea eax, [ebp - 0x274]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x274], 7
mov eax, dword [0x4010e0]
dec eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x258], 3
push dword [ebp - 0xc]
push 0x2108805f
lea eax, [ebp - 0x245]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x245]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x274]
push eax
push 0
push 0x1007
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
push 0x28
lea eax, [ebp - 0x274]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x274], 1
mov eax, dword [0x4010e0]
dec eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 1
lea eax, [ebp - 0x3e]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x274]
push eax
push 0
push 0x1006
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
jmp 0x2108b6b9
cld
lea edi, [0x4011fc]
add edi, dword [0x4010ec]
mov eax, dword [ebp - 0xc]
stosd dword es:[edi], eax
add dword [0x4010ec], 4
lea edi, [0x2a26bfc]
add edi, dword [0x4010f0]
mov al, byte [ebp - 0x246]
stosb byte es:[edi], al
add dword [0x4010f0], 1
cmp byte [ebp - 0x246], 4
jne 0x2108b80f
cmp dword [ebp - 0x2c], 4
jne 0x2108b80f
push 0
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push dword [0x401088]
call sub.KERNEL32.DLL_ReadProcessMemory
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x24], eax
jne 0x2108b80f
inc dword [0x4010e0]
cmp dword [0x4010e0], 0x64
jg 0x2108b7dd
push 0x28
lea eax, [ebp - 0x274]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x274], 7
mov eax, dword [0x4010e0]
dec eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x258], 4
push dword [ebp - 0xc]
push 0x2108805f
lea eax, [ebp - 0x245]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x245]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x274]
push eax
push 0
push 0x1007
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
push 0x28
lea eax, [ebp - 0x274]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x274], 1
mov eax, dword [0x4010e0]
dec eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 1
lea eax, [ebp - 0x3e]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x274]
push eax
push 0
push 0x1006
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
jmp 0x2108b80f
cld
lea edi, [0x4011fc]
add edi, dword [0x4010ec]
mov eax, dword [ebp - 0xc]
stosd dword es:[edi], eax
add dword [0x4010ec], 4
lea edi, [0x2a26bfc]
add edi, dword [0x4010f0]
mov al, byte [ebp - 0x246]
stosb byte es:[edi], al
add dword [0x4010f0], 1
add dword [0x4010e4], 4
add dword [0x4010e8], 1
dec dword [ebp - 8]
jmp 0x2108aec8
push 0
push 1
push 0xb
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
mov eax, dword [0x4010e0]
mov dword [ebp - 8], eax
push 0xff
lea eax, [ebp - 0x13d]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
push 0xff
lea eax, [ebp - 0x23c]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov byte [ebp - 0x3f], 0
mov byte [ebp - 0x13e], 0
cmp dword [ebp - 8], 0
jne 0x2108b8d6
call fcn.2108a31a
push 0x2108838b
lea eax, [ebp - 0x13d]
push eax
call sub.KERNEL32.DLL_lstrcatA
push dword [ebp - 8]
push 0x2108839e
lea eax, [ebp - 0x23c]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x13d]
push eax
call sub.KERNEL32.DLL_lstrcatA
lea eax, [ebp - 0x13d]
push eax
push dword [0x40101c]
call sub.USER32.DLL_SetWindowTextA
mov dword [0x4010d4], 1
jmp 0x2108b92d
push 0x2108838b
lea eax, [ebp - 0x13d]
push eax
call sub.KERNEL32.DLL_lstrcatA
push dword [ebp - 8]
push 0x2108839e
lea eax, [ebp - 0x23c]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x13d]
push eax
call sub.KERNEL32.DLL_lstrcatA
lea eax, [ebp - 0x13d]
push eax
push dword [0x40101c]
call sub.USER32.DLL_SetWindowTextA
mov dword [0x4010d4], 2
push 1
push dword [0x401040]
call sub.USER32.DLL_EnableWindow
push 0
push 0
push 0x10
push dword [0x401064]
call sub.USER32.DLL_SendMessageA
push 0
push 0
push 0xf
push dword [0x401004]
call sub.USER32.DLL_SendMessageA
jmp 0x2108b961
leave
ret 0