Function at 0x4f8270
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 0x4f828f
cmp dword [ebx + 0x64], ebp
je 0x4f82ab
mov eax, dword [ebx + 0x2c]
mov esi, 1
push esi
push eax
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax + 0x9f8]
call fcn.00502900
test eax, eax
je 0x4f82ad
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 0x4f82d6
mov ecx, ebx
call fcn.004f8100
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax + 0x40]
mov dword [ebx + 0x50], ecx
cmp esi, ebp
mov ecx, ebx
je 0x4f8775
call fcn.004f76b0
mov edx, dword [ebx + 0x68]
push edx
lea ecx, [esp + 0x28]
call fcn.004f6790
cmp dword [esp + 0x24], ebp
je 0x4f877a
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebx + 0x3c]
jbe 0x4f835d
cmp dword [eax + 0x7c], ebp
je 0x4f835d
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x60], ebp
je 0x4f8319
cmp dword [eax + 0x34], ebp
jne 0x4f8379
mov esi, dword [ebx + 0x64]
cmp esi, ebp
mov byte [esp + 0x10], 0
je 0x4f837e
mov eax, dword [esi + 4]
cmp word [eax + 0xc], 2
jne 0x4f8355
mov ecx, dword [eax + 0x50]
call fcn.0051a440
test al, al
jne 0x4f834d
mov ecx, dword [esi + 4]
add ecx, 0x1d0
call fcn.0050eda0
test al, al
je 0x4f8355
mov eax, dword [esi + 4]
cmp dword [eax + 0x10], ebp
jne 0x4f8379
mov esi, dword [esi]
cmp esi, ebp
jne 0x4f8325
jmp 0x4f837e
lea ecx, [esp + 0x24]
call fcn.004f67f0
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 0x4f83c9
mov ecx, dword [ebx + 0x2c]
push str.onActivity
call fcn.0049d160
mov ecx, dword [ebx + 0x24]
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp ecx, ebp
je 0x4f83c9
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x18]
mov edx, dword [eax + 0x10]
mov eax, dword [edx + 0x370]
push eax
call fcn.00527ba0
test al, al
je 0x4f83c9
mov esi, 1
mov al, byte [esp + 0x10]
test al, al
jne 0x4f83d9
cmp esi, ebp
je 0x4f868f
mov ecx, ebx
call fcn.004f6a70
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.004901a0
mov esi, dword [ebx + 0x64]
cmp esi, ebp
je 0x4f85cc
jmp 0x4f8410
mov eax, dword [esi + 4]
cmp word [eax + 0xc], 2
jne 0x4f85bd
mov ecx, dword [eax + 0x50]
call fcn.0051a440
test al, al
jne 0x4f8440
mov ecx, dword [esi + 4]
add ecx, 0x1d0
call fcn.0050eda0
test al, al
je 0x4f85bd
mov eax, dword [esi + 4]
cmp dword [eax + 0x10], ebp
je 0x4f85bd
cmp dword [eax + 0xf4], ebp
jne 0x4f8476
push 0x50
call fcn.0043f080
add esp, 4
cmp eax, ebp
je 0x4f846b
mov ecx, eax
call fcn.004901b0
jmp 0x4f846d
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 0x4f85bd
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.0051c200
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.0050f0d0
push eax
mov ecx, edi
call fcn.0051c1d0
mov eax, dword [esi + 4]
cmp dword [eax + 0xfc], 1
jne 0x4f8554
mov ecx, dword [eax + 0xf8]
test ecx, ecx
jle 0x4f8547
push 0x18
call fcn.0043f080
add esp, 4
test eax, eax
je 0x4f8507
push 1
mov ecx, eax
call fcn.0051c120
mov ebp, eax
jmp 0x4f8509
xor ebp, ebp
push 1
mov ecx, ebp
call fcn.0051c1b0
mov ecx, edi
mov byte [ebp + 8], 9
call fcn.004f62e0
mov edx, dword [esi + 4]
add eax, dword [edx + 0xf8]
push eax
mov ecx, ebp
call fcn.0051c1d0
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.0051c200
mov edx, dword [esi + 4]
mov dword [edx + 0xfc], 2
mov ecx, dword [esi + 4]
add ecx, 0x1d0
call fcn.0050eda0
test al, al
je 0x4f858a
mov ecx, dword [esi + 4]
push edi
add ecx, 0x1d0
call fcn.005129b0
test ebp, ebp
je 0x4f85b1
mov ecx, dword [esi + 4]
push ebp
add ecx, 0x1d0
call fcn.005129b0
jmp 0x4f85b1
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x50]
call fcn.0051a420
mov ecx, dword [esi + 4]
push edi
add ecx, 0x50
call fcn.004fc100
test ebp, ebp
je 0x4f85b1
mov ecx, dword [esi + 4]
push ebp
add ecx, 0x50
call fcn.004fc100
mov ecx, dword [esi + 4]
push 1
call fcn.0050f820
xor ebp, ebp
mov esi, dword [esi]
cmp esi, ebp
jne 0x4f8410
mov edi, 0x64
cmp dword [ebx + 0x58], ebp
jne 0x4f85d8
cmp dword [esp + 0x14], 0xffffffff
jne 0x4f8637
cmp dword [ebx + 0x5c], ebp
jne 0x4f85f9
push 0x50
call fcn.0043f080
add esp, 4
cmp eax, ebp
je 0x4f85f4
mov ecx, eax
call fcn.004901b0
jmp 0x4f85f6
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 0x4f8623
cmp esi, ebp
mov dword [esp + 0x1c], esi
jne 0x4f8637
mov dword [esp + 0x18], 1
jmp 0x4f8637
cmp esi, ebp
je 0x4f8637
mov ecx, esi
call fcn.0051c180
push esi
call fcn.0043f0a0
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 0x4f865f
mov dword [ebx + 0x40], edi
cmp dword [ebx + 0x40], ebp
jge 0x4f8667
mov dword [ebx + 0x40], ebp
mov ecx, dword [ebx + 0x68]
cmp dword [ecx + 0x28], edi
je 0x4f868f
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 0x4f86b1
lea ecx, [ecx]
mov ecx, dword [eax + 4]
cmp dword [ecx + 0xfc], edi
je 0x4f86ed
mov eax, dword [eax]
cmp eax, ebp
jne 0x4f86a0
cmp dword [esp + 0x18], ebp
je 0x4f8703
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.004f8af0
jmp 0x4f8697
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x4f871e
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 0x4f8723
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.004f6340
push esi
mov ecx, ebx
call fcn.004f71f0
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.004f8100
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