Function at 0x10003870
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 0x100100c8
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x100038d7
push 0x100100b8
mov esi, 2
call fcn.10003300
add esp, 4
mov edi, 1
jmp 0x100038eb
mov edi, 1
push 0x100100a8
mov esi, edi
call fcn.10003300
add esp, 4
mov eax, esi
dec eax
je 0x10003b77
dec eax
je 0x100039ee
dec eax
jne 0x10003c59
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 + 0x10041040], eax
mov dword [ebx + 0x10040928], ebp
mov dword [ebx + 0x10040d30], 3
mov dword [ebx + 0x10040d38], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x3c
jle 0x10003951
mov ecx, 0x3c
push ecx
lea ecx, [esp + 0x1c]
lea eax, [ebx + 0x10040d3c]
push ecx
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, 0x100661b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x10040ebc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1c], edx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x10040930]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
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 + 0x28]
push ecx
push 0x10010080
call fcn.10003300
mov edx, dword [esp + 0x2c]
push edx
push 0x10010070
call fcn.10003300
lea eax, [esp + 0x3c]
push eax
jmp 0x10003c3c
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 + 0x10040930]
mov eax, ecx
mov dword [ebx + 0x10041040], 1
mov esi, edi
mov dword [ebx + 0x10040928], ebp
mov edi, edx
mov dword [ebx + 0x10040d30], 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 + 0x10040d3c]
lea esi, [esp + 0x18]
mov dword [esp + 0x10], ecx
test esi, esi
je 0x10003af1
push 0x100100c8
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x10003aa9
sub eax, esi
cmp eax, 0x3c
jle 0x10003a7e
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 0x10003a55
push 0x10010058
jmp 0x10003af6
push 0x1001002c
call fcn.10003300
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 0x10003ace
mov ecx, 0x3c
jmp 0x10003ad3
cmp ecx, 8
jle 0x10003ad6
sub ecx, 8
mov eax, ebp
push ecx
shl eax, 6
push esi
lea ecx, [eax + ebx + 0x10040d3c]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
inc ebp
jmp 0x10003afe
push 0x10010018
call fcn.10003300
add esp, 4
mov edx, dword [esp + 0x41c]
push ebp
push edx
push 0x1000ffec
mov dword [ebx + 0x10040d38], ebp
call fcn.10003300
add esp, 0xc
test ebp, ebp
jle 0x10003b55
mov esi, 1
lea ebx, [ebx + 0x10040ebc]
lea eax, [ebx - 0x180]
push eax
push esi
push 0x1000ffd8
call fcn.10003300
push ebx
push esi
push 0x1000ffc4
call fcn.10003300
add esp, 0x18
add ebx, 0x40
inc esi
lea ecx, [esi - 1]
cmp ecx, ebp
jl 0x10003b29
lea edx, [esp + 0x18]
push edx
push 0x1000ffb0
call fcn.10003300
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret
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 + 0x10041040], edi
mov dword [esi + 0x10040928], ebp
mov dword [esi + 0x10040d30], edi
mov dword [esi + 0x10040d38], edi
lea edi, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x3c
jle 0x10003bbf
mov ecx, 0x3c
jmp 0x10003bc4
cmp ecx, 8
jle 0x10003bc7
sub ecx, 8
lea edx, [esp + 0x18]
lea ebx, [esi + 0x10040d3c]
push ecx
push edx
push ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [esi + 0x10040ebc]
mov ecx, 0x10
xor eax, eax
mov dword [esp + 0x1c], edi
rep stosd dword es:[edi], eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esi + 0x10040930]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x1000ff94
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10003300
push ebx
push 0x1000ff84
call fcn.10003300
mov ecx, dword [esp + 0x2c]
push ecx
push 0x10010070
call fcn.10003300
lea edx, [esp + 0x3c]
push edx
push 0x1000ffb0
call fcn.10003300
add esp, 0x2c
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