Function at 0x493ac0
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.0x493afc
jmp dword [ecx*4 + 0x4944fc]
cmp byte [ebx + 5], 0
mov eax, dword [ebx]
push 0
push 0
jge 0x493b35
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 0x493b9f
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 0x4944ed
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 0x493c55
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.00406560
add esp, 0x20
lea eax, [esp + 0x60]
mov ecx, edi
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 1
push 0
mov eax, 0x4cec30
mov ecx, edi
push 0xffffffffffffffff
push eax
call fcn.004b4bf0
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 0x493d2d
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.00406560
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.00406560
add esp, 0x40
lea eax, [esp + 0x60]
mov ecx, edi
push 1
push 0
push 0x11
push eax
call fcn.004b4bf0
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.00406560
add esp, 0x20
lea eax, [esp + 0x60]
mov ecx, edi
push 1
push 0
push 8
push eax
call fcn.004b4bf0
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.00497e50
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x6c]
mov ecx, edi
push eax
call fcn.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x4e5c04
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.0x493def.12
movzx eax, byte [ebx + 4]
dec eax
cmp eax, 0x16
ja case.0x493def.12
movzx eax, byte [eax + 0x494534]
jmp dword [eax*4 + 0x494514]
push 0
push 0
push 0xf0
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
sub eax, 0
je 0x493e4f
sub eax, 1
je 0x493e34
sub eax, 1
jne 0x4943c6
push 1
push eax
push 0xffffffffffffffff
push 0x4e5158
mov ecx, edi
call fcn.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
mov ecx, edi
call fcn.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 1
push 0
push 0xffffffffffffffff
push 0x4cecf8
mov ecx, edi
call fcn.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test byte [ebx + 5], 2
je case.0x493def.12
push 0
push 0
push 0x147
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
cmp eax, 0xffffffff
jne 0x493ea2
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004b4bf0
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 0x493f0b
push 0x400
lea eax, [esp + 0x64]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je case.0x493def.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.0x493def.12
test byte [ebx + 5], 2
je 0x493f2e
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 0x493e90
push eax
push 0
call fcn.004b4bf0
cmp eax, 1
jne 0x4943c6
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 0x493fda
test cl, cl
jne 0x493f8a
mov eax, dword [edi + 0xc]
jmp 0x493f8c
mov eax, edi
cmp byte [eax + 0x17], 2
jne 0x493fbe
cmp dword [0x4fd77c], 0
je 0x493fbe
push ecx
mov ecx, 0x4fd770
call fcn.004068a0
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004b4bf0
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.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test cl, cl
jne 0x493fe3
mov esi, dword [edi + 0xc]
jmp 0x493fe5
mov esi, edi
cmp byte [esi + 0x17], 1
lea ecx, [edi + 0xc]
mov dword [esp + 0xc], ecx
jne 0x494008
test byte [esi + 0x15], 8
je 0x494003
mov ecx, esi
call fcn.004014f0
mov ecx, dword [esp + 0xc]
add esi, 0xc
jmp 0x49400d
mov esi, 0x4feb88
lea eax, [ebx + ebx]
mov dword [esi], eax
cmp byte [edi + 0x17], 0
jne 0x4944c6
mov edi, dword [ecx]
jmp 0x4944c6
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x808
mov eax, dword [ebx]
push 0
push 0
je 0x494233
push 0x190
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x20], eax
cmp eax, 1
jl 0x493fc2
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 0x493fc2
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 0x4940af
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.004b4bf0
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 0x494104
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 0x4940e0
sub ecx, edx
inc ebx
sar ecx, 1
add esi, ecx
cmp ebx, dword [esp + 0x1c]
jl 0x4940c2
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
jmp 0x494144
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 0x49422a
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 0x494110
push 1
push 0
push esi
push 0
mov ecx, edi
call fcn.004b4bf0
cmp eax, 1
jne 0x4943c6
push 0
push eax
mov ecx, edi
call fcn.00401690
test byte [ebx + 5], 2
mov esi, eax
je 0x4941bb
mov edi, dword [esp + 0x10]
xor ebx, ebx
test ebx, ebx
je 0x494185
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 0x4941a0
sub ecx, edx
inc ebx
sar ecx, 1
lea esi, [esi + ecx*2]
cmp ebx, dword [esp + 0x1c]
jl 0x494173
jmp 0x4941fe
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x14], eax
test edi, edi
je 0x4941d7
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 0x4941f7
add dword [esp + 0x14], eax
lea esi, [esi + eax*2]
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x4941c5
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 0x4942ba
mov esi, dword [eax]
jmp 0x4942bc
push dword [esp + 0x10]
jmp 0x49408e
push 0x188
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
je 0x493fc2
test byte [ebx + 5], 2
jne 0x493f11
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 0x493e90
push eax
push 0
call fcn.004b4bf0
cmp eax, 1
jne 0x4943c6
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 0x494212
cmp byte [edi + 0x17], 0
jne 0x493f8a
mov eax, dword [edi + 0xc]
jmp 0x493f8c
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x4942d4
test byte [esi + 0x15], 8
je 0x4942cf
mov ecx, esi
call fcn.004014f0
add esi, 0xc
jmp 0x4942d9
mov esi, 0x4feb88
lea eax, [ebx + ebx]
mov dword [esi], eax
cmp byte [edi + 0x17], 0
jne 0x4944c6
mov edi, dword [esp + 0xc]
mov edi, dword [edi]
jmp 0x4944c6
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x130b
push dword [ebx]
call esi
cmp eax, 0xffffffff
je 0x493fc2
test byte [ebx + 5], 2
je 0x494330
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 0x493e92
push dword [esp + 0x5c]
call fcn.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x4944ed
mov ecx, dword [ebx]
call fcn.00481ba0
mov ecx, edi
test eax, eax
je 0x493e8c
push eax
call fcn.004b4fc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x4944ed
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.004b4bf0
cmp eax, 1
je 0x4943d1
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 0x4943fa
mov esi, dword [edi + 0xc]
jmp 0x4943fc
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x494418
test byte [esi + 0x15], 8
je 0x494413
mov ecx, esi
call fcn.004014f0
mov ecx, dword [esp + 0x18]
add esi, 0xc
jmp 0x49441d
mov esi, 0x4feb88
lea eax, [ecx + ecx]
mov dword [esi], eax
test ecx, ecx
jne 0x49443a
push ecx
push 1
mov ecx, edi
call fcn.00401690
xor ecx, ecx
mov word [eax], cx
jmp 0x4944bd
cmp byte [ebx + 4], 0xc
jne 0x4944bd
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4edefc
push 0
push 1
mov ecx, edi
call fcn.00401690
mov edx, 0x4ed4b4
mov ecx, eax
call fcn.004b0de0
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 0x494480
sub esi, eax
sar esi, 1
cmp byte [edi + 0x17], cl
jne 0x494499
mov ebx, dword [edi + 0xc]
jmp 0x49449b
mov ebx, edi
cmp byte [ebx + 0x17], 1
jne 0x4944b3
test byte [ebx + 0x15], 8
je 0x4944ae
mov ecx, ebx
call fcn.004014f0
add ebx, 0xc
jmp 0x4944b8
mov ebx, 0x4feb88
lea eax, [esi + esi]
mov dword [ebx], eax
cmp byte [edi + 0x17], 0
jne 0x4944c6
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x4944e9
cmp dword [0x4fd77c], 0
je 0x4944e9
push ecx
mov ecx, 0x4fd770
call fcn.004068a0
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