Function at 0x485560
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a8
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push edi
push str.Submit
push 0x4bac30
mov dword [ebp - 0x50], ecx
call esi
mov edi, dword [ebp + 0xc]
add esp, 8
test eax, eax
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x64]
mov dword [ebp - 0xc], eax
sete bl
mov ecx, dword [edi + 0x3c]
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x64], ecx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4855b0
movzx eax, byte [edi + 4]
sub ecx, edx
sar ecx, 1
add eax, 0xfffffff3
mov dword [ebp - 0x60], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 1
movlpd qword [ebp - 0x1c], xmm0
cmp eax, 5
ja case.default.0x4855e1
jmp dword [eax*4 + 0x485db0]
cmp byte [edi + 5], 0
mov eax, dword [edi]
push 0
push 0
jge 0x48560c
push 0x472
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cdq
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
jmp 0x485d87
push 0x468
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cwde
cdq
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
jmp 0x485d87
push 0
push 0
push 0x400
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push edi
call fcn.00488a70
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x485d87
test bl, bl
jne 0x485d0a
push 0
push 0
push 0x408
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x485d87
lea eax, [ebp - 0x84]
push eax
push 0
push 0x1001
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x4856a8
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x8a4]
call fcn.0049d2b0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
jmp 0x485d87
mov eax, 0x4bac30
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
jmp 0x485d87
push 0xfffffffffffffff0
push dword [edi]
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
lea ecx, [ebp - 0x84]
and eax, 2
mov eax, dword [edi]
push ecx
push 0
je 0x485729
push 0x1005
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x8a4]
call fcn.0049d2b0
mov eax, 0x2d
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x892]
mov word [ebp - 0x894], ax
call fcn.0049d2b0
xor eax, eax
mov dword [ebp - 0x18], 0x11
mov word [ebp - 0x882], ax
jmp 0x485d87
push 0x1001
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x8a4]
call fcn.0049d2b0
xor eax, eax
mov dword [ebp - 0x18], 8
mov word [ebp - 0x894], ax
jmp 0x485d87
push 0
push 0
push 0x402
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [ebp - 0x8a4]
mov ecx, eax
call fcn.00488810
mov dword [ebp - 0x14], 0
jmp 0x485d87
push 0x4d1bf4
push 0x4bac30
call esi
add esp, 8
test eax, eax
je case.0x4857b1.12
movzx eax, byte [edi + 4]
dec eax
cmp eax, 0x16
ja case.0x4857b1.12
movzx eax, byte [eax + 0x485de8]
jmp dword [eax*4 + 0x485dc8]
push 0
push 0
push 0xf0
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
sub eax, 0
je 0x485d87
sub eax, 1
je 0x485800
sub eax, 1
je 0x4857ed
xor eax, eax
lea esp, [ebp - 0x8b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
jmp 0x485d87
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
jmp 0x485d87
test byte [edi + 5], 2
je case.0x4857b1.12
push 0
push 0
push 0x147
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp + 8]
push 2
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x1c]
cmp eax, 0xffffffff
jne 0x48586b
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x4bac30
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 - 0x8b4]
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 0x48584b
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x147
push dword [edi]
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4858c7
push 0x400
lea eax, [ebp - 0x8a4]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je case.0x4857b1.12
lea eax, [ebp - 0x8a4]
push eax
push esi
push 0x158
push dword [edi]
call ebx
mov esi, eax
cmp esi, 0xffffffff
je case.0x4857b1.12
test byte [edi + 5], 2
jne 0x485bc6
push 0
push esi
push 0x149
push dword [edi]
call ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x4bac30
cmp eax, 0xffffffff
je 0x485d87
lea eax, [eax*2 + 2]
call fcn.004b83a0
mov eax, esp
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x48592c
push 0x4bac30
push 0x4cebc0
mov ecx, 0x4e8b78
call fcn.00448ad0
lea esp, [ebp - 0x8b4]
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 0x485951
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 - 0x8b4]
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], 0x4bac30
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x808
mov eax, dword [edi]
push 0
push 0
je 0x485ba0
push 0x190
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 1
jl 0x485d87
lea eax, [esi*4]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x4c], ebx
test ebx, ebx
je 0x485d87
push ebx
push esi
push 0x191
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov dword [ebp - 0x48], esi
cmp esi, 1
jge 0x4859f7
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x485d87
test byte [edi + 5], 2
lea eax, [esi - 1]
mov ebx, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x20], ebx
je 0x485ae2
test esi, esi
jle 0x485a51
xor edi, edi
push 0xa
lea eax, [ebp - 0x8a4]
push eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + edi*4]
inc eax
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
lea ecx, [ebp - 0x8a4]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485a35
sub ecx, edx
inc edi
sar ecx, 1
add ebx, ecx
cmp edi, esi
jl 0x485a12
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], ebx
lea eax, [ebx*2 + 2]
call fcn.004b83a0
mov eax, esp
mov dword [ebp + 0xc], eax
test eax, eax
je 0x485909
test byte [edi + 5], 2
mov esi, eax
je 0x485b2b
xor edi, edi
cmp dword [ebp - 0x48], edi
jle 0x485b89
mov ebx, dword [ebp - 0x4c]
test edi, edi
je 0x485a95
mov eax, dword [ebp - 0x50]
mov ax, word [eax + 0x46]
mov word [esi], ax
add esi, 2
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__itow]
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485ab0
sub ecx, edx
inc edi
sar ecx, 1
lea esi, [esi + ecx*2]
cmp edi, dword [ebp - 0x48]
jl 0x485a84
push dword [ebp - 0x4c]
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
jmp 0x485d84
xor esi, esi
cmp dword [ebp - 0x48], esi
jle 0x485a51
nop dword [eax]
mov eax, dword [ebp - 0x4c]
push 0
push dword [eax + esi*4]
push 0x18a
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x485b1a
add ebx, eax
inc esi
mov dword [ebp - 0x20], ebx
cmp esi, dword [ebp - 0x48]
jl 0x485af0
jmp 0x485a51
push dword [ebp - 0x4c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x485d87
mov eax, dword [ebp - 0x54]
xor ebx, ebx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x48], ebx
jle 0x485b87
test ebx, ebx
je 0x485b49
mov eax, dword [ebp - 0x50]
mov ax, word [eax + 0x46]
mov word [esi], ax
add esi, 2
mov eax, dword [ebp - 0x4c]
push esi
push dword [eax + ebx*4]
push 0x189
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x485b67
add dword [ebp - 0x20], eax
lea esi, [esi + eax*2]
inc ebx
cmp ebx, dword [ebp - 0x48]
jl 0x485b38
push dword [ebp - 0x4c]
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
jmp 0x485d84
mov ebx, eax
push dword [ebp - 0x4c]
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
jmp 0x485d84
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x188
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x485d87
test byte [edi + 5], 2
je 0x485bd5
mov dword [ebp - 0x14], 1
lea eax, [esi + 1]
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x485d87
push 0
push esi
push 0x18a
push dword [edi]
call ebx
cmp eax, 0xffffffff
je 0x485d87
lea eax, [eax*2 + 2]
call fcn.004b83a0
mov eax, esp
mov dword [ebp + 0xc], esp
test eax, eax
je 0x485909
push eax
push esi
push 0x189
push dword [edi]
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x485d87
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x485d84
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x130b
push dword [edi]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x4bac30
call esi
cmp eax, 0xffffffff
je 0x485d87
test byte [edi + 5], 2
je 0x485c68
inc eax
mov dword [ebp - 0x14], 1
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x485d87
lea ecx, [ebp - 0x8a4]
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0xa0]
push ecx
push eax
push 0x133c
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 0x485951
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 - 0x8b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test bl, bl
jne 0x485d0a
mov ecx, dword [edi]
call fcn.00475630
mov edx, dword [ebp + 8]
push 2
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x1c]
test eax, eax
je 0x485cf6
mov dword [ebp - 0x14], 6
jmp 0x485cb1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x4bac30
jmp 0x485cb4
test bl, bl
je case.0x4857b1.12
mov eax, 1
lea esp, [ebp - 0x8b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
lea eax, [ebx*2 + 2]
call fcn.004b83a0
mov esi, esp
test esi, esi
je 0x485909
lea eax, [ebx + 1]
mov dword [ebp - 0x14], 0
push eax
push esi
push dword [edi]
mov dword [ebp - 0x1c], 0x4bac30
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x485d87
cmp byte [edi + 4], 0xc
jne 0x485d81
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4d9f84
mov edx, 0x4d953c
mov ecx, esi
call fcn.0049dd60
add esp, 0x18
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xc]
push 2
push edx
push 1
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x44]
push edx
push eax
call dword [ecx + 0x1c]
lea esp, [ebp - 0x8b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc