Function at 0x542ff0
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b7e57
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0x58]
lea ebx, [edi + 0x58]
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_IsWindow]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x54306d
push 0
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
push 0
push SysReAllocStringLen
push 0
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [esp + 0x40], esp
push esi
mov ecx, edi
mov dword [eax], 0
call fcn.00540910
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x5431a3
cmp esi, edi
jne 0x543089
push ebx
xor eax, eax
call fcn.004e9260
jmp 0x5431a3
lea ecx, [esp + 0x38]
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
call esi
mov eax, dword [ebx]
lea edx, [esp + 0x48]
push edx
push eax
call esi
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
lea eax, [edx + ecx]
cdq
sub eax, edx
mov edx, dword [esp + 0x40]
mov ecx, eax
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x48]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x54]
mov edi, eax
mov eax, dword [esp + 0x4c]
add eax, edx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x50]
add eax, esi
cdq
sub eax, edx
sar eax, 1
sar edi, 1
sar ecx, 1
mov edx, edi
sub edx, eax
sub edi, eax
add dword [esp + 0x50], edi
mov eax, ecx
sar ebx, 1
sub ecx, ebx
add dword [esp + 0x54], ecx
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
add esi, edx
sub eax, ebx
add dword [esp + 0x58], eax
push 0x30
mov dword [esp + 0x58], esi
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
mov edx, dword [esp + 0x50]
jge 0x543131
sub ecx, eax
add eax, ecx
add edx, ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], edx
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
cmp esi, ecx
jge 0x543153
sub ecx, esi
mov edi, ecx
mov ecx, dword [esp + 0x54]
add esi, edi
add ecx, edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], ecx
jmp 0x543157
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x30]
cmp edx, edi
jle 0x54316d
sub edi, edx
add eax, edi
add edx, edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], edx
mov edi, dword [esp + 0x34]
cmp ecx, edi
jle 0x543183
sub edi, ecx
add esi, edi
add ecx, edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], ecx
push 1
sub ecx, esi
push ecx
sub edx, eax
push edx
mov edx, dword [esp + 0x28]
push esi
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x1c]
xor edi, edi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebx]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
test byte [0x624ffc], 1
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
jne 0x5431ea
or dword [0x624ffc], 1
mov dword [esp + 0xa0], edi
call fcn.00543ef0
push 0x5c5b40
call fcn.00588d7c
add esp, 4
mov dword [esp + 0xa0], 0xffffffff
mov ebx, 2
test byte [0x624ffc], bl
jne 0x543251
or dword [0x624ffc], ebx
mov ecx, 1
mov dword [esp + 0xa0], ecx
call fcn.00430d10
cmp eax, edi
je 0x54321a
mov dword [eax], 0x624700
jmp 0x54321c
xor eax, eax
push 0x5c5b20
mov dword [0x624700], eax
mov dword [0x624710], edi
mov dword [0x624714], edi
mov dword [0x624718], edi
mov dword [0x62471c], edi
call fcn.00588d7c
add esp, 4
mov dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x74]
push ecx
call fcn.004d9400
mov dword [esp + 0xa0], ebx
cmp dword [0x62471c], edi
je 0x543279
call fcn.00544250
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea edx, [esp + 0x18]
push edx
call fcn.005442a0
cmp esi, edi
je 0x543396
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
lea eax, [ebp + 8]
push eax
lea ebx, [esp + 0x78]
call fcn.00543e30
mov dword [eax], esi
mov ecx, dword [0x6246f8]
mov esi, dword [0x6246e0]
lea edi, [ebp + 8]
lea ebx, [esp + 0x38]
mov dword [esp + 0x2c], ecx
call fcn.00543db0
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x5432cd
cmp eax, esi
je 0x5432d2
call fcn.00588c45
mov edx, dword [esp + 0x2c]
lea eax, [ebp + 8]
cmp dword [edi + 4], edx
je 0x5432e7
call fcn.005439e0
inc dword [eax]
jmp 0x5432f2
call fcn.005439e0
mov dword [eax], 1
mov eax, dword [esp + 0x8c]
mov ebx, dword [eax]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], esi
jmp 0x543310
mov edi, dword [esp + 0x8c]
test esi, esi
je 0x543321
cmp esi, dword [esp + 0x74]
je 0x543326
call fcn.00588c45
cmp ebx, edi
je 0x543396
test esi, esi
jne 0x54338e
call fcn.00588c45
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x54333f
call fcn.00588c45
test byte [ebx + 0x10], 8
je 0x54335c
mov ecx, dword [esp + 0x18]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
test esi, esi
jne 0x543392
call fcn.00588c45
cmp ebx, dword [esi + 0x18]
jne 0x54336f
call fcn.00588c45
mov edx, dword [ebx + 0xc]
push 0
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
lea esi, [esp + 0x28]
call fcn.004d9480
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
jmp 0x543310
mov eax, dword [esi]
jmp 0x543335
mov esi, dword [esi]
jmp 0x543365
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x108], 0
jne 0x54351e
push 0
push 0
push 0
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x54351e
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, dword [0x621148]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x621148
mov dword [esp + 0x28], edi
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov byte [esp + 0xa0], 3
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x400
or eax, ecx
jge 0x543411
mov ecx, 0x400
lea eax, [esp + 0x20]
call fcn.00406a80
mov ebx, dword [esp + 0x20]
push 0x400
push ebx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0058a3a5
add esp, 8
test eax, eax
jl 0x54356d
cmp eax, dword [ebx - 8]
jg 0x54356d
mov dword [ebx - 0xc], eax
xor ecx, ecx
mov word [ebx + eax*2], cx
mov edx, dword [esp + 0x8c]
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edi, [esp + 0x7c]
mov dword [esp + 0x44], edx
call fcn.004d75b0
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x543473
cmp eax, esi
je 0x543478
call fcn.00588c45
mov edx, dword [esp + 0x3c]
cmp dword [edi + 4], edx
je 0x543495
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x58], eax
jne 0x5434c6
mov eax, dword [esp + 0x5c]
cmp eax, 0x10
je 0x54353c
cmp eax, 2
je 0x54353c
cmp eax, 0x112
jne 0x5434c6
cmp dword [esp + 0x60], 0xf060
je 0x54353c
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x108], 0
jne 0x543547
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
add ebx, 0xfffffff0
mov byte [esp + 0xa0], 2
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x54350d
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x108], 0
je 0x5433a7
cmp dword [0x62471c], 0
je 0x543587
sub dword [0x62471c], 1
jne 0x543577
mov dword [0x624718], 0
jmp 0x543587
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x108], 1
add ebx, 0xfffffff0
mov byte [esp + 0xa0], 2
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x54351e
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
jmp 0x54351e
push 0x80070057
call fcn.00406af0
call fcn.00544250
mov eax, dword [eax]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx]
mov esi, dword [esp + 0x74]
mov ebx, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov edi, edi
mov edi, dword [esp + 0x8c]
test esi, esi
je 0x5435b1
cmp esi, dword [esp + 0x74]
je 0x5435b6
call fcn.00588c45
cmp ebx, edi
je 0x543650
mov edx, dword [0x6246f8]
mov eax, dword [0x6246e0]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
test esi, esi
jne 0x543648
call fcn.00588c45
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x5435e6
call fcn.00588c45
mov edi, dword [esp + 0x2c]
add edi, 0xc
lea ebx, [esp + 0x48]
call fcn.00543db0
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x543604
cmp eax, dword [esp + 0x20]
je 0x543609
call fcn.00588c45
mov ecx, dword [esp + 0x24]
cmp dword [ebx + 4], ecx
je 0x543632
test esi, esi
jne 0x54364c
call fcn.00588c45
mov edx, dword [esp + 0x2c]
cmp edx, dword [esi + 0x18]
jne 0x543629
call fcn.00588c45
mov eax, edi
call fcn.005439e0
dec dword [eax]
lea esi, [esp + 0x28]
call fcn.004d9480
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
jmp 0x5435a0
mov eax, dword [esi]
jmp 0x5435dc
mov esi, dword [esi]
jmp 0x54361b
mov eax, dword [0x6246f8]
mov esi, dword [eax]
mov ebx, dword [0x6246e0]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
mov edi, dword [0x6246f8]
test ebx, ebx
je 0x543677
cmp ebx, dword [0x6246e0]
je 0x54367c
call fcn.00588c45
cmp esi, edi
je 0x543769
test ebx, ebx
jne 0x543741
call fcn.00588c45
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x54369d
call fcn.00588c45
cmp dword [esi + 0x10], 0
jg 0x543753
test ebx, ebx
jne 0x543748
call fcn.00588c45
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x5436c0
call fcn.00588c45
add esi, 0xc
push esi
lea ecx, [esp + 0x24]
push ecx
lea edi, [esp + 0x7c]
call fcn.004d75b0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x8c]
test esi, esi
je 0x5436e7
cmp esi, dword [esp + 0x74]
je 0x5436ec
call fcn.00588c45
cmp dword [esp + 0x24], edi
je 0x543719
test esi, esi
jne 0x54374f
call fcn.00588c45
mov edx, dword [esp + 0x24]
cmp edx, dword [esi + 0x18]
jne 0x543709
call fcn.00588c45
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edi, ebx
mov ebx, dword [esp + 0x2c]
lea esi, [esp + 0x28]
call fcn.004d9480
push ebx
push edi
lea edx, [esp + 0x50]
push edx
call fcn.00543ac0
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
jmp 0x543665
mov eax, dword [ebx]
jmp 0x543693
mov eax, dword [ebx]
jmp 0x5436b6
mov esi, dword [esi]
jmp 0x5436fb
lea esi, [esp + 0x28]
call fcn.004d9480
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
jmp 0x543665
cmp dword [esp + 0x5c], 0x12
jne 0x54377a
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x543790
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5437aa
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 0x104]
lea esi, [esp + 0x74]
mov dword [esp + 0xa0], 4
call fcn.00480d80
mov edx, dword [esp + 0x74]
push edx
call fcn.005851f0
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc