Function at 0x4999f8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x499caa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x368]
mov eax, dword [eax + 0x22c]
call fcn.00440b6c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x368]
mov eax, dword [eax + 0x22c]
call fcn.00440b4c
mov eax, 0xff
call fcn.0040278c
mov edi, eax
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x499c4a
lea eax, [ebp - 8]
push eax
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0x10], eax
push 0xff
push edi
push ebx
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x2c]
mov edx, edi
call fcn.00404388
mov eax, dword [ebp - 0x2c]
call fcn.0040446c
test eax, eax
je 0x499c38
lea eax, [ebp - 0x30]
mov edx, edi
call fcn.00404388
mov eax, dword [ebp - 0x30]
mov edx, 0x499cc0
call fcn.004045b8
jne 0x499c38
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x368]
mov eax, dword [eax + 0x22c]
call fcn.004409fc
mov esi, eax
mov dword [ebp - 0x14], 0x9077cc
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0049992c
mov edx, eax
add edx, 0x28
mov eax, dword [ebp - 8]
call fcn.0049992c
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
add edx, 0x254
mov eax, dword [ebp - 8]
call fcn.0049992c
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x18]
add edx, 0x258
mov eax, dword [ebp - 8]
call fcn.0049992c
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x18]
add edx, 0x24c
mov eax, dword [ebp - 8]
call fcn.0049992c
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x18]
add edx, 0x3a4
mov eax, dword [ebp - 8]
call fcn.0049992c
mov dword [ebp - 0x28], eax
push 0x10
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x49ffd4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.00499984
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.0044049c
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x38]
call fcn.004087b0
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x3c]
call fcn.004087b0
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.004087b0
mov edx, dword [ebp - 0x40]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.004087b0
mov eax, dword [ebp - 0x44]
mov edx, dword [0x49ff70]
call fcn.004047b0
test eax, eax
jne 0x499bf5
mov edx, 0x499cd8
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x499c02
mov edx, 0x499ce4
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.004087b0
mov edx, dword [ebp - 0x48]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.004087b0
mov edx, dword [ebp - 0x4c]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0xc]
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x499a7f
cmp dword [ebp - 0xc], 0
jne 0x499c6e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x368]
mov eax, dword [eax + 0x22c]
call fcn.004409fc
mov edx, 0x499cf0
call fcn.0044049c
mov eax, edi
call fcn.004027ac
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x368]
mov eax, dword [eax + 0x22c]
call fcn.00440d48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499cb1
lea eax, [ebp - 0x4c]
mov edx, 9
call fcn.004041b4
ret