Function at 0x4f8e50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx + 0x60]
xor ebp, ebp
cmp eax, ebp
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
jne 0x4f8e6f
cmp dword [ebx + 0x64], ebp
je 0x4f8e8b
mov eax, dword [ebx + 0x2c]
mov esi, 1
push esi
push eax
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax + 0x9f8]
call fcn.005033f0
test eax, eax
je 0x4f8e8d
xor esi, esi
mov edi, dword [ebx + 0x68]
push edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x68]
mov edx, dword [ebx + 0x50]
cmp edx, dword [ecx + 0x40]
je 0x4f8eb6
mov ecx, ebx
call fcn.004f8ce0
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax + 0x40]
mov dword [ebx + 0x50], ecx
cmp esi, ebp
mov ecx, ebx
je 0x4f9355
call fcn.004f8290
mov edx, dword [ebx + 0x68]
push edx
lea ecx, [esp + 0x28]
call fcn.004f7370
cmp dword [esp + 0x24], ebp
je 0x4f935a
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebx + 0x3c]
jbe 0x4f8f3d
cmp dword [eax + 0x7c], ebp
je 0x4f8f3d
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x60], ebp
je 0x4f8ef9
cmp dword [eax + 0x34], ebp
jne 0x4f8f59
mov esi, dword [ebx + 0x64]
cmp esi, ebp
mov byte [esp + 0x10], 0
je 0x4f8f5e
mov eax, dword [esi + 4]
cmp word [eax + 0xc], 2
jne 0x4f8f35
mov ecx, dword [eax + 0x50]
call fcn.0051b050
test al, al
jne 0x4f8f2d
mov ecx, dword [esi + 4]
add ecx, 0x1d0
call fcn.0050f920
test al, al
je 0x4f8f35
mov eax, dword [esi + 4]
cmp dword [eax + 0x10], ebp
jne 0x4f8f59
mov esi, dword [esi]
cmp esi, ebp
jne 0x4f8f05
jmp 0x4f8f5e
lea ecx, [esp + 0x24]
call fcn.004f73d0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
mov byte [esp + 0x10], 1
mov ecx, dword [ebx + 0x68]
mov eax, dword [ecx + 0x28]
mov edi, 0x64
xor esi, esi
cmp eax, edi
je 0x4f8fa9
mov ecx, dword [ebx + 0x2c]
push str.onActivity
call fcn.0049d570
mov ecx, dword [ebx + 0x24]
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp ecx, ebp
je 0x4f8fa9
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x18]
mov edx, dword [eax + 0x10]
mov eax, dword [edx + 0x37c]
push eax
call fcn.00528790
test al, al
je 0x4f8fa9
mov esi, 1
mov al, byte [esp + 0x10]
test al, al
jne 0x4f8fb9
cmp esi, ebp
je 0x4f926f
mov ecx, ebx
call fcn.004f7650
mov ecx, dword [ebx + 0x68]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0xffffffff
mov edx, dword [ecx + 0x7c]
mov ecx, dword [ebx + 0x54]
push eax
push edx
call fcn.00490510
mov esi, dword [ebx + 0x64]
cmp esi, ebp
je 0x4f91ac
jmp 0x4f8ff0
mov eax, dword [esi + 4]
cmp word [eax + 0xc], 2
jne 0x4f919d
mov ecx, dword [eax + 0x50]
call fcn.0051b050
test al, al
jne 0x4f9020
mov ecx, dword [esi + 4]
add ecx, 0x1d0
call fcn.0050f920
test al, al
je 0x4f919d
mov eax, dword [esi + 4]
cmp dword [eax + 0x10], ebp
je 0x4f919d
cmp dword [eax + 0xf4], ebp
jne 0x4f9056
push 0x50
call fcn.0043f000
add esp, 4
cmp eax, ebp
je 0x4f904b
mov ecx, eax
call fcn.00490520
jmp 0x4f904d
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [ecx + 0xf4], eax
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0xf4]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ebx + 0x54]
push edx
call dword [eax + 4]
mov edi, eax
cmp edi, ebp
je 0x4f919d
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.0051ce10
movzx eax, byte [edi + 0xd]
movzx ecx, byte [edi + 0xe]
xor edx, edx
mov dh, byte [edi + 0xf]
mov dl, byte [edi + 0xc]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
mov ecx, dword [esi + 4]
push edx
add ecx, 0x32c
call fcn.0050fc50
push eax
mov ecx, edi
call fcn.0051cde0
mov eax, dword [esi + 4]
cmp dword [eax + 0xfc], 1
jne 0x4f9134
mov ecx, dword [eax + 0xf8]
test ecx, ecx
jle 0x4f9127
push 0x18
call fcn.0043f000
add esp, 4
test eax, eax
je 0x4f90e7
push 1
mov ecx, eax
call fcn.0051cd30
mov ebp, eax
jmp 0x4f90e9
xor ebp, ebp
push 1
mov ecx, ebp
call fcn.0051cdc0
mov ecx, edi
mov byte [ebp + 8], 9
call fcn.004f6ec0
mov edx, dword [esi + 4]
add eax, dword [edx + 0xf8]
push eax
mov ecx, ebp
call fcn.0051cde0
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebp + 0x14]
mov dl, byte [eax + 0x38]
mov byte [ecx], dl
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, ebp
call fcn.0051ce10
mov edx, dword [esi + 4]
mov dword [edx + 0xfc], 2
mov ecx, dword [esi + 4]
add ecx, 0x1d0
call fcn.0050f920
test al, al
je 0x4f916a
mov ecx, dword [esi + 4]
push edi
add ecx, 0x1d0
call fcn.005135b0
test ebp, ebp
je 0x4f9191
mov ecx, dword [esi + 4]
push ebp
add ecx, 0x1d0
call fcn.005135b0
jmp 0x4f9191
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x50]
call fcn.0051b030
mov ecx, dword [esi + 4]
push edi
add ecx, 0x50
call fcn.004fccd0
test ebp, ebp
je 0x4f9191
mov ecx, dword [esi + 4]
push ebp
add ecx, 0x50
call fcn.004fccd0
mov ecx, dword [esi + 4]
push 1
call fcn.00510450
xor ebp, ebp
mov esi, dword [esi]
cmp esi, ebp
jne 0x4f8ff0
mov edi, 0x64
cmp dword [ebx + 0x58], ebp
jne 0x4f91b8
cmp dword [esp + 0x14], 0xffffffff
jne 0x4f9217
cmp dword [ebx + 0x5c], ebp
jne 0x4f91d9
push 0x50
call fcn.0043f000
add esp, 4
cmp eax, ebp
je 0x4f91d4
mov ecx, eax
call fcn.00490520
jmp 0x4f91d6
xor eax, eax
mov dword [ebx + 0x5c], eax
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x54]
push eax
call dword [edx + 4]
mov esi, eax
cmp dword [ebx + 0x58], ebp
je 0x4f9203
cmp esi, ebp
mov dword [esp + 0x1c], esi
jne 0x4f9217
mov dword [esp + 0x18], 1
jmp 0x4f9217
cmp esi, ebp
je 0x4f9217
mov ecx, esi
call fcn.0051cd90
push esi
call fcn.0043f020
add esp, 4
mov edx, dword [esp + 0x14]
mov ecx, edi
sub ecx, edx
imul ecx, ecx, 0x64
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
mov dword [ebx + 0x40], eax
jle 0x4f923f
mov dword [ebx + 0x40], edi
cmp dword [ebx + 0x40], ebp
jge 0x4f9247
mov dword [ebx + 0x40], ebp
mov ecx, dword [ebx + 0x68]
cmp dword [ecx + 0x28], edi
je 0x4f926f
mov edx, dword [esp + 0x30]
mov dword [edx], 1
mov eax, dword [ebx + 0x68]
mov esi, dword [eax + 0x28]
mov ecx, dword [ebx + 0x40]
mov eax, dword [esp + 0x34]
xor edx, edx
cmp ecx, esi
setge dl
mov dword [eax], edx
lea esi, [ebx + 0x64]
mov edi, 2
mov eax, dword [esi]
cmp eax, ebp
je 0x4f9291
lea ecx, [ecx]
mov ecx, dword [eax + 4]
cmp dword [ecx + 0xfc], edi
je 0x4f92cd
mov eax, dword [eax]
cmp eax, ebp
jne 0x4f9280
cmp dword [esp + 0x18], ebp
je 0x4f92e3
mov edi, dword [esp + 0x28]
lea esi, [edi + 0x84]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [edi + 0x9c], ebp
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 8
mov edx, dword [eax + 4]
mov dword [edx + 0xfc], ebp
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004f96d0
jmp 0x4f9277
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x4f92fe
movzx edx, byte [esi + 0xb]
xor eax, eax
mov ah, byte [esi + 9]
mov al, byte [esi + 0xa]
shl eax, 8
or eax, edx
jmp 0x4f9303
mov eax, 1
mov ecx, dword [ebx + 0x68]
fld qword [ecx + 0x58]
sub esp, 8
fstp qword [esp]
push eax
lea ecx, [ebx + 0x44]
call fcn.004f6f20
push esi
mov ecx, ebx
call fcn.004f7da0
mov ebx, dword [esp + 0x28]
lea esi, [ebx + 0x84]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebx + 0x9c], ebp
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
call fcn.004f8ce0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 8