Function at 0x484e40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x854
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push str.Submit
push esi
mov dword [esp + 0x48], ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov edi, dword [ebp + 0xc]
add esp, 8
test eax, eax
sete bl
movzx eax, byte [edi + 4]
add eax, 0xfffffff3
cmp eax, 5
ja case.default.0x484e7d
jmp dword [eax*4 + 0x4858f4]
cmp byte [edi + 5], 0
mov eax, dword [edi]
push 0
push 0
jge 0x484ea0
push 0x472
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
jmp 0x484eaf
push 0x468
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movsx edi, ax
mov esi, dword [ebp + 8]
cmp byte [esi + 0x17], 0
jne 0x484ebb
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x484ed4
and cl, 0x3d
mov byte [esi + 0x15], cl
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov cl, byte [esi + 0x15]
mov eax, edi
cdq
and cl, 0x9b
mov dword [esi], eax
or cl, 0x18
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x48574f
mov ecx, esi
call fcn.00401350
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x400
push dword [edi]
call esi
cmp byte [edi + 5], 0
mov ebx, eax
jge 0x484f44
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_SendMessageW]
lea ebx, [esi + eax]
mov esi, dword [ebp + 8]
cmp byte [esi + 0x17], 0
jne 0x484f50
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x484f69
and cl, 0x3d
mov byte [esi + 0x15], cl
mov ecx, dword [esi]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov cl, byte [esi + 0x15]
mov eax, ebx
jmp 0x484ed6
test bl, bl
jne 0x4858e5
push 0
push 0
push 0x408
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
jmp 0x484eaf
lea eax, [esp + 0x20]
push eax
push 0
push 0x1001
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x484ffd
movzx eax, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x30]
push eax
movzx eax, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x34]
push eax
lea eax, [esp + 0x78]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00405900
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x80]
add esp, 0x20
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
mov eax, 0x4bfb90
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
lea ecx, [esp + 0x20]
and eax, 2
mov eax, dword [edi]
push ecx
push 0
je 0x4850da
push 0x1005
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x30]
push eax
movzx eax, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x34]
push eax
lea eax, [esp + 0x78]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00405900
mov eax, 0x2d
mov word [esp + 0x90], ax
movzx eax, word [esp + 0x5c]
push eax
movzx eax, word [esp + 0x5e]
push eax
movzx eax, word [esp + 0x60]
push eax
movzx eax, word [esp + 0x62]
push eax
movzx eax, word [esp + 0x62]
push eax
movzx eax, word [esp + 0x64]
push eax
lea eax, [esp + 0xaa]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00405900
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xa0]
add esp, 0x40
push 1
push 0
push 0x11
push eax
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x1001
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x30]
push eax
movzx eax, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x34]
push eax
lea eax, [esp + 0x78]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00405900
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x80]
add esp, 0x20
push 1
push 0
push 8
push eax
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push 0x402
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x60]
mov ecx, eax
call fcn.00489280
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x60]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x4d5970
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je case.0x48519f.12
movzx eax, byte [edi + 4]
dec eax
cmp eax, 0x16
ja case.0x48519f.12
movzx eax, byte [eax + 0x48592c]
jmp dword [eax*4 + 0x48590c]
push 0
push 0
push 0xf0
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
sub eax, 0
je 0x485201
sub eax, 1
je 0x4851e5
sub eax, 1
jne 0x4857d4
mov ecx, dword [ebp + 8]
push 1
push eax
push 0xffffffffffffffff
push 0x4d4ec8
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4eac
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc14
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test byte [edi + 5], 2
je case.0x48519f.12
push 0
push 0
push 0x147
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
je 0x485472
mov esi, dword [ebp + 8]
cmp byte [esi + 0x17], 0
jne 0x48524f
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x485268
mov eax, dword [esi]
and cl, 0x3d
mov byte [esi + 0x15], cl
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov cl, byte [esi + 0x15]
lea eax, [edi + 1]
jmp 0x484ed6
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x147
push dword [edi]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4852be
push 0x400
lea eax, [esp + 0x64]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je case.0x48519f.12
lea eax, [esp + 0x60]
push eax
push ebx
push 0x158
push dword [edi]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je case.0x48519f.12
test byte [edi + 5], 2
je 0x4852f1
mov esi, dword [ebp + 8]
cmp byte [esi + 0x17], 0
jne 0x4852d0
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x4852e9
and cl, 0x3d
mov byte [esi + 0x15], cl
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov cl, byte [esi + 0x15]
lea eax, [ebx + 1]
jmp 0x484ed6
push 0
push ebx
push 0x149
push dword [edi]
call esi
push 1
push 0
cmp eax, 0xffffffff
je 0x485476
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
push 0
call fcn.004a5f40
cmp eax, 1
jne 0x4857d4
push 0
push eax
mov ecx, esi
call fcn.004014f0
push eax
push ebx
push 0x148
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov cl, byte [esi + 0x17]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x48539c
test cl, cl
jne 0x48534c
mov eax, dword [esi + 0xc]
jmp 0x48534e
mov eax, esi
cmp byte [eax + 0x17], 2
jne 0x485380
cmp dword [0x4ec4f4], 0
je 0x485380
push ecx
mov ecx, 0x4ec4e8
call fcn.00405c10
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
and byte [eax + 0x15], 0x86
mov ecx, esi
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test cl, cl
jne 0x4853a5
mov edi, dword [esi + 0xc]
jmp 0x4853a7
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4853bf
test byte [edi + 0x15], 8
je 0x4853ba
mov ecx, edi
call fcn.00401350
add edi, 0xc
jmp 0x4853c4
mov edi, 0x4ed8fc
lea eax, [ebx + ebx]
mov dword [edi], eax
cmp byte [esi + 0x17], 0
jne 0x4853d2
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4853f5
cmp dword [0x4ec4f4], 0
je 0x4853f5
push ecx
mov ecx, 0x4ec4e8
call fcn.00405c10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x808
mov eax, dword [edi]
push 0
push 0
je 0x48560d
push 0x190
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
cmp ebx, 1
jl 0x485472
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 [esp + 0x14], esi
test esi, esi
je 0x485472
push esi
push ebx
push 0x191
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x1c], eax
cmp eax, 1
jge 0x48548b
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 1
push 0
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
dec eax
test byte [edi + 5], 2
mov dword [esp + 0x18], eax
mov ebx, eax
je 0x4854e1
xor edi, edi
nop word [eax + eax]
push 0xa
lea eax, [esp + 0x64]
push eax
mov eax, dword [esi + edi*4]
inc eax
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
lea ecx, [esp + 0x6c]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4854c0
sub ecx, edx
inc edi
sar ecx, 1
add ebx, ecx
cmp edi, dword [esp + 0x1c]
jl 0x4854a0
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
jmp 0x48550f
xor esi, esi
mov eax, dword [esp + 0x14]
push 0
push dword [eax + esi*4]
push 0x18a
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x4855e7
add ebx, eax
inc esi
mov dword [esp + 0x10], ebx
cmp esi, dword [esp + 0x1c]
jl 0x4854e3
push 1
push 0
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.004a5f40
cmp eax, 1
jne 0x4857d4
push 0
push eax
mov ecx, ebx
call fcn.004014f0
test byte [edi + 5], 2
mov esi, eax
je 0x48558b
mov ebx, dword [esp + 0x14]
xor edi, edi
test edi, edi
je 0x485553
mov eax, dword [esp + 0x40]
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485570
sub ecx, edx
inc edi
sar ecx, 1
lea esi, [esi + ecx*2]
cmp edi, dword [esp + 0x1c]
jl 0x485541
jmp 0x4855ce
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x4855a7
mov eax, dword [esp + 0x40]
mov ax, word [eax + 0x46]
mov word [esi], ax
add esi, 2
mov eax, dword [esp + 0x14]
push esi
push dword [eax + ebx*4]
push 0x189
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x4855c7
add dword [esp + 0x10], eax
lea esi, [esi + eax*2]
inc ebx
cmp ebx, dword [esp + 0x1c]
jl 0x485595
push dword [esp + 0x14]
mov ebx, dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [esp + 0x14]
add esp, 4
jmp 0x485896
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp + 8]
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x188
push eax
call esi
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, 0xffffffff
je 0x485472
test byte [edi + 5], 2
jne 0x4852c4
push 0
push ebx
push 0x18a
push dword [edi]
call esi
push 1
push 0
cmp eax, 0xffffffff
je 0x485476
mov ebx, dword [ebp + 8]
mov ecx, ebx
push eax
push 0
call fcn.004a5f40
cmp eax, 1
jne 0x4857d4
push 0
push eax
mov ecx, ebx
call fcn.004014f0
push eax
push dword [esp + 0x1c]
push 0x189
push dword [edi]
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x485896
cmp byte [ebx + 0x17], 0
jne 0x485691
mov eax, dword [ebx + 0xc]
jmp 0x485693
mov eax, ebx
cmp byte [eax + 0x17], 2
jne 0x4856c5
cmp dword [0x4ec4f4], 0
je 0x4856c5
push ecx
mov ecx, 0x4ec4e8
call fcn.00405c10
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
and byte [eax + 0x15], 0x86
mov ecx, ebx
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x130b
push dword [edi]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x485472
test byte [edi + 5], 2
jne 0x4852c4
lea eax, [esp + 0x60]
mov dword [esp + 0x44], 1
mov dword [esp + 0x50], eax
lea eax, [esp + 0x44]
push eax
push ebx
push 0x133c
push dword [edi]
mov dword [esp + 0x64], 0x3ff
call esi
mov ecx, dword [ebp + 8]
push 1
push 0
push 0xffffffffffffffff
test eax, eax
je 0x48579c
push dword [esp + 0x5c]
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x4e9820], 0
je 0x4858e5
mov ecx, esi
call fcn.00401350
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test bl, bl
jne 0x4858e5
mov ecx, dword [edi]
call fcn.00473fd0
mov ecx, dword [ebp + 8]
test eax, eax
je 0x485796
push eax
call fcn.004a6310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test bl, bl
jne 0x4858e5
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [ebp + 8]
mov esi, eax
push 1
push 0
push esi
push 0
mov ecx, ebx
call fcn.004a5f40
cmp eax, 1
je 0x4857df
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esi + 1]
mov ecx, ebx
push eax
push 0
push 1
call fcn.004014f0
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [ebx + 0x17], 0
mov ecx, eax
mov dword [esp + 0x18], ecx
jne 0x485808
mov esi, dword [ebx + 0xc]
jmp 0x48580a
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x485826
test byte [esi + 0x15], 8
je 0x485821
mov ecx, esi
call fcn.00401350
mov ecx, dword [esp + 0x18]
add esi, 0xc
jmp 0x48582b
mov esi, 0x4ed8fc
lea eax, [ecx + ecx]
mov dword [esi], eax
test ecx, ecx
jne 0x485848
push ecx
push 1
mov ecx, ebx
call fcn.004014f0
xor ecx, ecx
mov word [eax], cx
jmp 0x4858c5
cmp byte [edi + 4], 0xc
jne 0x4858c5
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4dcc34
push 0
push 1
mov ecx, ebx
call fcn.004014f0
mov edx, 0x4dc0fc
mov ecx, eax
call fcn.004a21b0
add esp, 0x18
mov ecx, ebx
push 0
push 1
call fcn.004014f0
mov esi, eax
lea eax, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x485887
sub esi, eax
sar esi, 1
cmp byte [ebx + 0x17], 0
jne 0x4858a1
mov edi, dword [ebx + 0xc]
jmp 0x4858a3
mov edi, ebx
cmp byte [edi + 0x17], 1
jne 0x4858bb
test byte [edi + 0x15], 8
je 0x4858b6
mov ecx, edi
call fcn.00401350
add edi, 0xc
jmp 0x4858c0
mov edi, 0x4ed8fc
lea eax, [esi + esi]
mov dword [edi], eax
cmp byte [ebx + 0x17], 0
jne 0x4858ce
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 2
jne 0x4858e1
cmp dword [0x4ec4f4], 0
jne 0x4853e1
and byte [ebx + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc