Function at 0x49a750
Capabilities:
Create thread
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569907
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 4]
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x28], ecx
jmp 0x49a790
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
push ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x30], ebx
je 0x49a98e
mov edx, dword [edi + 0x34]
xor eax, eax
test edx, edx
je 0x49a7f8
mov esi, dword [edi + 0x2c]
mov ecx, esi
cmp dword [ecx], 0
jne 0x49a983
inc eax
add ecx, 4
cmp eax, edx
jb 0x49a7e7
xor esi, esi
mov dword [ebp - 0x18], esi
test esi, esi
je 0x49a98e
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0xc]
test eax, eax
jne 0x49a98e
test esi, esi
je 0x49a98b
mov eax, dword [esi + 4]
test eax, eax
je 0x49a943
cmp dword [eax + 8], 0
jne 0x49a839
cmp dword [eax + 4], 0
jne 0x49a943
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x49a943
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
push 0
push 0x581d24
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
push ecx
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.0045a950
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.0049a160
mov esi, dword [ebp - 0x54]
add esp, 0x10
test esi, esi
je 0x49a8fb
xor edi, edi
test esi, esi
je 0x49a8fb
cmp edi, esi
jae 0x49ad39
mov eax, dword [ebp - 0x58]
mov edx, dword [eax + edi*4]
mov eax, ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
cmp ebx, dword [ebp - 0x40]
jb 0x49a8d4
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x48]
call fcn.004a4370
test al, al
je 0x49ad2f
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 3
test ecx, ecx
je 0x49a8ee
push edx
call fcn.0045a3a0
mov esi, dword [ebp - 0x54]
inc ebx
mov byte [ebp - 4], 2
inc edi
mov dword [ebp - 0x44], ebx
cmp edi, esi
jb 0x49a8a1
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 1
test eax, eax
je 0x49a940
xor edi, edi
test esi, esi
je 0x49a935
mov ebx, eax
mov edi, edi
mov edx, dword [ebx + edi*4]
or ecx, 0xffffffff
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49a92d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
cmp edi, esi
jb 0x49a910
mov ebx, dword [ebp - 0x44]
push dword [ebp - 0x58]
call fcn.0052616f
add esp, 4
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x49a98b
mov ecx, dword [esi + 8]
mov edi, dword [ebp - 0x10]
test ecx, ecx
jne 0x49a974
mov eax, dword [ebp - 0x18]
xor edx, edx
mov esi, dword [edi + 0x34]
mov eax, dword [eax + 0xc]
div esi
inc edx
nop
cmp edx, esi
jae 0x49a974
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + edx*4]
test eax, eax
cmovne ecx, eax
inc edx
test ecx, ecx
je 0x49a960
mov esi, ecx
mov dword [ebp - 0x18], esi
test ecx, ecx
jne 0x49a805
jmp 0x49a98e
mov esi, dword [esi + eax*4]
jmp 0x49a7fa
mov edi, dword [ebp - 0x10]
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x49a9cd
cmp dword [edi + 0x7c], ebx
je 0x49a9ef
push ebx
push ebx
push 0x12
push dword [edi + 0x80]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x2710
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x7c], ebx
jmp 0x49a9ef
cmp dword [edi + 0x7c], 0
jne 0x49a9ef
lea eax, [edi + 0x80]
push eax
push 0
push edi
push 0x49a130
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x7c], eax
mov esi, dword [edi + 0x1c]
lea ecx, [ebp - 0x38]
push 1
call fcn.004a4370
test al, al
je 0x49ad2f
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x49aa0d
mov dword [eax], esi
mov esi, dword [ebp - 0x34]
mov edx, dword [edi + 0x20]
inc esi
mov eax, dword [ebp - 0x30]
mov edi, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x24], edx
cmp esi, eax
jb 0x49aa40
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x38]
call fcn.004a4370
test al, al
je 0x49ad2f
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx + edi*4]
test ecx, ecx
je 0x49aa4c
mov dword [ecx], edx
mov ecx, dword [ebp - 0x10]
inc esi
mov dword [ebp - 0x34], esi
mov edi, dword [ecx + 0x88]
test edi, edi
je 0x49aa90
mov ecx, esi
mov dword [ebp - 0x24], ecx
cmp esi, eax
jb 0x49aa80
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x38]
call fcn.004a4370
test al, al
je 0x49ad2f
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x38]
lea eax, [eax + ecx*4]
test eax, eax
je 0x49aa8c
mov dword [eax], edi
inc esi
mov dword [ebp - 0x34], esi
test esi, esi
je 0x49ad39
mov edi, dword [ebp - 0x38]
push 0xffffffffffffffff
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jae 0x49ad19
mov esi, dword [ebp - 0x10]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax + 0xc]
test eax, eax
je 0x49aac8
mov byte [ebp - 0x1c], 1
jmp 0x49acb0
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x10]
test eax, eax
je 0x49aaec
mov eax, dword [esi + 0x20]
test eax, eax
je 0x49acb0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x49acb0
push dword [esi + 0x8c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49acb0
test ebx, ebx
je 0x49acb0
push dword [esi + 0x8c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
xor esi, esi
test edi, edi
jne 0x49ab43
mov ebx, dword [ebp - 0x10]
nop
cmp esi, 0xa
jge 0x49ab40
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebx + 0x8c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc esi
test edi, edi
je 0x49ab20
mov ebx, dword [ebp - 0x44]
inc edi
call fcn.0045adc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x49ad48
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
test edi, edi
js 0x49ad39
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x49ab8e
push edi
lea ecx, [ebp - 0x14]
call fcn.0045b530
mov eax, dword [ebp - 0x14]
push edi
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x8c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x49ad39
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x49ad39
mov dword [ecx - 0xc], edx
xor esi, esi
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov word [eax + edx*2], cx
xor eax, eax
test ebx, ebx
jle 0x49ac8c
mov edi, dword [ebp - 0x48]
nop
test eax, eax
jne 0x49ac0a
cmp esi, ebx
jae 0x49ad39
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.004e2260
inc esi
add esp, 0xc
add edi, 4
cmp esi, ebx
jl 0x49abe0
test eax, eax
je 0x49ac8c
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
lea eax, [ecx + 0x8c]
push eax
push 8
push ecx
mov ecx, dword [esi - 0x10]
mov dword [ebp - 0x24], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x49ac43
cmp ecx, dword [esi - 0x10]
jne 0x49ac43
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x49ac7c
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x49ad43
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.0052628b
add esp, 0x10
mov ecx, dword [ebp - 0x24]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49acad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 0
test eax, eax
je 0x49acf4
xor esi, esi
test ebx, ebx
je 0x49aceb
mov edi, eax
mov edx, dword [edi + esi*4]
or ecx, 0xffffffff
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49ace0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, ebx
jb 0x49acc3
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x48]
push eax
call fcn.0052616f
add esp, 4
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x49ad08
push edi
call fcn.0052616f
add esp, 4
cmp byte [ebp - 0x1c], 0
jne 0x49ad52
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
jmp 0x49a790
mov ecx, dword [ebp - 0x1c]
cmp eax, 0xffffffff
movzx ecx, cl
mov eax, 1
cmove ecx, eax
mov dword [ebp - 0x1c], ecx
jmp 0x49acb0
push 0x8007000e
call fcn.0045a8f0
push 0x80070057
call fcn.0045a8f0
call fcn.00494170
push 0x80004005
call fcn.0045a8f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret