Function at 0x45f360
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, eax
push str.Submit
push edi
mov esi, ecx
call fcn.0047ea31
add esp, 8
test eax, eax
movzx eax, byte [esi + 4]
sete cl
add eax, 0xfffffff3
mov byte [esp + 0x17], cl
cmp eax, 5
ja case.default.0x45f39d
jmp dword [eax*4 + 0x45fd94]
test byte [esi + 5], 0x80
push 0
push 0
je 0x45f3d6
mov eax, dword [esi]
push 0x472
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cdq
push 0x18
push edx
push eax
mov eax, ebx
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi]
push 0x468
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cwde
cdq
push 0x18
push edx
push eax
mov eax, ebx
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
push 0
push 0
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [esi + 5], 0x80
mov dword [esp + 0x18], eax
je 0x45f447
mov eax, dword [esi]
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi]
push 0
push 0
push 0x401
mov edi, eax
sub edi, dword [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
add eax, edi
cdq
push 0x18
push edx
push eax
mov eax, ebx
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, cl
jne 0x45fd83
mov edx, dword [esi]
push 0
push 0
push 0x408
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cdq
push 0x18
push edx
push eax
mov eax, ebx
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi]
lea eax, [esp + 0x24]
push eax
push 0
push 0x1001
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x45f4d2
lea eax, [esp + 0x24]
lea esi, [esp + 0x60]
call fcn.0046c0e0
push 1
push 0
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.0046ede0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
mov eax, 0x4927e9
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.0046ede0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esi]
test al, 2
lea eax, [esp + 0x24]
push eax
push 0
je 0x45f54c
push 0x1005
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x24]
lea esi, [esp + 0x60]
call fcn.0046c0e0
lea eax, [esp + 0x34]
lea esi, [esp + 0x69]
mov byte [esp + 0x68], 0x2d
call fcn.0046c0e0
push 1
push 0
push 0x11
lea edx, [esp + 0x6c]
push edx
mov ecx, ebx
call fcn.0046ede0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x1001
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x24]
lea esi, [esp + 0x60]
call fcn.0046c0e0
push 1
push 0
push 8
push eax
mov ecx, ebx
call fcn.0046ede0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
lea edx, [esp + 0x60]
push edx
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.00461d80
add esp, 8
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x6c]
push ecx
mov ecx, ebx
call fcn.0046ede0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.Text
push edi
call fcn.0047ea31
add esp, 8
test eax, eax
je case.0x45f5e2.12
movzx eax, byte [esi + 4]
dec eax
cmp eax, 0x15
ja case.0x45f5e2.12
movzx edx, byte [eax + 0x45fdcc]
jmp dword [edx*4 + 0x45fdac]
mov eax, dword [esi]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
sub eax, 0
je 0x45f647
dec eax
je 0x45f62c
dec eax
je 0x45f611
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0xffffffffffffffff
push 0x494ae4
mov ecx, ebx
call fcn.0046ede0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0xffffffffffffffff
push 0x493f08
mov ecx, ebx
call fcn.0046ede0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0xffffffffffffffff
push 0x492860
mov ecx, ebx
call fcn.0046ede0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test byte [esi + 5], 2
je case.0x45f5e2.12
mov ecx, dword [esi]
push 0
push 0
push 0x147
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x45f7ce
inc eax
cdq
push 0x18
push edx
push eax
mov eax, ebx
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
push 0
push 0
push 0x147
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45f6f5
mov ecx, dword [esi]
push 0x400
lea eax, [esp + 0x64]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je case.0x45f5e2.12
mov eax, dword [esi]
lea edx, [esp + 0x60]
push edx
push edi
push 0x158
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
cmp edi, 0xffffffff
je case.0x45f5e2.12
test byte [esi + 5], 2
je 0x45f718
lea eax, [edi + 1]
cdq
push 0x18
push edx
push eax
mov eax, ebx
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi]
push 0
push edi
push 0x149
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
mov ecx, ebx
push 0
cmp eax, 0xffffffff
jne 0x45f746
push 0xffffffffffffffff
push 0
call fcn.0046ede0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
push 0
call fcn.0046ede0
cmp eax, 1
jne 0x45f606
cmp byte [ebx + 0x17], 0
jne 0x45f766
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x10], eax
jmp 0x45f76c
mov eax, ebx
mov dword [esp + 0x10], ebx
test byte [eax + 0x15], 8
je 0x45f77f
mov eax, dword [esp + 0x10]
call fcn.00401150
mov eax, dword [esp + 0x10]
mov cl, byte [eax + 0x17]
cmp cl, 1
jne 0x45f79f
test byte [eax + 0x15], 4
je 0x45f79a
mov eax, dword [esp + 0x10]
call fcn.0042d510
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
jmp 0x45f7b0
cmp cl, 2
jne 0x45f7ab
call fcn.00401000
jmp 0x45f7b0
mov eax, 0x4a453d
mov edx, dword [esi]
push eax
push edi
push 0x148
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x45f7e6
push 0
mov eax, ebx
call fcn.00412950
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0046ede0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, eax
mov eax, ebx
call fcn.00412850
push 0
mov eax, ebx
call fcn.00412950
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esi]
push 0
push 0
test eax, 0x808
je 0x45fa14
push 0x190
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
cmp edi, 1
jl 0x45f7ce
lea edx, [edi*4]
push edx
call fcn.0047ebe9
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x45f7ce
mov ecx, dword [esi]
push eax
push edi
push 0x191
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x10], eax
cmp eax, 1
jge 0x45f886
mov edx, dword [esp + 0x20]
push edx
call fcn.0047ea48
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0046ede0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, eax
lea eax, [ecx - 1]
xor edi, edi
test byte [esi + 5], 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
je 0x45f920
test ecx, ecx
jle 0x45f8d6
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + edi*4]
push 0xa
lea eax, [esp + 0x64]
push eax
inc edx
push edx
call fcn.0047e6c2
lea eax, [esp + 0x6c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f8c2
sub eax, edx
add dword [esp + 0x1c], eax
inc edi
cmp edi, dword [esp + 0x10]
jl 0x45f8a3
mov ecx, dword [esp + 0x1c]
push 1
push 0
push ecx
push 0
mov ecx, ebx
call fcn.0046ede0
cmp eax, 1
jne 0x45f606
cmp byte [ebx + 0x17], 0
jne 0x45f8fa
mov ebx, dword [ebx + 0xc]
test byte [ebx + 0x15], 8
je 0x45f907
mov eax, ebx
call fcn.00401150
mov al, byte [ebx + 0x17]
cmp al, 1
jne 0x45f958
test byte [ebx + 0x15], 4
je 0x45f91b
mov eax, ebx
call fcn.0042d510
mov edi, dword [ebx + 8]
jmp 0x45f96a
test ecx, ecx
jle 0x45f8d6
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + edi*4]
mov edx, dword [esi]
push 0
push ecx
push 0x18a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x45f94e
add dword [esp + 0x1c], eax
inc edi
cmp edi, dword [esp + 0x10]
jl 0x45f924
jmp 0x45f8d6
mov eax, dword [esp + 0x20]
push eax
jmp 0x45f866
cmp al, 2
jne 0x45f965
call fcn.00401000
mov edi, eax
jmp 0x45f96a
mov edi, 0x4a453d
test byte [esi + 5], 2
je 0x45f9b6
mov ebx, dword [esp + 0x10]
xor esi, esi
test ebx, ebx
jle 0x45f9fb
test esi, esi
je 0x45f98b
mov edx, dword [ebp + 8]
mov al, byte [edx + 0x46]
mov byte [edi], al
inc edi
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + esi*4]
push 0xa
inc edx
push edi
push edx
call fcn.0047e6c2
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f9a4
sub eax, edx
inc esi
add edi, eax
cmp esi, ebx
jl 0x45f97e
jmp 0x45f9fb
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], ebx
jle 0x45f9fb
test ebx, ebx
je 0x45f9d3
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 0x46]
mov byte [edi], dl
inc edi
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + ebx*4]
mov edx, dword [esi]
push edi
push ecx
push 0x189
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x45f9f4
add dword [esp + 0x1c], eax
add edi, eax
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x45f9c6
mov eax, dword [esp + 0x20]
push eax
call fcn.0047ea48
mov eax, dword [esp + 0x20]
mov ebx, dword [ebp + 0xc]
add esp, 4
jmp 0x45f7e6
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x188
push ecx
call edi
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x45f7ce
test byte [esi + 5], 2
jne 0x45f687
mov edx, dword [esi]
push 0
push eax
push 0x18a
push edx
call edi
push 1
mov ecx, ebx
push 0
cmp eax, 0xffffffff
je 0x45f734
push eax
push 0
call fcn.0046ede0
cmp eax, 1
jne 0x45f606
cmp byte [ebx + 0x17], 0
jne 0x45fa71
mov edi, dword [ebx + 0xc]
jmp 0x45fa73
mov edi, ebx
test byte [edi + 0x15], 8
je 0x45fa80
mov eax, edi
call fcn.00401150
mov al, byte [edi + 0x17]
cmp al, 1
jne 0x45faaa
test byte [edi + 0x15], 4
je 0x45fa94
mov eax, edi
call fcn.0042d510
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
mov eax, dword [esp + 0x1c]
push eax
push 0x189
push ecx
jmp 0x45f7ba
cmp al, 2
jne 0x45fac6
call fcn.00401000
mov ecx, dword [esi]
push eax
mov eax, dword [esp + 0x1c]
push eax
push 0x189
push ecx
jmp 0x45f7ba
mov ecx, dword [esi]
mov eax, 0x4a453d
push eax
mov eax, dword [esp + 0x1c]
push eax
push 0x189
push ecx
jmp 0x45f7ba
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x130b
push edx
call edi
cmp eax, 0xffffffff
je 0x45f7ce
test byte [esi + 5], 2
jne 0x45f687
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [esi]
push 0x1305
lea ecx, [esp + 0x6c]
push eax
mov dword [esp + 0x54], 1
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], 0x3ff
call edi
push 1
push 0
push 0xffffffffffffffff
test eax, eax
je 0x45f7d4
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, ebx
call fcn.0046ede0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [esp + 0x17], 0
jne 0x45fd83
mov edx, dword [esi]
push edx
call fcn.00452d30
add esp, 4
test eax, eax
je 0x45f7ce
push eax
mov eax, ebx
call fcn.004123c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [esp + 0x17], 0
jne 0x45fd83
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push 1
push 0
push eax
push 0
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.0046ede0
cmp eax, 1
jne 0x45f606
cmp byte [ebx + 0x17], 0
jne 0x45fbb9
mov edi, dword [ebx + 0xc]
jmp 0x45fbbb
mov edi, ebx
test byte [edi + 0x15], 8
je 0x45fbc8
mov eax, edi
call fcn.00401150
mov al, byte [edi + 0x17]
cmp al, 1
jne 0x45fbe1
test byte [edi + 0x15], 4
je 0x45fbdc
mov eax, edi
call fcn.0042d510
mov eax, dword [edi + 8]
jmp 0x45fbf1
cmp al, 2
jne 0x45fbec
call fcn.00401000
jmp 0x45fbf1
mov eax, 0x4a453d
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
inc ecx
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebx + 0x17], 0
mov dword [esp + 0x18], eax
jne 0x45fc10
mov edi, dword [ebx + 0xc]
jmp 0x45fc12
mov edi, ebx
cmp byte [edi + 0x17], 1
jne 0x45fc2e
test byte [edi + 0x15], 8
je 0x45fc29
mov eax, edi
call fcn.00401150
mov eax, dword [esp + 0x18]
add edi, 0xc
jmp 0x45fc33
mov edi, 0x4a54d0
mov dword [edi], eax
test eax, eax
jne 0x45fc8f
cmp byte [ebx + 0x17], al
jne 0x45fc43
mov esi, dword [ebx + 0xc]
jmp 0x45fc45
mov esi, ebx
test byte [esi + 0x15], 8
je 0x45fc52
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x45fc71
test byte [esi + 0x15], 4
je 0x45fc66
mov eax, esi
call fcn.0042d510
mov eax, dword [esi + 8]
mov byte [eax], 0
jmp 0x45fd52
cmp al, 2
jne 0x45fc82
call fcn.00401000
mov byte [eax], 0
jmp 0x45fd52
mov eax, 0x4a453d
mov byte [eax], 0
jmp 0x45fd52
cmp byte [esi + 4], 0xc
jne 0x45fd52
cmp byte [ebx + 0x17], 0
jne 0x45fca4
mov esi, dword [ebx + 0xc]
jmp 0x45fca6
mov esi, ebx
test byte [esi + 0x15], 8
je 0x45fcb3
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x45fccc
test byte [esi + 0x15], 4
je 0x45fcc7
mov eax, esi
call fcn.0042d510
mov eax, dword [esi + 8]
jmp 0x45fcdc
cmp al, 2
jne 0x45fcd7
call fcn.00401000
jmp 0x45fcdc
mov eax, 0x4a453d
push 0
push 0xffffffffffffffff
push 1
push 0x497b28
push 0x497508
push eax
xor eax, eax
or ecx, 0xffffffff
call fcn.0046cad0
add esp, 0x18
cmp byte [ebx + 0x17], 0
jne 0x45fd05
mov esi, dword [ebx + 0xc]
jmp 0x45fd07
mov esi, ebx
test byte [esi + 0x15], 8
je 0x45fd14
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x45fd2d
test byte [esi + 0x15], 4
je 0x45fd28
mov eax, esi
call fcn.0042d510
mov eax, dword [esi + 8]
jmp 0x45fd3d
cmp al, 2
jne 0x45fd38
call fcn.00401000
jmp 0x45fd3d
mov eax, 0x4a453d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45fd40
sub eax, edx
mov edi, eax
mov eax, ebx
call fcn.00412850
cmp byte [ebx + 0x17], 0
jne 0x45fd5b
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 2
jne 0x45fd7f
cmp dword [0x4a4c90], 0
je 0x45fd7f
push 1
mov ecx, 0x4a4c84
call fcn.00403e90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
and byte [ebx + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8