Function at 0x4a5d48
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 1
test ebx, ebx
je 0x4a5e67
cmp dword [0x54a6f4], 0
je 0x4a5d7e
push 2
push ebx
call fcn.0040940f
test eax, eax
je 0x4a5d7e
push 3
push esi
call fcn.00409746
cmp dword [0x558a48], 0
je 0x4a5d98
push 1
push 0x3f
push 0x554e31
push esi
call fcn.004efac0
mov edi, eax
test edi, edi
je 0x4a5e46
push ebx
call fcn.00514157
test eax, eax
je 0x4a5e46
xor eax, eax
mov dword [0x558950], eax
mov dword [0x558954], 2
mov dword [0x558958], 1
mov dword [0x55895c], 1
mov dword [0x558960], 1
mov dword [0x558964], 1
mov edx, dword [0x54d2a4]
mov dword [0x55494c], edx
mov ecx, dword [ebx]
mov dword [0x55495c], ecx
mov eax, dword [esi]
push dword [eax]
push 1
push 0
call fcn.0042f502
push eax
push 0x554e37
push 0x57a050
call sub.USER32.dll_wsprintfA
add esp, 0xc
mov dword [0x554960], 1
mov edx, dword [esi]
mov ecx, dword [edx]
mov dword [0x551d54], ecx
push 3
push esi
call fcn.004a14f2
xor eax, eax
mov dword [0x551d54], eax
xor edx, edx
mov dword [0x554960], edx
cmp dword [0x558a48], 0
je 0x4a63aa
push 0
push 0x3f
push 0x554e3d
push esi
call fcn.004efac0
jmp 0x4a63aa
cmp dword [0x557928], 0
je 0x4a5f9e
cmp dword [0x55792c], 0
je 0x4a5e9d
push dword [esi + 0x3f8]
mov ecx, dword [esi]
push dword [ecx]
call fcn.004c91a0
test eax, eax
je 0x4a5e9d
cmp dword [eax + 0x29c], 1
je 0x4a5f9e
cmp dword [0x558a48], 0
je 0x4a5eb7
push 1
push 0x3f
push 0x554e43
push esi
call fcn.004efac0
mov edi, eax
test edi, edi
je 0x4a5f55
push esi
call fcn.004a5178
xor eax, eax
mov dword [0x558950], eax
mov dword [0x558954], 2
mov dword [0x558958], 1
mov dword [0x55895c], 1
mov dword [0x558960], 1
mov dword [0x558964], 1
mov edx, dword [0x54d2a4]
mov dword [0x55494c], edx
mov ecx, dword [esi]
push dword [ecx]
push 1
push 0
call fcn.0042f502
push eax
push 0x554e49
push 0x57a050
call sub.USER32.dll_wsprintfA
add esp, 0xc
mov dword [0x554960], 1
mov eax, dword [esi]
mov edx, dword [eax]
mov dword [0x551d54], edx
push 3
push esi
call fcn.004a14f2
xor ecx, ecx
mov dword [0x551d54], ecx
xor eax, eax
mov dword [0x554960], eax
cmp dword [0x54a6f4], 0
je 0x4a5f7d
push 2
push dword [0x55495c]
call fcn.00516145
push eax
call fcn.0040940f
test eax, eax
je 0x4a5f7d
push 3
push esi
call fcn.00409746
cmp dword [0x558a48], 0
je 0x4a63aa
push 0
push 0x3f
push 0x554e4f
push esi
call fcn.004efac0
jmp 0x4a63aa
cmp dword [0x55796c], 0
je 0x4a60d0
push dword [0x55b3d4]
call fcn.00516145
mov ebx, eax
test ebx, ebx
je 0x4a60d0
cmp byte [ebx + 0x64c], 1
jne 0x4a60d0
cmp dword [0x54a6f4], 0
je 0x4a5fe7
cmp dword [0x54a624], 0
je 0x4a5fe7
push 3
push esi
call fcn.00409746
cmp dword [0x558a48], 0
je 0x4a6001
push 1
push 0x3f
push 0x554e55
push esi
call fcn.004efac0
mov edi, eax
test edi, edi
je 0x4a60af
push ebx
call fcn.00514157
test eax, eax
je 0x4a60af
xor eax, eax
mov dword [0x558950], eax
mov dword [0x558954], 2
mov dword [0x558958], 1
mov dword [0x55895c], 1
mov dword [0x558960], 1
mov dword [0x558964], 1
mov edx, dword [0x54d2a8]
mov dword [0x55494c], edx
mov ecx, dword [ebx]
mov dword [0x55495c], ecx
mov eax, dword [esi]
push dword [eax]
push 1
push 0
call fcn.0042f502
push eax
push str._s
push 0x57a050
call sub.USER32.dll_wsprintfA
add esp, 0xc
mov dword [0x554960], 1
mov edx, dword [esi]
mov ecx, dword [edx]
mov dword [0x551d54], ecx
push 3
push esi
call fcn.004a14f2
xor eax, eax
mov dword [0x551d54], eax
xor edx, edx
mov dword [0x554960], edx
cmp dword [0x558a48], 0
je 0x4a63aa
push 0
push 0x3f
push 0x554e61
push esi
call fcn.004efac0
jmp 0x4a63aa
cmp dword [0x558a48], 0
je 0x4a6109
mov ebx, dword [0x55014c]
xor eax, eax
mov dword [0x55014c], eax
push 1
push 0x2c
push 0x554e67
push esi
call fcn.004efac0
test eax, eax
jne 0x4a60fb
xor edi, edi
mov dword [0x55014c], ebx
test edi, edi
je 0x4a63aa
mov eax, dword [esi]
mov edx, dword [eax]
push esi
push edi
mov edi, edx
mov esi, 0x57a050
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x57a050
call fcn.005160e8
mov ebx, eax
test ebx, ebx
je 0x4a614e
mov eax, dword [ebx]
mov dword [0x55495c], eax
jmp 0x4a616e
push 0
push 1
push 2
push 0x57a050
call fcn.00519cb1
mov ebx, eax
mov dword [0x55495c], ebx
test ebx, ebx
je 0x4a63aa
push dword [0x55495c]
call fcn.00516145
mov ebx, eax
test ebx, ebx
je 0x4a61f2
push 1
push 0x57a050
push dword [esi + 0x3f8]
push ebx
push esi
call fcn.004a53e4
cmp byte [ebx + 0x64c], 2
jne 0x4a61f2
cmp byte [ebx + 0x64d], 1
jne 0x4a61f2
push 0x57a469
push 0xdca
call fcn.0041c35b
push 0x104
push 0x57a469
call fcn.005395b8
pop ecx
add eax, 0x57a469
push eax
push dword [ebx]
call sub.USER32.dll_GetWindowTextA
push 0x40
push 0x57a469
call fcn.00539518
add esp, 8
test eax, eax
je 0x4a61f2
push 0
push 0x57a469
push ebx
call fcn.004b2cd5
cmp dword [0x55790c], 0
je 0x4a624b
cmp dword [0x54e80c], 0
je 0x4a6215
push 5
push dword [esi + 0x3f8]
call fcn.0044a4ac
test eax, eax
je 0x4a624b
push 0x57a050
mov eax, dword [esi]
push dword [eax]
push dword [0x55495c]
call fcn.004a1117
mov edx, dword [esi]
push dword [edx]
push 0x554e6d
push 0x57a050
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 1
push 0x57a050
call fcn.0051b8a5
cmp dword [0x557938], 0
je 0x4a6289
cmp dword [0x557c68], 1
jne 0x4a626a
push dword [0x557944]
call fcn.0041c28c
jmp 0x4a6289
cmp dword [0x557c68], 2
jne 0x4a6289
push 1
push 0x57a469
push 0
push 0
call fcn.00465acc
push eax
call fcn.004fda12
cmp dword [0x557930], 0
je 0x4a6298
push ebx
call fcn.004a5586
cmp dword [0x54a6f4], 0
je 0x4a62b5
push 2
push ebx
call fcn.0040940f
test eax, eax
je 0x4a62b5
push 3
push esi
call fcn.00409746
cmp dword [0x558a48], 0
je 0x4a62e0
mov ebx, dword [0x55014c]
xor eax, eax
mov dword [0x55014c], eax
push 0
push 0x2c
push 0x554e78
push esi
call fcn.004efac0
mov dword [0x55014c], ebx
cmp dword [0x558a48], 0
je 0x4a62fa
push 1
push 0x3f
push 0x554e7e
push esi
call fcn.004efac0
mov edi, eax
test edi, edi
je 0x4a6392
xor eax, eax
mov dword [0x558950], eax
mov dword [0x558954], 2
mov dword [0x558958], 1
mov dword [0x55895c], 1
mov dword [0x558960], 1
mov dword [0x558964], 1
mov edx, dword [0x54d2a4]
mov dword [0x55494c], edx
mov ecx, dword [esi]
push dword [ecx]
push 1
push 0
call fcn.0042f502
push eax
push 0x554e84
push 0x57a050
call sub.USER32.dll_wsprintfA
add esp, 0xc
mov dword [0x554960], 1
mov eax, dword [esi]
mov edx, dword [eax]
mov dword [0x551d54], edx
push 3
push esi
call fcn.004a14f2
xor ecx, ecx
mov dword [0x551d54], ecx
xor eax, eax
mov dword [0x554960], eax
cmp dword [0x558a48], 0
je 0x4a63aa
push 0
push 0x3f
push 0x554e8a
push esi
call fcn.004efac0
pop edi
pop esi
pop ebx
pop ebp
ret 8