Function at 0x494c30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a8
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push esi
push edi
push str.Submit
push 0x4cfc30
mov dword [ebp - 0x70], ecx
call ebx
mov edi, dword [ebp + 0xc]
mov esi, eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0xc], eax
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, dword [edi + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x84], ecx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494c80
movzx eax, byte [edi + 4]
sub ecx, edx
sar ecx, 1
add eax, 0xfffffff3
mov dword [ebp - 0x80], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 1
movlpd qword [ebp - 0x1c], xmm0
cmp eax, 5
ja case.default.0x494cb1
jmp dword [eax*4 + 0x4954fc]
cmp byte [edi + 5], 0
mov eax, dword [edi]
push 0
push 0
jge 0x494cdc
push 0x472
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cdq
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
jmp 0x4954d3
push 0x468
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cwde
cdq
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
jmp 0x4954d3
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 0x494d35
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 eax, ebx
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x4954d3
test esi, esi
je 0x495456
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 0x4954d3
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x1001
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x494dc6
movzx eax, word [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x62]
push eax
movzx eax, word [ebp - 0x64]
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6c]
push eax
lea eax, [ebp - 0x8a4]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00406810
lea eax, [ebp - 0x8a4]
mov dword [ebp - 0x14], 0
add esp, 0x20
mov dword [ebp - 0x1c], eax
jmp 0x4954d3
mov eax, 0x4cfc30
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
jmp 0x4954d3
push 0xfffffffffffffff0
push dword [edi]
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
lea ecx, [ebp - 0x6c]
and eax, 2
mov eax, dword [edi]
push ecx
push 0
je 0x494e8a
push 0x1005
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, word [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x62]
push eax
movzx eax, word [ebp - 0x64]
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6c]
push eax
lea eax, [ebp - 0x8a4]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00406810
mov eax, 0x2d
mov word [ebp - 0x894], ax
movzx eax, word [ebp - 0x50]
push eax
movzx eax, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x54]
push eax
movzx eax, word [ebp - 0x56]
push eax
movzx eax, word [ebp - 0x5a]
push eax
movzx eax, word [ebp - 0x5c]
push eax
lea eax, [ebp - 0x892]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00406810
add esp, 0x40
mov dword [ebp - 0x18], 0x11
xor eax, eax
mov word [ebp - 0x882], ax
jmp 0x4954d3
push 0x1001
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, word [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x62]
push eax
movzx eax, word [ebp - 0x64]
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6c]
push eax
lea eax, [ebp - 0x8a4]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00406810
add esp, 0x20
mov dword [ebp - 0x18], 8
xor eax, eax
mov word [ebp - 0x894], ax
jmp 0x4954d3
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.00498610
mov dword [ebp - 0x14], 0
jmp 0x4954d3
push 0x4e6c04
push 0x4cfc30
call ebx
add esp, 8
test eax, eax
je case.0x494f33.12
movzx eax, byte [edi + 4]
dec eax
cmp eax, 0x16
ja case.0x494f33.12
movzx eax, byte [eax + 0x495534]
jmp dword [eax*4 + 0x495514]
push 0
push 0
push 0xf0
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
sub eax, 0
je 0x4954d3
sub eax, 1
je 0x494f82
sub eax, 1
je 0x494f6f
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 0x4954d3
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
jmp 0x4954d3
test byte [edi + 5], 2
je case.0x494f33.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 0x494fed
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x4cfc30
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
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 0x494fcd
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 0x495049
push 0x400
lea eax, [ebp - 0x8a4]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je case.0x494f33.12
lea eax, [ebp - 0x8a4]
push eax
push esi
push 0x158
push dword [edi]
call ebx
mov esi, eax
cmp esi, 0xffffffff
je case.0x494f33.12
test byte [edi + 5], 2
jne 0x495312
push 0
push esi
push 0x149
push dword [edi]
call ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x4cfc30
cmp eax, 0xffffffff
je 0x4954d3
lea eax, [eax*2 + 2]
call fcn.004cd470
mov eax, esp
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4950ae
push 0x4cfc30
push 0x4e3be8
mov ecx, 0x4fdb90
call fcn.0044e970
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 0x4950d3
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 - 0x2c]
push eax
lea eax, [ebp - 0x3c]
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], 0x4cfc30
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
and eax, 0x808
mov eax, dword [edi]
push 0
push 0
je 0x4952f2
push 0x190
push eax
call ebx
mov dword [ebp - 0x4c], eax
cmp eax, 1
jl 0x4954d3
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 [ebp - 0x40], esi
test esi, esi
je 0x4954d3
push esi
push dword [ebp - 0x4c]
push 0x191
push dword [edi]
call ebx
mov dword [ebp - 0x48], eax
cmp eax, 1
jge 0x495174
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4954d3
dec eax
test byte [edi + 5], 2
mov dword [ebp - 0x74], eax
mov ebx, eax
je 0x4951d4
mov edi, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x44], eax
nop dword [eax + eax]
mov eax, dword [esi + eax*4]
lea ecx, [ebp - 0x8a4]
push 0xa
push ecx
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 0x4951b0
mov eax, dword [ebp - 0x44]
sub ecx, edx
sar ecx, 1
inc eax
add ebx, ecx
mov dword [ebp - 0x44], eax
cmp eax, edi
jl 0x495190
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x44], ebx
jmp 0x4951ff
xor esi, esi
mov eax, dword [ebp - 0x40]
push 0
push dword [eax + esi*4]
push 0x18a
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x4952e1
add ebx, eax
inc esi
mov dword [ebp - 0x44], ebx
cmp esi, dword [ebp - 0x48]
jl 0x4951d6
lea eax, [ebx*2 + 2]
call fcn.004cd470
mov eax, esp
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x49508b
test byte [edi + 5], 2
mov esi, eax
je 0x495282
mov ebx, dword [ebp - 0x40]
xor edi, edi
test edi, edi
je 0x495236
mov eax, dword [ebp - 0x70]
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 0x495250
sub ecx, edx
inc edi
sar ecx, 1
lea esi, [esi + ecx*2]
cmp edi, dword [ebp - 0x48]
jl 0x495225
push dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x4c]
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x4954d0
mov ebx, dword [ebp - 0x74]
xor ecx, ecx
mov dword [ebp + 0xc], ecx
nop word [eax + eax]
test ecx, ecx
je 0x4952a1
mov eax, dword [ebp - 0x70]
mov ax, word [eax + 0x46]
mov word [esi], ax
add esi, 2
mov eax, dword [ebp - 0x40]
push esi
push dword [eax + ecx*4]
push 0x189
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x4952be
add ebx, eax
lea esi, [esi + eax*2]
mov ecx, dword [ebp + 0xc]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, dword [ebp - 0x48]
jl 0x495290
push dword [ebp - 0x40]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x4c]
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x4954d0
push dword [ebp - 0x40]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4954d3
push 0x188
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4954d3
test byte [edi + 5], 2
je 0x495321
mov dword [ebp - 0x14], 1
lea eax, [esi + 1]
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x4954d3
push 0
push esi
push 0x18a
push dword [edi]
call ebx
cmp eax, 0xffffffff
je 0x4954d3
lea eax, [eax*2 + 2]
call fcn.004cd470
mov eax, esp
mov dword [ebp - 0x4c], esp
test eax, eax
je 0x49508b
push eax
push esi
push 0x189
push dword [edi]
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4954d3
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
jmp 0x4954d0
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], 0x4cfc30
call esi
cmp eax, 0xffffffff
je 0x4954d3
test byte [edi + 5], 2
je 0x4953b4
inc eax
mov dword [ebp - 0x14], 1
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x4954d3
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 0x4950d3
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
push edx
call ecx
lea esp, [ebp - 0x8b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x495456
mov ecx, dword [edi]
call fcn.00482ad0
mov edx, dword [ebp + 8]
push 2
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x1c]
test eax, eax
je 0x495442
mov dword [ebp - 0x14], 6
jmp 0x4953fd
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x4cfc30
jmp 0x495400
test esi, esi
jne case.0x494f33.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.004cd470
mov esi, esp
test esi, esi
je 0x49508b
lea eax, [ebx + 1]
mov dword [ebp - 0x14], 0
push eax
push esi
push dword [edi]
mov dword [ebp - 0x1c], 0x4cfc30
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4954d3
cmp byte [edi + 4], 0xc
jne 0x4954cd
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4eef34
mov edx, 0x4ee4ec
mov ecx, esi
call fcn.004b17d0
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 - 0x2c]
push edx
lea edx, [ebp - 0x3c]
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