Function at 0x1002df60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x100668d8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x248], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [ebp - 4], 0
xor ecx, ecx
jne 0x1002df89
cmp dword [ebp + 0xc], 0x11
jne 0x1002dfa0
push 1
push 0x10068354
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [ebp + 0xc], 0xd
je 0x1002dfab
jmp 0x1002e31c
cmp dword [0x10068354], 0
je 0x1002dfc6
push 0
push 0x10068354
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1002e31c
push 0x1000
call fcn.100324f4
add esp, 4
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x238]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x1002dfed
jmp 0x1002e31c
push 0x800
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x248]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
jne 0x1002e006
call fcn.10001fa0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x1002e02a
mov dword [ebp - 0x24c], 0
jmp 0x1002e08b
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3fffffff
jle 0x1002e04f
mov dword [ebp - 0x250], 0
jmp 0x1002e07f
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.1003a650
mov dword [ebp - 0x254], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x254]
push eax
call fcn.10002490
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x24c]
push edx
call fcn.1002fa20
add esp, 4
test eax, eax
jne 0x1002e0a3
jmp 0x1002e31c
call fcn.1002dee0
test eax, eax
jne 0x1002e0d9
call fcn.100189f0
test eax, eax
je 0x1002e0b7
jmp 0x1002e0d4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x248]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x248]
call fcn.1002e840
jmp 0x1002e314
push 2
call fcn.1002c7a0
mov ecx, eax
call fcn.10030860
test eax, eax
je 0x1002e314
push 0x800
call fcn.100324f4
add esp, 4
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x1002e314
push 0x20c
push 0
lea edx, [ebp - 0x230]
push edx
call fcn.1003ac40
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
call fcn.1002c7a0
mov ecx, eax
call fcn.10030970
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x1002e2fc
lea ecx, [ebp - 0x230]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x1002e16c
mov dword [ebp - 0x258], 0
jmp 0x1002e1cd
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3fffffff
jle 0x1002e191
mov dword [ebp - 0x25c], 0
jmp 0x1002e1c1
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.1003a650
mov dword [ebp - 0x260], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.10002490
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x258], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x1002e1e5
mov dword [ebp - 0x264], 0
jmp 0x1002e246
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3fffffff
jle 0x1002e20a
mov dword [ebp - 0x268], 0
jmp 0x1002e23a
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.1003a650
mov dword [ebp - 0x26c], esp
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
shl edx, 1
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.10002490
mov dword [ebp - 0x268], eax
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x264], edx
push 0x800
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x264]
push edx
call fcn.1002fcd0
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1002e27d
mov dword [ebp - 0x270], 0
jmp 0x1002e2dc
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3fffffff
jle 0x1002e2a2
mov dword [ebp - 0x274], 0
jmp 0x1002e2d0
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.1003a650
mov dword [ebp - 0x278], esp
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x278]
push edx
call fcn.10001fb0
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x270]
push ecx
mov edx, dword [ebp - 0x248]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x240]
push eax
call fcn.1003a08b
add esp, 4
xor ecx, ecx
jne 0x1002df8d
cmp dword [ebp - 4], 0
je 0x1002e341
mov edx, dword [ebp - 4]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
push eax
call fcn.1003a08b
add esp, 4
mov dword [ebp - 4], 0
xor eax, eax
lea esp, [ebp - 0x278]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1003a5ba
mov esp, ebp
pop ebp
ret 0x10