Function at 0x494680
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x85c
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push str.Submit
push esi
mov dword [esp + 0x1c], ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ebx, dword [ebp + 0xc]
add esp, 8
test eax, eax
sete cl
movzx eax, byte [ebx + 4]
add eax, 0xfffffff3
mov byte [esp + 0x13], cl
cmp eax, 5
ja case.default.0x4946c4
jmp dword [eax*4 + 0x4950d0]
cmp byte [ebx + 5], 0
mov eax, dword [ebx]
push 0
push 0
jge 0x4946fd
push 0x472
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x18
cdq
mov ecx, edi
push edx
push eax
call fcn.00401490
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.00401490
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 + 0x14], eax
jge 0x494767
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 + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
add eax, esi
push 0x18
cdq
mov ecx, edi
push edx
push eax
call fcn.00401490
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test cl, cl
jne 0x4950c0
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.00401490
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x2c]
push eax
push 0
push 0x1001
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x494820
movzx eax, word [esp + 0x38]
push eax
movzx eax, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3c]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x40]
push eax
lea eax, [esp + 0x80]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00406890
add esp, 0x20
lea eax, [esp + 0x68]
mov ecx, edi
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 1
push 0
mov eax, 0x4cfc40
mov ecx, edi
push 0xffffffffffffffff
push eax
call fcn.004b5b70
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 + 0x2c]
and eax, 2
mov eax, dword [ebx]
push ecx
push 0
je 0x4948fb
push 0x1005
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, word [esp + 0x38]
push eax
movzx eax, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3c]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x40]
push eax
lea eax, [esp + 0x80]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00406890
mov eax, 0x2d
mov word [esp + 0x98], ax
movzx eax, word [esp + 0x68]
push eax
movzx eax, word [esp + 0x6a]
push eax
movzx eax, word [esp + 0x6c]
push eax
movzx eax, word [esp + 0x6e]
push eax
movzx eax, word [esp + 0x6e]
push eax
movzx eax, word [esp + 0x70]
push eax
lea eax, [esp + 0xb2]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00406890
add esp, 0x40
lea eax, [esp + 0x68]
mov ecx, edi
push 1
push 0
push 0x11
push eax
call fcn.004b5b70
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 + 0x38]
push eax
movzx eax, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3c]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x40]
push eax
lea eax, [esp + 0x80]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00406890
add esp, 0x20
lea eax, [esp + 0x68]
mov ecx, edi
push 1
push 0
push 8
push eax
call fcn.004b5b70
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 + 0x68]
mov ecx, eax
call fcn.00498ac0
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x74]
mov ecx, edi
push eax
call fcn.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x4e6c04
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je case.0x4949be.12
movzx eax, byte [ebx + 4]
dec eax
cmp eax, 0x16
ja case.0x4949be.12
movzx eax, byte [eax + 0x495108]
jmp dword [eax*4 + 0x4950e8]
push 0
push 0
push 0xf0
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
sub eax, 0
je 0x494a1e
sub eax, 1
je 0x494a03
sub eax, 1
jne 0x494f9c
push 1
push eax
push 0xffffffffffffffff
push 0x4e6158
mov ecx, edi
call fcn.004b5b70
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.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
mov ecx, edi
call fcn.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test byte [ebx + 5], 2
je case.0x4949be.12
push 0
push 0
push 0x147
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
cmp eax, 0xffffffff
jne 0x494a71
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
inc eax
push 0x18
cdq
push edx
push eax
call fcn.00401490
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 0x494ada
push 0x400
lea eax, [esp + 0x6c]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je case.0x4949be.12
lea eax, [esp + 0x68]
push eax
push esi
push 0x158
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
je case.0x4949be.12
test byte [ebx + 5], 2
je 0x494afd
push 0x18
lea eax, [esi + 1]
mov ecx, edi
cdq
push edx
push eax
call fcn.00401490
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 0x494a5f
push eax
push 0
call fcn.004b5b70
cmp eax, 1
jne 0x494f9c
push 0
push eax
mov ecx, edi
call fcn.004016b0
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 0x494ba9
test cl, cl
jne 0x494b59
mov eax, dword [edi + 0xc]
jmp 0x494b5b
mov eax, edi
cmp byte [eax + 0x17], 2
jne 0x494b8d
cmp dword [0x4fe6e4], 0
je 0x494b8d
push ecx
mov ecx, 0x4fe6d8
call fcn.00406bd0
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004b5b70
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.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test cl, cl
jne 0x494bb2
mov esi, dword [edi + 0xc]
jmp 0x494bb4
mov esi, edi
cmp byte [esi + 0x17], 1
lea ecx, [edi + 0xc]
mov dword [esp + 0x14], ecx
jne 0x494bd7
test byte [esi + 0x15], 8
je 0x494bd2
mov ecx, esi
call fcn.00401510
mov ecx, dword [esp + 0x14]
add esi, 0xc
jmp 0x494bdc
mov esi, 0x4ffaf8
lea eax, [ebx + ebx]
mov dword [esi], eax
cmp byte [edi + 0x17], 0
jne 0x495099
mov edi, dword [ecx]
jmp 0x495099
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x808
mov eax, dword [ebx]
push 0
push 0
je 0x494e03
push 0x190
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x28], eax
cmp eax, 1
jl 0x494b91
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 + 0x18], esi
test esi, esi
je 0x494b91
push esi
push dword [esp + 0x2c]
push 0x191
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x24], eax
cmp eax, 1
jge 0x494c7e
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.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
dec eax
test byte [ebx + 5], 2
mov dword [esp + 0x20], eax
mov esi, eax
je 0x494cd4
mov edi, dword [esp + 0x18]
xor ebx, ebx
push 0xa
lea eax, [esp + 0x6c]
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 + 0x74]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494cb0
sub ecx, edx
inc ebx
sar ecx, 1
add esi, ecx
cmp ebx, dword [esp + 0x24]
jl 0x494c91
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x1c], esi
jmp 0x494d14
xor eax, eax
mov dword [esp + 0x28], eax
nop word [eax + eax]
mov ecx, dword [esp + 0x18]
push 0
push dword [ecx + eax*4]
push 0x18a
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x494dfa
add esi, eax
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x24]
jl 0x494ce0
push 1
push 0
push esi
push 0
mov ecx, edi
call fcn.004b5b70
cmp eax, 1
jne 0x494f9c
push 0
push eax
mov ecx, edi
call fcn.004016b0
test byte [ebx + 5], 2
mov esi, eax
je 0x494d8b
mov edi, dword [esp + 0x18]
xor ebx, ebx
test ebx, ebx
je 0x494d55
mov eax, dword [esp + 0x14]
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 0x494d70
sub ecx, edx
inc ebx
sar ecx, 1
lea esi, [esi + ecx*2]
cmp ebx, dword [esp + 0x24]
jl 0x494d43
jmp 0x494dce
mov eax, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x1c], eax
test edi, edi
je 0x494da7
mov eax, dword [esp + 0x14]
mov ax, word [eax + 0x46]
mov word [esi], ax
add esi, 2
mov eax, dword [esp + 0x18]
push esi
push dword [eax + edi*4]
push 0x189
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x494dc7
add dword [esp + 0x1c], eax
lea esi, [esi + eax*2]
inc edi
cmp edi, dword [esp + 0x24]
jl 0x494d95
push dword [esp + 0x18]
mov edi, dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [esp + 0x20]
add esp, 4
cmp byte [edi + 0x17], 0
lea eax, [edi + 0xc]
mov dword [esp + 0x14], eax
jne 0x494e8a
mov esi, dword [eax]
jmp 0x494e8c
push dword [esp + 0x18]
jmp 0x494c5d
push 0x188
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
je 0x494b91
test byte [ebx + 5], 2
jne 0x494ae0
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 0x494a5f
push eax
push 0
call fcn.004b5b70
cmp eax, 1
jne 0x494f9c
push 0
push eax
mov ecx, edi
call fcn.004016b0
push eax
push esi
push 0x189
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x494de2
cmp byte [edi + 0x17], 0
jne 0x494b59
mov eax, dword [edi + 0xc]
jmp 0x494b5b
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x494ea4
test byte [esi + 0x15], 8
je 0x494e9f
mov ecx, esi
call fcn.00401510
add esi, 0xc
jmp 0x494ea9
mov esi, 0x4ffaf8
lea eax, [ebx + ebx]
mov dword [esi], eax
cmp byte [edi + 0x17], 0
jne 0x495099
mov edi, dword [esp + 0x14]
mov edi, dword [edi]
jmp 0x495099
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x130b
push dword [ebx]
call esi
cmp eax, 0xffffffff
je 0x494b91
test byte [ebx + 5], 2
je 0x494f00
inc eax
mov ecx, edi
push 0x18
cdq
push edx
push eax
call fcn.00401490
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x68]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x4c]
push ecx
push eax
push 0x133c
push dword [ebx]
mov dword [esp + 0x6c], 0x3ff
call esi
mov ecx, edi
push 1
push 0
push 0xffffffffffffffff
test eax, eax
je 0x494a61
push dword [esp + 0x64]
call fcn.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esp + 0x13], 0
jne 0x4950c0
mov ecx, dword [ebx]
call fcn.00482e00
mov ecx, edi
test eax, eax
je 0x494a5b
push eax
call fcn.004b5f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esp + 0x13], 0
jne 0x4950c0
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.004b5b70
cmp eax, 1
je 0x494fa7
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.004016b0
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [edi + 0x17], 0
mov ecx, eax
mov dword [esp + 0x20], ecx
jne 0x494fd0
mov esi, dword [edi + 0xc]
jmp 0x494fd2
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x494fee
test byte [esi + 0x15], 8
je 0x494fe9
mov ecx, esi
call fcn.00401510
mov ecx, dword [esp + 0x20]
add esi, 0xc
jmp 0x494ff3
mov esi, 0x4ffaf8
lea eax, [ecx + ecx]
mov dword [esi], eax
test ecx, ecx
jne 0x495010
push ecx
push 1
mov ecx, edi
call fcn.004016b0
xor ecx, ecx
mov word [eax], cx
jmp 0x495090
cmp byte [ebx + 4], 0xc
jne 0x495090
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4eef7c
push 0
push 1
mov ecx, edi
call fcn.004016b0
mov edx, 0x4ee534
mov ecx, eax
call fcn.004b1c60
add esp, 0x18
mov ecx, edi
push 0
push 1
call fcn.004016b0
mov esi, eax
lea eax, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x495053
sub esi, eax
sar esi, 1
cmp byte [edi + 0x17], cl
jne 0x49506c
mov ebx, dword [edi + 0xc]
jmp 0x49506e
mov ebx, edi
cmp byte [ebx + 0x17], 1
jne 0x495086
test byte [ebx + 0x15], 8
je 0x495081
mov ecx, ebx
call fcn.00401510
add ebx, 0xc
jmp 0x49508b
mov ebx, 0x4ffaf8
lea eax, [esi + esi]
mov dword [ebx], eax
cmp byte [edi + 0x17], 0
jne 0x495099
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x4950bc
cmp dword [0x4fe6e4], 0
je 0x4950bc
push ecx
mov ecx, 0x4fe6d8
call fcn.00406bd0
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