Function at 0x4864b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8ac
push esi
push edi
push str.Submit
push 0x4bd2c4
mov edi, ecx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
lea eax, [ebp - 0x6c]
sete byte [ebp - 0xd]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x3c]
lea ecx, [ebp - 0x24]
xor esi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x6c], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4864f0
sub eax, edx
sar eax, 1
mov dword [ebp - 0x68], eax
movzx eax, byte [edi + 4]
add eax, 0xfffffff3
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
cmp eax, 5
ja case.default.0x48651f
jmp dword [eax*4 + 0x486cec]
test byte [edi + 5], 0x80
push esi
push esi
je 0x486548
mov edx, dword [edi]
push 0x472
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cdq
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
jmp 0x486cc5
mov eax, dword [edi]
push 0x468
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cwde
cdq
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
jmp 0x486cc5
mov ecx, dword [edi]
push esi
push esi
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [edi + 5], 0x80
je 0x48657f
push eax
call fcn.00489b70
cdq
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
push 2
mov edx, dword [ebx]
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [edx + 0x1c]
push eax
push ebx
call ecx
lea esp, [ebp - 0x8b4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp byte [ebp - 0xd], 0
je 0x4865c5
mov eax, 1
lea esp, [ebp - 0x8b4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi]
push esi
push esi
push 0x408
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cdq
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
push 2
lea ecx, [ebp - 0xc]
push ecx
push 1
lea ecx, [ebp - 0x54]
lea edx, [ebp - 0x44]
push edx
push ecx
push ebx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
call edx
lea esp, [ebp - 0x8b4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi]
lea eax, [ebp - 0x8c]
push eax
push esi
push 0x1001
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x486639
lea eax, [ebp - 0x8c]
lea esi, [ebp - 0x8ac]
call fcn.0049e310
mov dword [ebp - 0x1c], 0
jmp 0x486583
mov eax, 0x4bd2c4
mov dword [ebp - 0x1c], 0
jmp 0x486583
mov edx, dword [edi]
push 0xfffffffffffffff0
push edx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 2
je 0x4866b3
mov ecx, dword [edi]
lea eax, [ebp - 0x8c]
push eax
push 0
push 0x1005
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x8c]
lea esi, [ebp - 0x8ac]
call fcn.0049e310
mov edx, 0x2d
lea eax, [ebp - 0x7c]
lea esi, [ebp - 0x89a]
mov word [ebp - 0x89c], dx
call fcn.0049e310
xor eax, eax
mov word [ebp - 0x88a], ax
mov dword [ebp - 0x20], 0x11
jmp 0x486cc5
mov edx, dword [edi]
lea ecx, [ebp - 0x8c]
push ecx
push 0
push 0x1001
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x8c]
lea esi, [ebp - 0x8ac]
call fcn.0049e310
xor eax, eax
mov word [ebp - 0x89c], ax
mov dword [ebp - 0x20], 8
jmp 0x486cc5
mov edx, dword [edi]
lea ecx, [ebp - 0x8ac]
push ecx
push esi
push esi
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.00489960
add esp, 8
mov dword [ebp - 0x1c], esi
jmp 0x4865dc
push str.Text
push 0x4bd2c4
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je case.0x486748.12
movzx eax, byte [edi + 4]
dec eax
cmp eax, 0x16
ja case.0x486748.12
movzx eax, byte [eax + 0x486d24]
jmp dword [eax*4 + 0x486d04]
mov ecx, dword [edi]
push 0
push 0
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
sub eax, 0
je 0x486586
dec eax
je 0x48678b
dec eax
je 0x486780
xor eax, eax
lea esp, [ebp - 0x8b4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
or eax, 0xffffffff
mov dword [ebp - 0x20], eax
jmp 0x486583
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], esi
jmp 0x486586
test byte [edi + 5], 2
je case.0x486748.12
mov edx, dword [edi]
push 0
push 0
push 0x147
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea ecx, [ebp - 0xc]
push ecx
push 1
lea ecx, [ebp - 0x54]
cmp eax, 0xffffffff
jne 0x4867d5
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], 0x4bd2c4
jmp 0x4865e7
inc eax
cdq
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
jmp 0x4865e7
mov eax, dword [edi]
push 0
push 0
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x486839
mov edx, dword [edi]
push 0x400
lea ecx, [ebp - 0x8ac]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je case.0x486748.12
mov ecx, dword [edi]
lea eax, [ebp - 0x8ac]
push eax
push esi
push 0x158
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
je case.0x486748.12
test byte [edi + 5], 2
je 0x486847
lea eax, [esi + 1]
jmp 0x48657f
mov edx, dword [edi]
push 0
push esi
push 0x149
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0x4bd2c4
cmp eax, 0xffffffff
je 0x4865dc
lea eax, [eax + eax + 2]
call fcn.004b9db0
mov eax, esp
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x4868a3
push 0x4bd2c4
push 0x4bd2fc
mov ecx, 0x4ea1d0
call fcn.00449df0
lea esp, [ebp - 0x8b4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x58]
mov ecx, dword [edi]
push eax
push esi
push 0x148
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
cmp eax, 0xffffffff
je 0x486588
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
jmp 0x4865de
mov eax, dword [edi]
push 0xfffffffffffffff0
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], 0x4bd2c4
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0
push 0
test eax, 0x808
je 0x486ae5
mov ecx, dword [edi]
push 0x190
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 1
jl 0x486586
lea edx, [esi*4]
push edx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4865dc
mov ecx, dword [edi]
push eax
push esi
push 0x191
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x2c], eax
cmp eax, 1
jge 0x486952
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
jmp 0x4865dc
mov ecx, eax
xor esi, esi
test byte [edi + 5], 2
lea eax, [ecx - 1]
mov dword [ebp - 0x28], eax
je 0x486a2d
test ecx, ecx
jle 0x4869ab
lea ebx, [ebx]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + esi*4]
push 0xa
lea eax, [ebp - 0x8ac]
push eax
inc edx
push edx
call dword [sym.imp.MSVCR100.dll__itow]
lea eax, [ebp - 0x8ac]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x486993
sub eax, edx
sar eax, 1
add dword [ebp - 0x28], eax
inc esi
cmp esi, dword [ebp - 0x2c]
jl 0x486970
mov eax, dword [ebp - 0x28]
lea eax, [eax + eax + 2]
call fcn.004b9db0
mov eax, esp
mov dword [ebp - 0x58], eax
test eax, eax
je 0x486881
test byte [edi + 5], 2
mov esi, esp
je 0x486a71
xor edi, edi
cmp dword [ebp - 0x2c], edi
jle 0x486ac7
jmp 0x4869e0
test edi, edi
je 0x4869f1
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x46]
mov word [esi], dx
add esi, 2
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edi*4]
push 0xa
inc ecx
push esi
push ecx
call dword [sym.imp.MSVCR100.dll__itow]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x486a10
sub eax, edx
sar eax, 1
inc edi
lea esi, [esi + eax*2]
cmp edi, dword [ebp - 0x2c]
jl 0x4869e0
jmp 0x486ac7
test ecx, ecx
jle 0x4869ab
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + esi*4]
mov edx, dword [edi]
push 0
push ecx
push 0x18a
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x486a5f
add dword [ebp - 0x28], eax
inc esi
cmp esi, dword [ebp - 0x2c]
jl 0x486a35
jmp 0x4869ab
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
jmp 0x486cc5
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx - 1]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x5c], 0
test ecx, ecx
jle 0x486ac7
cmp dword [ebp - 0x5c], 0
je 0x486a98
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x46]
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [edi]
push esi
push eax
push 0x189
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x486abb
add dword [ebp - 0x28], eax
lea esi, [esi + eax*2]
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp eax, dword [ebp - 0x2c]
jl 0x486a85
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x58]
add esp, 4
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x486586
mov eax, dword [edi]
push 0x188
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
je 0x486cc5
test byte [edi + 5], 2
je 0x486b1a
lea eax, [esi + 1]
cdq
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
jmp 0x486cc5
mov ecx, dword [edi]
push 0
push esi
push 0x18a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x486586
lea eax, [eax + eax + 2]
call fcn.004b9db0
mov eax, esp
mov dword [ebp - 0x58], eax
test eax, eax
je 0x486881
mov edx, eax
mov eax, dword [edi]
push edx
push esi
push 0x189
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x486cc5
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x486586
mov edx, dword [edi]
push 0
push 0
push 0x130b
mov dword [ebp - 0x1c], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edx
mov dword [ebp - 0x24], 0x4bd2c4
call esi
cmp eax, 0xffffffff
je 0x4865dc
test byte [edi + 5], 2
je 0x486bad
mov dword [ebp - 0x1c], 1
inc eax
jmp 0x4865d5
lea edx, [ebp - 0xa8]
push edx
push eax
mov eax, dword [edi]
push 0x133c
lea ecx, [ebp - 0x8ac]
push eax
mov dword [ebp - 0xa8], 1
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], 0x3ff
call esi
mov edx, dword [ebx]
test eax, eax
push 2
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x54]
je 0x486593
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x24], ecx
jmp 0x486593
cmp byte [ebp - 0xd], 0
jne 0x4865b2
mov edx, dword [edi]
push edx
call fcn.004769b0
add esp, 4
push 2
lea ecx, [ebp - 0xc]
push ecx
push 1
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x54]
push ecx
push ebx
test eax, eax
je 0x486c3b
mov dword [ebp - 0x1c], 6
mov dword [ebp - 0x24], eax
jmp 0x4865ed
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], 0x4bd2c4
jmp 0x4865ed
cmp byte [ebp - 0xd], 0
jne 0x4865b2
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp + 8], eax
lea eax, [eax + eax + 2]
call fcn.004b9db0
mov esi, esp
test esi, esi
je 0x486881
mov ecx, dword [ebp + 8]
mov edx, dword [edi]
inc ecx
push ecx
push esi
push edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0x4bd2c4
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4865dc
cmp byte [edi + 4], 0xc
jne 0x486cbc
push 0
push 0xffffffffffffffff
push 1
push 0x4daa5c
push 0x4d9fec
push esi
xor eax, eax
or ecx, 0xffffffff
call fcn.0049ede0
add esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
mov ecx, dword [ebx]
push 2
lea edx, [ebp - 0xc]
push edx
push 1
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ecx + 0x1c]
lea edx, [ebp - 0x54]
push edx
push ebx
call eax
lea esp, [ebp - 0x8b4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4