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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc017
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x53f030]
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 0x46dfd0
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 0x46e1ce
mov edx, dword [edi + 0x34]
xor eax, eax
test edx, edx
je 0x46e038
mov esi, dword [edi + 0x2c]
mov ecx, esi
cmp dword [ecx], 0
jne 0x46e1c3
inc eax
add ecx, 4
cmp eax, edx
jb 0x46e027
xor esi, esi
mov dword [ebp - 0x18], esi
test esi, esi
je 0x46e1ce
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0xc]
test eax, eax
jne 0x46e1ce
test esi, esi
je 0x46e1cb
mov eax, dword [esi + 4]
test eax, eax
je 0x46e183
cmp dword [eax + 8], 0
jne 0x46e079
cmp dword [eax + 4], 0
jne 0x46e183
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x46e183
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
push 0
push 0x50b8b8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
push ecx
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.0043a9d0
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.0046d8b0
mov esi, dword [ebp - 0x54]
add esp, 0x10
test esi, esi
je 0x46e13b
xor edi, edi
test esi, esi
je 0x46e13b
cmp edi, esi
jae 0x46e579
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 0x46e114
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x48]
call fcn.004911c0
test al, al
je 0x46e56f
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 0x46e12e
push edx
call fcn.0043a420
mov esi, dword [ebp - 0x54]
inc ebx
mov byte [ebp - 4], 2
inc edi
mov dword [ebp - 0x44], ebx
cmp edi, esi
jb 0x46e0e1
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 1
test eax, eax
je 0x46e180
xor edi, edi
test esi, esi
je 0x46e175
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 0x46e16d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
cmp edi, esi
jb 0x46e150
mov ebx, dword [ebp - 0x44]
push dword [ebp - 0x58]
call fcn.004d92bb
add esp, 4
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x46e1cb
mov ecx, dword [esi + 8]
mov edi, dword [ebp - 0x10]
test ecx, ecx
jne 0x46e1b4
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 0x46e1b4
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + edx*4]
test eax, eax
cmovne ecx, eax
inc edx
test ecx, ecx
je 0x46e1a0
mov esi, ecx
mov dword [ebp - 0x18], esi
test ecx, ecx
jne 0x46e045
jmp 0x46e1ce
mov esi, dword [esi + eax*4]
jmp 0x46e03a
mov edi, dword [ebp - 0x10]
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x46e20d
cmp dword [edi + 0x7c], ebx
je 0x46e22f
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 0x46e22f
cmp dword [edi + 0x7c], 0
jne 0x46e22f
lea eax, [edi + 0x80]
push eax
push 0
push edi
push 0x46d880
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.004911c0
test al, al
je 0x46e56f
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x46e24d
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 0x46e280
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x38]
call fcn.004911c0
test al, al
je 0x46e56f
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 0x46e28c
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 0x46e2d0
mov ecx, esi
mov dword [ebp - 0x24], ecx
cmp esi, eax
jb 0x46e2c0
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x38]
call fcn.004911c0
test al, al
je 0x46e56f
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x38]
lea eax, [eax + ecx*4]
test eax, eax
je 0x46e2cc
mov dword [eax], edi
inc esi
mov dword [ebp - 0x34], esi
test esi, esi
je 0x46e579
mov edi, dword [ebp - 0x38]
push 0xffffffffffffffff
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jae 0x46e559
mov esi, dword [ebp - 0x10]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax + 0xc]
test eax, eax
je 0x46e308
mov byte [ebp - 0x1c], 1
jmp 0x46e4f0
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x10]
test eax, eax
je 0x46e32c
mov eax, dword [esi + 0x20]
test eax, eax
je 0x46e4f0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x46e4f0
push dword [esi + 0x8c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46e4f0
test ebx, ebx
je 0x46e4f0
push dword [esi + 0x8c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
xor esi, esi
test edi, edi
jne 0x46e383
mov ebx, dword [ebp - 0x10]
nop
cmp esi, 0xa
jge 0x46e380
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 0x46e360
mov ebx, dword [ebp - 0x44]
inc edi
call fcn.0043ae40
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46e588
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 0x46e579
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x46e3ce
push edi
lea ecx, [ebp - 0x14]
call fcn.0043b5a0
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.004d9e5f
mov edx, eax
add esp, 8
test edx, edx
js 0x46e579
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x46e579
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 0x46e4cc
mov edi, dword [ebp - 0x48]
nop
test eax, eax
jne 0x46e44a
cmp esi, ebx
jae 0x46e579
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.0045ebf0
inc esi
add esp, 0xc
add edi, 4
cmp esi, ebx
jl 0x46e420
test eax, eax
je 0x46e4cc
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 0x46e483
cmp ecx, dword [esi - 0x10]
jne 0x46e483
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x46e4bc
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x46e583
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.004d93d7
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 0x46e4ed
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 0x46e534
xor esi, esi
test ebx, ebx
je 0x46e52b
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 0x46e520
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, ebx
jb 0x46e503
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x48]
push eax
call fcn.004d92bb
add esp, 4
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x46e548
push edi
call fcn.004d92bb
add esp, 4
cmp byte [ebp - 0x1c], 0
jne 0x46e592
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
jmp 0x46dfd0
mov ecx, dword [ebp - 0x1c]
cmp eax, 0xffffffff
movzx ecx, cl
mov eax, 1
cmove ecx, eax
mov dword [ebp - 0x1c], ecx
jmp 0x46e4f0
push 0x8007000e
call fcn.0043a9b0
push 0x80070057
call fcn.0043a9b0
call fcn.0043b9d0
push 0x80004005
call fcn.0043a9b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret