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

Disassembly:
mov eax, 0x186c
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x1868], eax
mov eax, dword [esp + 0x1874]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x187c]
mov ebx, ecx
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], ebx
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
push ecx
push eax
mov ecx, ebx
call fcn.00487280
mov byte [esp + 0x13], al
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
sub ecx, dword [esp + 0x38]
sub edi, dword [esp + 0x3c]
inc ecx
mov edx, dword [esp + 0x60]
inc edi
mov eax, ecx
mov ebp, edi
sub ebp, dword [esp + 0x64]
sub eax, edx
cmp byte [esp + 0x13], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ebp
je 0x487f08
cmp byte [esp + 0x1888], 0
jne 0x487f4a
imul edx, dword [esp + 0x24]
mov eax, 0x51eb851f
push 0xfffffffffffffff0
push esi
imul edx
mov eax, 0x51eb851f
sar edx, 5
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov edx, dword [esp + 0x6c]
imul edx, dword [esp + 0x20]
add ebp, dword [esp + 0x38]
sub ecx, ebp
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, ecx
sub edi, dword [esp + 0x28]
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
sar ecx, 1
mov edi, 0x204
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add ecx, dword [esp + 0x40]
sets dl
dec edx
and edx, ecx
xor ecx, ecx
add eax, dword [esp + 0x44]
mov dword [esp + 0x34], edx
sets cl
dec ecx
and ecx, eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x800
jne 0x487edf
mov edi, 0x206
push edi
push dword [esp + 0x24]
push ebp
push dword [esp + 0x34]
push dword [esp + 0x3c]
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebp, dword [esp + 0x14]
jmp 0x487f12
cmp byte [esp + 0x1888], 0
jne 0x487f4a
push 0x400
lea eax, [esp + 0x7c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x78]
push edi
push 1
push 0x400
push eax
push eax
mov ecx, ebx
call fcn.00487330
lea eax, [esp + 0x78]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x487f4e
mov edi, dword [esp + 0x1c]
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
sub ebp, eax
push esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
xor ebp, ebp
mov dword [esp + 0x20], esi
test esi, esi
je 0x488118
jmp 0x487f80
cmp ebp, 0x200
jge 0x488118
push 0x400
lea eax, [esp + 0x7c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x78], 0
je 0x487fc9
push edi
push 1
push 0x400
lea eax, [esp + 0x84]
mov ecx, ebx
push eax
push eax
call fcn.00487330
lea eax, [esp + 0x78]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [esp + 0x13], 0
je 0x4880fa
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, 0x51eb851f
sub ecx, dword [esp + 0x38]
imul ecx, dword [esp + 0x24]
push 0x800
imul ecx
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x40]
imul ecx, dword [esp + 0x1c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x2c], eax
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x4c]
sar edx, 5
inc ecx
imul ecx, dword [esp + 0x28]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x30], eax
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [esp + 0x58]
mov eax, 0x51eb851f
sub ecx, dword [esp + 0x50]
sar edx, 5
inc ecx
imul ecx, dword [esp + 0x1c]
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
imul ecx
lea eax, [esp + 0x87c]
sar edx, 5
mov edi, edx
push eax
shr edi, 0x1f
push esi
add edi, edx
call dword [sym.imp.USER32.dll_GetClassNameW]
push str.COMBOBOX
lea eax, [esp + 0x87c]
push eax
call fcn.00491ab0
test eax, eax
jne 0x4880de
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and al, 3
cmp al, 1
je 0x4880de
lea eax, [esp + 0x68]
push eax
push 0
push 0x152
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x74]
mov eax, 0x51eb851f
sub ecx, dword [esp + 0x6c]
inc ecx
imul ecx, dword [esp + 0x18]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add edi, eax
push 0x204
push edi
push ebx
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebx, dword [esp + 0x34]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
cmp esi, dword [esp + 0x20]
je 0x488118
mov edi, dword [esp + 0x1c]
inc ebp
test esi, esi
jne 0x487f80
mov ecx, dword [esp + 0x1878]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x186c
ret 0xc