Function at 0x10021d30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055d5c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1006f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov esi, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100221f0
cmp dword [ebx + 0x24], 0
je 0x100221f0
mov ecx, dword [esi]
cmp dword [ecx - 8], 0
je 0x100221f0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x14]
call fcn.1000bab0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.10001ee0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000bab0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 8]
test eax, eax
jns 0x10021dd3
or edi, 0xffffffff
jmp 0x10021df0
mov ecx, dword [ebp - 0x14]
push ecx
push esi
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x10021dea
or edi, 0xffffffff
jmp 0x10021df0
sub eax, esi
sar eax, 1
mov edi, eax
mov eax, dword [esi - 8]
mov dword [ebp - 0x1c], edi
test eax, eax
js 0x10021e75
push str.http:__
push esi
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
test eax, eax
je 0x10021e75
sub eax, esi
sar eax, 1
jne 0x10021e75
test edi, edi
jle 0x10021e75
cmp edi, 7
jge 0x10021e75
mov edi, dword [esi - 8]
mov dword [ebp - 0x24], 7
test edi, edi
jle 0x10021e66
cmp edi, 7
jge 0x10021e32
mov dword [ebp - 0x24], edi
lea ecx, [ebp - 0x10]
call fcn.10001ee0
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
sub edi, ecx
lea edx, [esi + ecx*2]
mov ecx, dword [esi - 4]
lea eax, [edi + edi + 2]
lea ecx, [ecx + ecx + 2]
cmp ecx, eax
jb 0x10021e60
push eax
push edx
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
mov dword [esi - 8], edi
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
call fcn.10001d40
mov dword [ebp - 0x1c], eax
mov eax, dword [esi - 8]
test eax, eax
js 0x10021ef5
push str.https:__
push esi
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
test eax, eax
je 0x10021ef5
sub eax, esi
sar eax, 1
jne 0x10021ef5
mov eax, dword [ebp - 0x1c]
dec eax
cmp eax, 6
ja 0x10021ef5
mov esi, dword [esi - 8]
mov dword [ebp - 0x1c], 8
test esi, esi
jle 0x10021ee6
cmp esi, 8
jge 0x10021eb4
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x10]
call fcn.10001ee0
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x1c]
lea edx, [edi + ecx*2]
mov ecx, dword [edi - 4]
lea eax, [esi + esi + 2]
lea ecx, [ecx + ecx + 2]
cmp ecx, eax
jb 0x10021ee3
push eax
push edx
push edi
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
mov dword [edi - 8], esi
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
call fcn.10001d40
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1006f9d0]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], eax
push 0x824
push 0x824
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.10001d80
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx + 0x28]
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x18]
call fcn.10001ee0
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp + 8]
push edi
lea edx, [ebp - 0x18]
xor ecx, ecx
mov dword [esi - 8], eax
push edx
mov word [esi + eax*2], cx
call fcn.10029150
test al, al
je 0x10021f5b
mov dword [ebp - 0x24], 1
mov eax, dword [edi]
mov eax, dword [eax - 8]
add eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.10010200
push eax
push edi
lea edx, [ebp - 0x20]
push edx
mov byte [ebp - 4], 3
call fcn.1000ad50
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x10021fad
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10021fad
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x10021fbe
mov edi, dword [ebp - 0x20]
mov esi, dword [ebx + 0x24]
call fcn.10016c60
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
mov edi, dword [ebx + 0x24]
call fcn.10016c90
cmp dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edi, dword [ecx - 8]
je 0x10021fe6
mov esi, dword [ebx + 0x24]
push 0xffffffffffffffff
push edi
call fcn.10016ce0
mov eax, edi
lea esi, [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.10010200
mov ecx, dword [ebp + 0x10]
push eax
mov byte [ebp - 4], 6
call fcn.1000b570
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
lea edx, [eax - 0xc]
cmp edx, dword [0x1006f9cc]
je 0x10022030
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10022030
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push 0x84
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x10022053
push eax
call fcn.10035630
mov esi, eax
jmp 0x10022055
xor esi, esi
mov byte [ebp - 4], 5
mov eax, dword [ebx + 0x2b8]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
mov eax, dword [ebx + 0x2bc]
mov dword [esi + 0x40], eax
mov edx, dword [esi]
mov dword [esi + 0x28], 4
mov eax, dword [ebx + 0x290]
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x260]
sub eax, dword [ebx + 0x25c]
lea edi, [ebx + 0x25c]
sar eax, 2
imul eax, eax, 0x1b
xor ecx, ecx
push eax
mov eax, dword [edx + 0x10]
push ecx
mov ecx, esi
call eax
mov ebx, dword [ebx + 0x2c0]
mov edx, dword [esi]
mov eax, 0x1b
push eax
mov eax, dword [edx + 0x18]
push ebx
mov ecx, esi
call eax
push ecx
lea edx, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 8], esp
push edx
call fcn.1000bab0
mov ecx, esi
call fcn.1001a4e0
mov ebx, dword [ebp + 0xc]
push ecx
mov byte [esi + 0x21], 1
mov eax, dword [ebx]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.1000bab0
mov ecx, esi
call fcn.1001a560
mov eax, dword [ebx]
push ecx
add eax, 4
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.1000bab0
mov ecx, esi
call fcn.1001a5e0
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.Enter
mov dword [eax], 1
call fcn.1000b6f0
mov ecx, esi
call fcn.1001a6e0
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
call fcn.100243e0
mov eax, dword [edi + 4]
sub eax, dword [edi]
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sar eax, 2
mov dword [esi + 0x48], 7
mov dword [esi + 0x4c], 1
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x20]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x10022181
add eax, 0xfffffff4
push eax
call ebx
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
test eax, eax
jg 0x10022187
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
push eax
call edi
add esp, 4
jmp 0x10022187
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
lea edx, [eax - 0xc]
cmp edx, dword [0x1006f9cc]
je 0x100221a9
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x100221a9
push esi
call edi
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x100221cb
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x100221cb
push esi
call edi
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
lea edx, [eax - 0xc]
cmp edx, dword [0x1006f9cc]
je 0x100221f0
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x100221f0
push esi
call edi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10