Function at 0x4941a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x854
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.Submit
push dword [ebp + 0x10]
mov dword [esp + 0x14], ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ebx, dword [ebp + 0xc]
add esp, 8
mov esi, eax
movzx ecx, byte [ebx + 4]
add ecx, 0xfffffff3
cmp ecx, 5
ja case.default.0x4941dc
jmp dword [ecx*4 + 0x494bdc]
cmp byte [ebx + 5], 0
mov eax, dword [ebx]
push 0
push 0
jge 0x494215
push 0x472
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x18
cdq
mov ecx, edi
push edx
push eax
call fcn.00401470
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x468
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cwde
mov ecx, edi
push 0x18
cdq
push edx
push eax
call fcn.00401470
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 [ebx]
call esi
cmp byte [ebx + 5], 0
mov dword [esp + 0xc], eax
jge 0x49427f
push 0
push 0
push 0x402
push dword [ebx]
call esi
push 0
push 0
push 0x401
push dword [ebx]
mov esi, eax
sub esi, dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
add eax, esi
push 0x18
cdq
mov ecx, edi
push edx
push eax
call fcn.00401470
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x494bcd
push 0
push 0
push 0x408
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x18
cdq
mov ecx, edi
push edx
push eax
call fcn.00401470
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x24]
push eax
push 0
push 0x1001
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x494335
movzx eax, word [esp + 0x30]
push eax
movzx eax, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x34]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x38]
push eax
lea eax, [esp + 0x78]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00406810
add esp, 0x20
lea eax, [esp + 0x60]
mov ecx, edi
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 1
push 0
mov eax, 0x4cfc30
mov ecx, edi
push 0xffffffffffffffff
push eax
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongW]
lea ecx, [esp + 0x24]
and eax, 2
mov eax, dword [ebx]
push ecx
push 0
je 0x49440d
push 0x1005
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, word [esp + 0x30]
push eax
movzx eax, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x34]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x38]
push eax
lea eax, [esp + 0x78]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00406810
mov eax, 0x2d
mov word [esp + 0x90], ax
movzx eax, word [esp + 0x60]
push eax
movzx eax, word [esp + 0x62]
push eax
movzx eax, word [esp + 0x64]
push eax
movzx eax, word [esp + 0x66]
push eax
movzx eax, word [esp + 0x66]
push eax
movzx eax, word [esp + 0x68]
push eax
lea eax, [esp + 0xaa]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00406810
add esp, 0x40
lea eax, [esp + 0x60]
mov ecx, edi
push 1
push 0
push 0x11
push eax
call fcn.004b55f0
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 + 0x30]
push eax
movzx eax, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x34]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x38]
push eax
lea eax, [esp + 0x78]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00406810
add esp, 0x20
lea eax, [esp + 0x60]
mov ecx, edi
push 1
push 0
push 8
push eax
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push 0x402
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x60]
mov ecx, eax
call fcn.00498610
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x6c]
mov ecx, edi
push eax
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x4e6c04
push dword [ebp + 0x10]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je case.0x4944cf.12
movzx eax, byte [ebx + 4]
dec eax
cmp eax, 0x16
ja case.0x4944cf.12
movzx eax, byte [eax + 0x494c14]
jmp dword [eax*4 + 0x494bf4]
push 0
push 0
push 0xf0
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
sub eax, 0
je 0x49452f
sub eax, 1
je 0x494514
sub eax, 1
jne 0x494aa6
push 1
push eax
push 0xffffffffffffffff
push 0x4e6158
mov ecx, edi
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
mov ecx, edi
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
mov ecx, edi
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test byte [ebx + 5], 2
je case.0x4944cf.12
push 0
push 0
push 0x147
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
cmp eax, 0xffffffff
jne 0x494582
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
inc eax
push 0x18
cdq
push edx
push eax
call fcn.00401470
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push 0x147
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4945eb
push 0x400
lea eax, [esp + 0x64]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je case.0x4944cf.12
lea eax, [esp + 0x60]
push eax
push esi
push 0x158
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
je case.0x4944cf.12
test byte [ebx + 5], 2
je 0x49460e
push 0x18
lea eax, [esi + 1]
mov ecx, edi
cdq
push edx
push eax
call fcn.00401470
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push esi
push 0x149
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
push 1
push 0
cmp eax, 0xffffffff
je 0x494570
push eax
push 0
call fcn.004b55f0
cmp eax, 1
jne 0x494aa6
push 0
push eax
mov ecx, edi
call fcn.00401690
push eax
push esi
push 0x148
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov cl, byte [edi + 0x17]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4946ba
test cl, cl
jne 0x49466a
mov eax, dword [edi + 0xc]
jmp 0x49466c
mov eax, edi
cmp byte [eax + 0x17], 2
jne 0x49469e
cmp dword [0x4fe6fc], 0
je 0x49469e
push ecx
mov ecx, 0x4fe6f0
call fcn.00406b50
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
and byte [eax + 0x15], 0x86
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test cl, cl
jne 0x4946c3
mov esi, dword [edi + 0xc]
jmp 0x4946c5
mov esi, edi
cmp byte [esi + 0x17], 1
lea ecx, [edi + 0xc]
mov dword [esp + 0xc], ecx
jne 0x4946e8
test byte [esi + 0x15], 8
je 0x4946e3
mov ecx, esi
call fcn.004014f0
mov ecx, dword [esp + 0xc]
add esi, 0xc
jmp 0x4946ed
mov esi, 0x4ffb08
lea eax, [ebx + ebx]
mov dword [esi], eax
cmp byte [edi + 0x17], 0
jne 0x494ba6
mov edi, dword [ecx]
jmp 0x494ba6
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x808
mov eax, dword [ebx]
push 0
push 0
je 0x494913
push 0x190
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x20], eax
cmp eax, 1
jl 0x4946a2
shl eax, 2
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 + 0x10], esi
test esi, esi
je 0x4946a2
push esi
push dword [esp + 0x24]
push 0x191
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x1c], eax
cmp eax, 1
jge 0x49478f
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, edi
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
dec eax
test byte [ebx + 5], 2
mov dword [esp + 0x18], eax
mov esi, eax
je 0x4947e4
mov edi, dword [esp + 0x10]
xor ebx, ebx
push 0xa
lea eax, [esp + 0x64]
push eax
mov eax, dword [edi + ebx*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
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4947c0
sub ecx, edx
inc ebx
sar ecx, 1
add esi, ecx
cmp ebx, dword [esp + 0x1c]
jl 0x4947a2
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
jmp 0x494824
xor eax, eax
mov dword [esp + 0x20], eax
nop word [eax + eax]
mov ecx, dword [esp + 0x10]
push 0
push dword [ecx + eax*4]
push 0x18a
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x49490a
add esi, eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x1c]
jl 0x4947f0
push 1
push 0
push esi
push 0
mov ecx, edi
call fcn.004b55f0
cmp eax, 1
jne 0x494aa6
push 0
push eax
mov ecx, edi
call fcn.00401690
test byte [ebx + 5], 2
mov esi, eax
je 0x49489b
mov edi, dword [esp + 0x10]
xor ebx, ebx
test ebx, ebx
je 0x494865
mov eax, dword [esp + 0xc]
mov ax, word [eax + 0x46]
mov word [esi], ax
add esi, 2
mov eax, dword [edi + ebx*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 0x494880
sub ecx, edx
inc ebx
sar ecx, 1
lea esi, [esi + ecx*2]
cmp ebx, dword [esp + 0x1c]
jl 0x494853
jmp 0x4948de
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x14], eax
test edi, edi
je 0x4948b7
mov eax, dword [esp + 0xc]
mov ax, word [eax + 0x46]
mov word [esi], ax
add esi, 2
mov eax, dword [esp + 0x10]
push esi
push dword [eax + edi*4]
push 0x189
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x4948d7
add dword [esp + 0x14], eax
lea esi, [esi + eax*2]
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x4948a5
push dword [esp + 0x10]
mov edi, dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [esp + 0x18]
add esp, 4
cmp byte [edi + 0x17], 0
lea eax, [edi + 0xc]
mov dword [esp + 0xc], eax
jne 0x49499a
mov esi, dword [eax]
jmp 0x49499c
push dword [esp + 0x10]
jmp 0x49476e
push 0x188
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4946a2
test byte [ebx + 5], 2
jne 0x4945f1
push 0
push esi
push 0x18a
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
push 1
push 0
cmp eax, 0xffffffff
je 0x494570
push eax
push 0
call fcn.004b55f0
cmp eax, 1
jne 0x494aa6
push 0
push eax
mov ecx, edi
call fcn.00401690
push eax
push esi
push 0x189
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4948f2
cmp byte [edi + 0x17], 0
jne 0x49466a
mov eax, dword [edi + 0xc]
jmp 0x49466c
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x4949b4
test byte [esi + 0x15], 8
je 0x4949af
mov ecx, esi
call fcn.004014f0
add esi, 0xc
jmp 0x4949b9
mov esi, 0x4ffb08
lea eax, [ebx + ebx]
mov dword [esi], eax
cmp byte [edi + 0x17], 0
jne 0x494ba6
mov edi, dword [esp + 0xc]
mov edi, dword [edi]
jmp 0x494ba6
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x130b
push dword [ebx]
call esi
cmp eax, 0xffffffff
je 0x4946a2
test byte [ebx + 5], 2
je 0x494a10
inc eax
mov ecx, edi
push 0x18
cdq
push edx
push eax
call fcn.00401470
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x60]
mov dword [esp + 0x44], 1
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x44]
push ecx
push eax
push 0x133c
push dword [ebx]
mov dword [esp + 0x64], 0x3ff
call esi
mov ecx, edi
push 1
push 0
push 0xffffffffffffffff
test eax, eax
je 0x494572
push dword [esp + 0x5c]
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x494bcd
mov ecx, dword [ebx]
call fcn.00482ad0
mov ecx, edi
test eax, eax
je 0x49456c
push eax
call fcn.004b59b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x494bcd
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push 1
push 0
mov esi, eax
mov ecx, edi
push esi
push 0
call fcn.004b55f0
cmp eax, 1
je 0x494ab1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esi + 1]
mov ecx, edi
push eax
push 0
push 1
call fcn.00401690
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [edi + 0x17], 0
mov ecx, eax
mov dword [esp + 0x18], ecx
jne 0x494ada
mov esi, dword [edi + 0xc]
jmp 0x494adc
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x494af8
test byte [esi + 0x15], 8
je 0x494af3
mov ecx, esi
call fcn.004014f0
mov ecx, dword [esp + 0x18]
add esi, 0xc
jmp 0x494afd
mov esi, 0x4ffb08
lea eax, [ecx + ecx]
mov dword [esi], eax
test ecx, ecx
jne 0x494b1a
push ecx
push 1
mov ecx, edi
call fcn.00401690
xor ecx, ecx
mov word [eax], cx
jmp 0x494b9d
cmp byte [ebx + 4], 0xc
jne 0x494b9d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4eef34
push 0
push 1
mov ecx, edi
call fcn.00401690
mov edx, 0x4ee4ec
mov ecx, eax
call fcn.004b17d0
add esp, 0x18
mov ecx, edi
push 0
push 1
call fcn.00401690
mov esi, eax
lea eax, [esi + 2]
nop dword [eax]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x494b60
sub esi, eax
sar esi, 1
cmp byte [edi + 0x17], cl
jne 0x494b79
mov ebx, dword [edi + 0xc]
jmp 0x494b7b
mov ebx, edi
cmp byte [ebx + 0x17], 1
jne 0x494b93
test byte [ebx + 0x15], 8
je 0x494b8e
mov ecx, ebx
call fcn.004014f0
add ebx, 0xc
jmp 0x494b98
mov ebx, 0x4ffb08
lea eax, [esi + esi]
mov dword [ebx], eax
cmp byte [edi + 0x17], 0
jne 0x494ba6
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x494bc9
cmp dword [0x4fe6fc], 0
je 0x494bc9
push ecx
mov ecx, 0x4fe6f0
call fcn.00406b50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
and byte [edi + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc