Function at 0x100031f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x41c]
push 0x400
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x18]
push 0x1000de90
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x10003257
push 0x1000de80
mov esi, 2
call fcn.10002c40
add esp, 4
mov edi, 1
jmp 0x1000326b
mov edi, 1
push 0x1000de70
mov esi, edi
call fcn.10002c40
add esp, 4
mov eax, esi
dec eax
je 0x100034ed
dec eax
je 0x1000337a
dec eax
jne 0x100035db
mov eax, dword [esp + 0x420]
lea edi, [esp + 0x18]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*8]
or ecx, 0xffffffff
lea ebx, [eax + edx*2]
mov eax, 1
lea ebx, [ebx + ebx*4]
shl ebx, 2
mov dword [ebx + 0x100272e0], eax
mov dword [ebx + 0x10026bc8], ebp
mov dword [ebx + 0x10026fd0], 3
mov dword [ebx + 0x10026fd8], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x3c
jle 0x100032d1
mov ecx, 0x3c
push ecx
lea ecx, [esp + 0x1c]
lea eax, [ebx + 0x10026fdc]
push ecx
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, 0x1004c44c
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x1002715c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x10], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [ebx + 0x10026bd0]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x1000de54
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10002c40
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
push 0x1000de48
call fcn.10002c40
mov edx, dword [esp + 0x18]
add esp, 8
push edx
push 0x1000de38
call fcn.10002c40
add esp, 8
lea eax, [esp + 0x18]
push eax
jmp 0x100035be
mov eax, dword [esp + 0x420]
lea edi, [esp + 0x18]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
lea ebx, [eax + ecx*2]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebx + ebx*4]
shl ebx, 2
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x10026bd0]
mov eax, ecx
mov dword [ebx + 0x100272e0], 1
mov esi, edi
mov dword [ebx + 0x10026bc8], ebp
mov edi, edx
mov dword [ebx + 0x10026fd0], 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor ebp, ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0x10026fdc]
lea esi, [esp + 0x18]
mov dword [esp + 0x10], ecx
test esi, esi
je 0x1000347d
push 0x1000de90
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x10003435
sub eax, esi
cmp eax, 0x3c
jle 0x1000340a
mov eax, 0x3c
mov edx, dword [esp + 0x10]
push eax
push esi
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
inc ebp
add ecx, 0x40
cmp ebp, 5
lea esi, [edi + 2]
mov dword [esp + 0x10], ecx
jl 0x100033e1
push 0x1000de20
jmp 0x10003482
push 0x1000ddf4
call fcn.10002c40
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x3c
jle 0x1000345a
mov ecx, 0x3c
jmp 0x1000345f
cmp ecx, 8
jle 0x10003462
sub ecx, 8
mov eax, ebp
push ecx
shl eax, 6
push esi
lea ecx, [eax + ebx + 0x10026fdc]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
inc ebp
jmp 0x1000348a
push 0x1000dde0
call fcn.10002c40
add esp, 4
mov edx, dword [esp + 0x41c]
push ebp
push edx
push 0x1000ddb4
mov dword [ebx + 0x10026fd8], ebp
call fcn.10002c40
add esp, 0xc
test ebp, ebp
jle 0x100035b9
mov esi, 1
lea ebx, [ebx + 0x1002715c]
lea eax, [ebx - 0x180]
push eax
push esi
push 0x1000dda0
call fcn.10002c40
add esp, 0xc
push ebx
push esi
push 0x1000dd8c
call fcn.10002c40
add esp, 0xc
add ebx, 0x40
inc esi
lea ecx, [esi - 1]
cmp ecx, ebp
jl 0x100034b9
jmp 0x100035b9
mov eax, dword [esp + 0x420]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
lea esi, [eax + ecx*2]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esi + esi*4]
shl esi, 2
mov dword [esi + 0x100272e0], edi
mov dword [esi + 0x10026bc8], ebp
mov dword [esi + 0x10026fd0], edi
mov dword [esi + 0x10026fd8], edi
lea edi, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x3c
jle 0x10003535
mov ecx, 0x3c
jmp 0x1000353a
cmp ecx, 8
jle 0x1000353d
sub ecx, 8
lea edx, [esp + 0x18]
lea ebx, [esi + 0x10026fdc]
push ecx
push edx
push ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [esi + 0x1002715c]
mov ecx, 0x10
xor eax, eax
mov dword [esp + 0x1c], edi
rep stosd dword es:[edi], eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
add esp, 0xc
lea edx, [esi + 0x10026bd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x1000dd70
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10002c40
add esp, 8
push ebx
push 0x1000dd60
call fcn.10002c40
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
push 0x1000de38
call fcn.10002c40
add esp, 8
lea edx, [esp + 0x18]
push edx
push 0x1000dd4c
call fcn.10002c40
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret