Function at 0x100041d0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x42c]
push 0x400
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
mov esi, 3
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [esp + 0x28]
push 0x40
push ecx
call ebp
lea edx, [esp + 0x30]
push 0x100100c8
push edx
mov edi, eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x10
test edi, edi
je 0x10004282
test eax, eax
je 0x10004248
cmp eax, edi
jbe 0x10004248
mov esi, 2
push 0x100100b8
jmp 0x1000427a
push 0x100100a8
mov esi, 1
call fcn.10003300
push 4
lea eax, [esp + 0x30]
push 0x100102d0
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x10
test eax, eax
jne 0x10004282
mov esi, 3
push 0x100102c8
call fcn.10003300
add esp, 4
dec esi
je 0x100046e5
dec esi
je 0x10004393
dec esi
jne 0x1000481c
mov eax, dword [esp + 0x430]
lea edi, [esp + 0x28]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
lea ebp, [eax + ecx*2]
mov eax, 1
or ecx, 0xffffffff
lea ebp, [ebp + ebp*4]
shl ebp, 2
mov dword [ebp + 0x10041040], eax
mov dword [ebp + 0x10040928], ebx
mov dword [ebp + 0x10040d30], 3
mov dword [ebp + 0x10040d38], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0x3c
jle 0x100042e9
mov esi, 0x3c
lea edx, [esp + 0x28]
lea eax, [ebp + 0x10040d3c]
push esi
push edx
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, 0x100661b4
or ecx, 0xffffffff
xor eax, eax
mov byte [esi + ebp + 0x10040d3c], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x10040ebc]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x10040930]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1001008c
mov eax, ecx
mov esi, edi
mov edi, edx
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.10003300
mov ecx, dword [esp + 0x34]
push ecx
push 0x10010080
call fcn.10003300
lea edx, [esp + 0x44]
push edx
push 0x1000ffb0
call fcn.10003300
add esp, 0x24
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x430]
lea edi, [esp + 0x28]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
lea ebp, [eax + ecx*2]
or ecx, 0xffffffff
xor eax, eax
lea ebp, [ebp + ebp*4]
shl ebp, 2
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x10040930]
mov eax, ecx
mov dword [ebp + 0x10041040], 1
mov esi, edi
mov dword [ebp + 0x10040928], ebx
mov edi, edx
mov dword [ebp + 0x10040d30], 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x10040ebc]
and ecx, 3
mov dword [esp + 0x20], ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0x10040d3c]
xor ebx, ebx
lea esi, [esp + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
test esi, esi
je 0x1000465e
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push 0x100100c8
push esi
call edi
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000454c
push 0x100102c4
push esi
call edi
mov edi, eax
add esp, 8
test edi, edi
je 0x100044d9
cmp dword [esp + 0x10], edi
jbe 0x100044d9
mov eax, edi
sub eax, esi
cmp eax, 0x3c
mov dword [esp + 0x14], eax
jle 0x1000446a
mov dword [esp + 0x14], 0x3c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
push esi
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add edi, 2
add esp, 0xc
sub esi, edi
mov byte [eax + ebp + 0x10040d3c], 0
dec esi
cmp esi, 0x3c
jle 0x1000449a
mov esi, 0x3c
push esi
push edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov byte [esi + ebp + 0x10040ebc], 0
inc ebx
add ebp, 0x40
add edx, 0x40
add edi, 0x40
cmp ebx, 5
lea esi, [ecx + 2]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
jge 0x10004542
jmp 0x1000440d
mov edi, dword [esp + 0x10]
sub edi, esi
cmp edi, 0x3c
jle 0x100044e9
mov edi, 0x3c
mov edx, dword [esp + 0x18]
push edi
push esi
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esp + 0x28]
push edi
push esi
push eax
mov byte [edi + ebp + 0x10040d3c], 0
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
add esp, 0x18
mov eax, 0x40
lea esi, [ecx + 2]
mov ecx, dword [esp + 0x1c]
mov byte [edi + ebp + 0x10040ebc], 0
inc ebx
add ebp, eax
add edx, eax
add ecx, eax
cmp ebx, 5
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jl 0x1000440d
push 0x100102ac
jmp 0x10004663
push 0x100102a8
push esi
call edi
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x10004606
mov cl, byte [eax + 1]
test cl, cl
jne 0x100045ff
push 0x100102c4
push esi
call edi
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x100045f8
cmp dword [esp + 0x10], ebp
jbe 0x100045f8
mov eax, ebp
sub eax, esi
cmp eax, 0x3c
mov dword [esp + 0x14], eax
jle 0x1000459e
mov dword [esp + 0x14], 0x3c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, ebx
shl edx, 6
push eax
push esi
lea edi, [edx + ecx]
lea edx, [edi + 0x10040d3c]
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add ebp, 2
add esp, 0xc
sub esi, ebp
mov byte [edi + eax + 0x10040d3c], 0
cmp esi, 0x3c
jle 0x100045db
mov esi, 0x3c
push esi
lea ecx, [edi + 0x10040ebc]
push ebp
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [edi + esi + 0x10040ebc], 0
inc ebx
jmp 0x1000466b
push 0x10010288
jmp 0x10004663
push 0x10010274
jmp 0x10004663
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 0x3c
jle 0x1000461e
mov edi, 0x3c
mov eax, dword [esp + 0x20]
mov edx, ebx
shl edx, 6
push edi
push esi
lea ebp, [edx + eax]
lea ecx, [ebp + 0x10040d3c]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
push edi
lea edx, [ebp + 0x10040ebc]
push esi
push edx
mov byte [edi + ebp + 0x10040d3c], 0
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x18
mov byte [edi + ebp + 0x10040ebc], 0
inc ebx
jmp 0x1000466b
push 0x10010018
call fcn.10003300
add esp, 4
mov ecx, dword [esp + 0x42c]
mov eax, dword [esp + 0x20]
push ecx
push 0x10010258
mov dword [eax + 0x10040d38], ebx
call fcn.10003300
add esp, 8
test ebx, ebx
jle 0x100046c3
mov edi, dword [esp + 0x24]
mov esi, 1
lea edx, [edi - 0x180]
push edx
push esi
push 0x1000ffd8
call fcn.10003300
push edi
push esi
push 0x1000ffc4
call fcn.10003300
add esp, 0x18
add edi, 0x40
inc esi
lea eax, [esi - 1]
cmp eax, ebx
jl 0x10004697
lea ecx, [esp + 0x28]
push ecx
push 0x1000ffb0
call fcn.10003300
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x430]
push 0x100102c4
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*8]
lea esi, [eax + edx*2]
mov eax, 1
lea esi, [esi + esi*4]
shl esi, 2
mov dword [esi + 0x10041040], eax
mov dword [esi + 0x10040928], ebx
mov dword [esi + 0x10040d30], eax
mov dword [esi + 0x10040d38], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [esp + 0x30]
push 0x40
push ecx
mov edi, eax
call ebp
lea edx, [esp + 0x38]
push 0x3e
push edx
call ebp
add esp, 0x18
mov ebx, eax
test edi, edi
je 0x100047a4
test ebx, ebx
je 0x100047a4
mov ebp, edi
lea eax, [esp + 0x28]
sub ebp, eax
cmp ebp, 0x3c
jle 0x1000475b
mov ebp, 0x3c
lea ecx, [esp + 0x28]
push ebp
lea edx, [esi + 0x10040d3c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add edi, 2
add esp, 0xc
sub ebx, edi
mov byte [esi + ebp + 0x10040d3c], 0
cmp ebx, 0x3c
jle 0x10004788
mov ebx, 0x3c
push ebx
lea eax, [esi + 0x10040ebc]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esi + ebx + 0x10040ebc], 0
jmp 0x100047f5
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 0x3c
jle 0x100047be
mov edi, 0x3c
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
lea ecx, [esp + 0x28]
push edi
lea edx, [esi + 0x10040d3c]
push ecx
push edx
call ebx
lea eax, [esp + 0x34]
push edi
lea ecx, [esi + 0x10040ebc]
push eax
push ecx
mov byte [esi + edi + 0x10040d3c], 0
call ebx
add esp, 0x18
mov byte [esi + edi + 0x10040ebc], 0
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esi + 0x10040930]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x418
ret