Function at 0x484810
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
push edi
push str.Submit
push 0x4b6ba9
mov dword [ebp - 0x70], ecx
call esi
mov edi, dword [ebp + 0xc]
add esp, 8
test eax, eax
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x84]
mov dword [ebp - 0xc], eax
sete bl
mov ecx, dword [edi + 0x3c]
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x84], ecx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484860
movzx eax, byte [edi + 4]
sub ecx, edx
add eax, 0xfffffff3
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x14], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
cmp eax, 5
ja case.default.0x48488b
jmp dword [eax*4 + 0x4850bc]
cmp byte [edi + 5], 0
mov eax, dword [edi]
push 0
push 0
jge 0x4848b6
push 0x472
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cdq
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
jmp 0x485091
push 0x468
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cwde
cdq
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
jmp 0x485091
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x400
push dword [edi]
call esi
cmp byte [edi + 5], 0
mov ebx, eax
jge 0x48490f
push 0
push 0
push 0x402
push dword [edi]
call esi
push 0
push 0
push 0x401
push dword [edi]
mov esi, eax
sub esi, ebx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ebx, [esi + eax]
mov eax, ebx
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x485091
test bl, bl
jne 0x485015
push 0
push 0
push 0x408
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x485091
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x1001
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x4849a0
movzx eax, word [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x62]
push eax
movzx eax, word [ebp - 0x64]
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6c]
push eax
lea eax, [ebp - 0x4a4]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.004053e0
lea eax, [ebp - 0x4a4]
mov dword [ebp - 0x14], 0
add esp, 0x20
mov dword [ebp - 0x1c], eax
jmp 0x485091
mov eax, 0x4b6ba9
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
jmp 0x485091
push 0xfffffffffffffff0
push dword [edi]
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
lea ecx, [ebp - 0x6c]
and eax, 2
mov eax, dword [edi]
push ecx
push 0
je 0x484a5d
push 0x1005
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, word [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x62]
push eax
movzx eax, word [ebp - 0x64]
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6c]
push eax
lea eax, [ebp - 0x4a4]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.004053e0
movzx eax, word [ebp - 0x50]
push eax
movzx eax, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x54]
push eax
movzx eax, word [ebp - 0x56]
push eax
movzx eax, word [ebp - 0x5a]
push eax
movzx eax, word [ebp - 0x5c]
push eax
lea eax, [ebp - 0x49b]
mov byte [ebp - 0x49c], 0x2d
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.004053e0
add esp, 0x40
mov byte [ebp - 0x493], 0
mov dword [ebp - 0x18], 0x11
jmp 0x485091
push 0x1001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, word [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x62]
push eax
movzx eax, word [ebp - 0x64]
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6c]
push eax
lea eax, [ebp - 0x4a4]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.004053e0
add esp, 0x20
mov byte [ebp - 0x49c], 0
mov dword [ebp - 0x18], 8
jmp 0x485091
push 0
push 0
push 0x402
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x4a4]
mov ecx, eax
call fcn.00487ee0
mov dword [ebp - 0x14], 0
jmp 0x485091
push str.Text
push 0x4b6ba9
call esi
add esp, 8
test eax, eax
je case.0x484b04.12
movzx eax, byte [edi + 4]
dec eax
cmp eax, 0x16
ja case.0x484b04.12
movzx eax, byte [eax + 0x4850f4]
jmp dword [eax*4 + 0x4850d4]
push 0
push 0
push 0xf0
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
sub eax, 0
je 0x485091
sub eax, 1
je 0x484b53
sub eax, 1
je 0x484b40
xor eax, eax
lea esp, [ebp - 0x4b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
jmp 0x485091
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
jmp 0x485091
test byte [edi + 5], 2
je case.0x484b04.12
push 0
push 0
push 0x147
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [ebp + 8]
push 2
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x1c]
cmp eax, 0xffffffff
jne 0x484bbe
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x4b6ba9
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
call ecx
lea esp, [ebp - 0x4b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
inc eax
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x484b9e
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x147
push dword [edi]
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x484c1a
push 0x400
lea eax, [ebp - 0x4a4]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je case.0x484b04.12
lea eax, [ebp - 0x4a4]
push eax
push esi
push 0x158
push dword [edi]
call ebx
mov esi, eax
cmp esi, 0xffffffff
je case.0x484b04.12
test byte [edi + 5], 2
jne 0x484ed4
push 0
push esi
push 0x149
push dword [edi]
call ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x4b6ba9
cmp eax, 0xffffffff
je 0x485091
inc eax
call fcn.004b4550
mov eax, esp
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x484c79
push 0x4b6ba9
push str.Out_of_memory.
mov ecx, 0x4cc848
call fcn.0043ee10
lea esp, [ebp - 0x4b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push esi
push 0x148
push dword [edi]
call ebx
mov edx, dword [ebp + 8]
mov esi, eax
push 2
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x1c]
cmp esi, 0xffffffff
je 0x484c9e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
push edx
call ecx
lea esp, [ebp - 0x4b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0xfffffffffffffff0
push dword [edi]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x4b6ba9
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0x808
mov eax, dword [edi]
push 0
push 0
je 0x484eae
push 0x190
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
cmp ebx, 1
jl 0x485091
lea eax, [ebx*4]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x48], esi
test esi, esi
je 0x485091
push esi
push ebx
push 0x191
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x4c], eax
cmp eax, 1
jge 0x484d42
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x485091
dec eax
test byte [edi + 5], 2
mov dword [ebp - 0x74], eax
mov ebx, eax
je 0x484d9e
mov edi, dword [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x20], eax
nop word [eax + eax]
mov eax, dword [esi + eax*4]
lea ecx, [ebp - 0x4a4]
push 0xa
push ecx
inc eax
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
lea ecx, [ebp - 0x4a4]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484d80
mov eax, dword [ebp - 0x20]
sub ecx, edx
inc eax
add ebx, ecx
mov dword [ebp - 0x20], eax
cmp eax, edi
jl 0x484d60
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], ebx
jmp 0x484dc9
xor esi, esi
mov eax, dword [ebp - 0x48]
push 0
push dword [eax + esi*4]
push 0x18a
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x484e9d
add ebx, eax
inc esi
mov dword [ebp - 0x20], ebx
cmp esi, dword [ebp - 0x4c]
jl 0x484da0
lea eax, [ebx + 1]
call fcn.004b4550
mov eax, esp
mov dword [ebp + 0xc], eax
test eax, eax
je 0x484c56
test byte [edi + 5], 2
mov esi, eax
je 0x484e41
mov ebx, dword [ebp - 0x48]
xor edi, edi
nop dword [eax + eax]
test edi, edi
je 0x484dfd
mov eax, dword [ebp - 0x70]
mov al, byte [eax + 0x46]
mov byte [esi], al
inc esi
mov eax, dword [ebx + edi*4]
push 0xa
inc eax
push esi
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484e13
sub ecx, edx
inc edi
add esi, ecx
cmp edi, dword [ebp - 0x4c]
jl 0x484df0
push dword [ebp - 0x48]
mov ebx, dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
jmp 0x485091
mov eax, dword [ebp - 0x74]
xor ebx, ebx
mov dword [ebp - 0x20], eax
nop dword [eax]
test ebx, ebx
je 0x484e5d
mov eax, dword [ebp - 0x70]
mov al, byte [eax + 0x46]
mov byte [esi], al
inc esi
mov eax, dword [ebp - 0x48]
push esi
push dword [eax + ebx*4]
push 0x189
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x484e7a
add dword [ebp - 0x20], eax
add esi, eax
inc ebx
cmp ebx, dword [ebp - 0x4c]
jl 0x484e50
push dword [ebp - 0x48]
mov ebx, dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
jmp 0x485091
push dword [ebp - 0x48]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x485091
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0x188
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x485091
test byte [edi + 5], 2
je 0x484ee3
mov dword [ebp - 0x14], 1
lea eax, [esi + 1]
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x485091
push 0
push esi
push 0x18a
push dword [edi]
call ebx
cmp eax, 0xffffffff
je 0x485091
inc eax
call fcn.004b4550
mov eax, esp
mov dword [ebp + 0xc], esp
test eax, eax
je 0x484c56
push eax
push esi
push 0x189
push dword [edi]
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x485091
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
jmp 0x485091
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x130b
push dword [edi]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x4b6ba9
call esi
cmp eax, 0xffffffff
je 0x485091
test byte [edi + 5], 2
je 0x484f73
inc eax
mov dword [ebp - 0x14], 1
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x485091
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0xa0]
push ecx
push eax
push 0x1305
push dword [edi]
mov dword [ebp - 0x90], 0x3ff
call esi
mov edx, dword [ebp + 8]
push 2
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x1c]
test eax, eax
je 0x484c9e
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
push edx
call ecx
lea esp, [ebp - 0x4b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test bl, bl
jne 0x485015
mov ecx, dword [edi]
call fcn.004716e0
mov edx, dword [ebp + 8]
push 2
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x1c]
test eax, eax
je 0x485001
mov dword [ebp - 0x14], 6
jmp 0x484fbc
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x4b6ba9
jmp 0x484fbf
test bl, bl
je case.0x484b04.12
mov eax, 1
lea esp, [ebp - 0x4b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp + 0xc], eax
lea ebx, [eax + 1]
mov eax, ebx
call fcn.004b4550
mov esi, esp
test esi, esi
je 0x484c56
push ebx
push esi
push dword [edi]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x4b6ba9
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x485091
cmp byte [edi + 4], 0xc
jne 0x485088
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4bf984
mov edx, 0x4bf3b0
mov ecx, esi
call fcn.0049ef20
add esp, 0x18
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xc]
push 2
push edx
push 1
mov eax, dword [ecx]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x44]
push edx
push ecx
call dword [eax + 0x1c]
lea esp, [ebp - 0x4b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc