Function at 0x4f99d0
Capabilities:
Check if file exists
Check mutex on windows
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x574975
mov eax, dword fs:[0]
push eax
sub esp, 0x510
mov eax, dword [0x5c3678]
xor eax, esp
mov dword [esp + 0x508], eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x520]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov edi, ecx
lea eax, [edi + 0x54]
push 1
mov ecx, str.IDS_BIND_MAIL
lea esi, [esp + 0x4c]
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0xb
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], 8
mov dword [esp + 0x14], eax
call fcn.004acda0
cmp dword [esp + 0x5c], ebx
jne 0x4f9a7a
cmp dword [esp + 0x60], 8
jb 0x4fa1ab
mov eax, dword [esp + 0x4c]
push eax
call fcn.0053c152
add esp, 4
jmp 0x4fa1ab
cmp dword [esp + 0x60], 8
jb 0x4f9a8e
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0053c152
add esp, 4
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SOFTWARE360TotalSecurityUserProfile
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4fa19c
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push str.BindingMailDate
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x2c]
push ecx
mov esi, eax
call fcn.0053ddbc
add esp, 4
cmp esi, ebx
jne 0x4f9b24
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
cmp eax, 1
jne 0x4f9afd
cmp ecx, ebx
je 0x4fa19c
mov edx, dword [esp + 0x30]
push ecx
push eax
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.00543d7f
fabs
fcomp qword [0x5980e8]
add esp, 0x10
fnstsw ax
test ah, 5
jnp 0x4fa19c
mov edx, dword [esp + 0x18]
push 8
lea ecx, [esp + 0x30]
push ecx
push 0xb
push ebx
push str.BindingMailDate
push edx
mov dword [esp + 0x34], 0xb
mov dword [esp + 0x38], 8
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x4fa19c
lea eax, [esp + 0x9c]
push eax
call fcn.00486000
mov dword [esp + 0x528], ebx
mov ecx, dword [edi + 0x30]
xor esi, esi
mov dword [esp + 0x14], ecx
cmp dword [0x5c9020], esi
jne 0x4f9b81
mov dword [0x5c9020], esi
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0xec]
push eax
push 0x5c8ff0
call fcn.0044c150
mov ecx, dword [esp + 0x20]
add esp, 0xc
movzx eax, ax
push eax
push esi
push 0x100
push 0x8600c200
push 0
push ebx
push ecx
lea eax, [esp + 0xe4]
call fcn.0046eca0
test eax, eax
je 0x4fa182
mov eax, dword [esp + 0x10]
push 0
mov ecx, str.IDS_BIND_MAIL
lea esi, [esp + 0x68]
mov byte [edi + 0x50c], 1
call fcn.004acda0
mov byte [esp + 0x528], 1
mov edx, dword [esp + 0x68]
mov ebx, 8
cmp dword [esp + 0x7c], ebx
jae 0x4f9bfc
lea edx, [esp + 0x68]
push 0
lea ecx, [esp + 0xa0]
call fcn.00487f80
mov edx, dword [esp + 0x248]
mov esi, 1
push esi
push 0
push ecx
mov dword [esp + 0x20], esp
mov edi, esp
push 0
push ecx
mov eax, esp
mov dword [esp + 0x278], esi
mov dword [eax], edx
mov eax, dword [esp + 0x25c]
mov dword [esp + 0x28], esp
test eax, eax
je 0x4f9c45
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea eax, [esp + 0x104]
push eax
mov edx, esi
call fcn.004aeb60
call fcn.004a1c60
add esp, 0xc
push esi
push esi
push ecx
mov dword [esp + 0x20], esp
mov edi, esp
push 0
push ecx
mov ecx, dword [esp + 0x25c]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x25c]
mov esi, 2
mov dword [esp + 0x28], esp
test eax, eax
je 0x4f9c8f
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x104]
push ecx
mov edx, esi
call fcn.004aeb60
call fcn.004a1c60
mov eax, dword [esp + 0x1c]
add esp, 0xc
push 0
mov ecx, str.IDS_GOTO_BIND
lea esi, [esp + 0x4c]
call fcn.004acda0
push 0xffffffffffffffff
push 0
push eax
lea eax, [esp + 0x70]
mov byte [esp + 0x534], 2
call fcn.00411b80
mov byte [esp + 0x528], 1
cmp dword [esp + 0x60], ebx
jb 0x4f9ceb
mov edx, dword [esp + 0x4c]
push edx
call fcn.0053c152
add esp, 4
cmp dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x68]
jae 0x4f9cf9
lea ebx, [esp + 0x68]
test ebx, ebx
je 0x4f9d4e
push ecx
mov dword [esp + 0x18], esp
mov edi, esp
push 0
push ecx
mov ecx, dword [esp + 0x254]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x254]
mov esi, 1
mov dword [esp + 0x20], esp
test eax, eax
je 0x4f9d2e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xfc]
push ecx
mov edx, esi
call fcn.004aeb60
mov edx, ebx
call fcn.004a1d30
add esp, 4
mov dword [esp + 0x528], esi
mov eax, dword [esp + 0x10]
push 0
mov ecx, str.IDS_BIND_LATER
lea esi, [esp + 0x4c]
call fcn.004acda0
push 0xffffffffffffffff
push 0
push eax
lea eax, [esp + 0x70]
mov byte [esp + 0x534], 4
call fcn.00411b80
mov esi, 8
mov byte [esp + 0x528], 1
cmp dword [esp + 0x60], esi
jb 0x4f9d98
mov edx, dword [esp + 0x4c]
push edx
call fcn.0053c152
add esp, 4
mov ebx, dword [esp + 0x68]
cmp dword [esp + 0x7c], esi
jae 0x4f9da6
lea ebx, [esp + 0x68]
test ebx, ebx
je 0x4f9dff
push ecx
mov dword [esp + 0x18], esp
mov edi, esp
push 0
push ecx
mov ecx, dword [esp + 0x254]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x254]
mov esi, 2
mov dword [esp + 0x20], esp
test eax, eax
je 0x4f9ddb
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xfc]
push ecx
mov edx, esi
call fcn.004aeb60
mov edx, ebx
call fcn.004a1d30
add esp, 4
mov dword [esp + 0x528], 1
mov eax, dword [esp + 0x10]
push 0
mov ecx, str.IDS_BIND_DONT_NOTIFY
lea esi, [esp + 0x4c]
call fcn.004acda0
mov ebx, 8
mov byte [esp + 0x528], 6
cmp dword [eax + 0x18], ebx
jb 0x4f9e2a
mov eax, dword [eax + 4]
jmp 0x4f9e2d
add eax, 4
lea edx, [esp + 0x9c]
push edx
mov ecx, eax
call fcn.00488480
mov byte [esp + 0x528], 1
cmp dword [esp + 0x60], ebx
jb 0x4f9e57
mov eax, dword [esp + 0x4c]
push eax
call fcn.0053c152
add esp, 4
lea esi, [esp + 0x9c]
call fcn.00488590
mov ecx, dword [esp + 0xcc]
push ecx
mov byte [esp + 0x266], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4f9e87
mov eax, 2
jmp 0x4f9f0b
cmp byte [0x5cedd4], 0
je 0x4f9eb0
mov edx, dword [esp + 0xcc]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esp + 0xcc], 0
mov eax, 2
jmp 0x4f9f0b
mov eax, dword [0x5cfcc4]
cmp dword [eax - 0xc], 0
je 0x4f9ee0
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x4f9f63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4f9f6a
push 0
push 0
lea ecx, [esp + 0xa4]
push ecx
mov byte [0x5cedd4], 1
call fcn.00486d80
lea edi, [esp + 0x23c]
call fcn.00489850
mov eax, dword [esp + 0x25c]
movzx edx, byte [esp + 0x261]
mov dword [esp + 0x14], edx
cmp eax, 1
jne 0x4fa12b
mov eax, dword [0x5cc90c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5cc90c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
push str.IDS_ACCOUNT_MANAGE_URL
mov al, 1
or ecx, 0xffffffff
lea esi, [esp + 0x4c]
mov byte [esp + 0x52c], 7
call fcn.004acdf0
mov byte [esp + 0x528], 8
cmp dword [eax + 0x18], ebx
jb 0x4f9f77
mov edx, dword [eax + 4]
jmp 0x4f9f7a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xcc]
push eax
jmp 0x4f9e98
lea edx, [eax + 4]
test edx, edx
jne 0x4f9f82
xor eax, eax
jmp 0x4f9f96
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f9f87
sub eax, esi
sar eax, 1
push eax
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00423be0
mov byte [esp + 0x528], 7
cmp dword [esp + 0x60], ebx
jb 0x4f9fbd
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0053c152
add esp, 4
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], 0
je 0x4f9fd9
push 0x37
push str._utm_sourceIAutm_mediumACCOUNTutm_contentEMAIL_ADD
lea edi, [esp + 0x18]
call fcn.00423600
jmp 0x4f9fe2
lea esi, [esp + 0x10]
call fcn.00423a80
mov ebx, dword [esp + 0x10]
cmp dword [ebx - 0xc], 0
je 0x4fa102
lea eax, [esp + 0x2fc]
push eax
call fcn.00423e10
xor ecx, ecx
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], 0
mov word [esp + 0x84], cx
mov byte [esp + 0x528], 0xa
call fcn.00424330
push 0x4d
lea edx, [esp + 0x300]
push edx
call fcn.00424110
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x328]
push ecx
call fcn.00404c30
add esp, 8
cmp dword [esp + 0x94], 0
je 0x4fa090
push 3
push 0x592010
lea edi, [esp + 0x18]
call fcn.00423600
cmp dword [esp + 0x98], 8
mov edx, dword [esp + 0x84]
jae 0x4fa083
lea edx, [esp + 0x84]
lea eax, [esp + 0x10]
call fcn.0040e610
mov ebx, dword [esp + 0x10]
call fcn.004021a0
mov esi, eax
cmp byte [esi + 0x270], 0
jne 0x4fa0a5
call fcn.00401e10
cmp dword [esi], 0
je 0x4fa0bc
mov esi, dword [esi + 0x20c]
test esi, esi
je 0x4fa0bc
push 0
push ebx
call esi
add esp, 8
cmp dword [esp + 0x98], 8
jb 0x4fa0d6
mov edx, dword [esp + 0x84]
push edx
call fcn.0053c152
add esp, 4
xor eax, eax
lea edi, [esp + 0x2fc]
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], 0
mov word [esp + 0x84], ax
call fcn.004243a0
lea eax, [ebx - 0x10]
mov byte [esp + 0x528], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4fa126
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, 8
cmp dword [esp + 0x14], 0
je 0x4fa158
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x40]
push ecx
push 0xb
push 0
push str.BindingMailDate
push edx
mov dword [esp + 0x34], 0xb
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [esp + 0x7c], ebx
jb 0x4fa16b
mov eax, dword [esp + 0x68]
push eax
call fcn.0053c152
add esp, 4
xor ecx, ecx
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov word [esp + 0x68], cx
lea edx, [esp + 0x9c]
push edx
mov dword [esp + 0x52c], 0xffffffff
call fcn.004861d0
xor ebx, ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4fa1ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x520]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret