Function at 0x1002ee30
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov r11, rsp
sub rsp, 0x5c8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [r11 - 8], rbx
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
mov rax, qword [0x10050650]
mov qword [rsp + 0x580], rax
mov rbx, r9
mov r13d, r8d
mov r14, rdx
mov rax, qword [rsp + 0x5f0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], rax
mov r12, qword [rsp + 0x5f8]
mov qword [rsp + 0x48], r12
mov byte [rsp + 0x100], 0
xor edx, edx
lea r8d, [rdx + 0x7f]
lea rcx, [r11 - 0x4c7]
call sub.msvcrt.dll_memset
mov rax, qword [r12 + 0x10]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_ntohl]
add eax, 0xfdfffffe
cmp eax, 0xc
ja case.0x1002eedc.33554440
lea rdx, [0x10000000]
mov ecx, dword [rdx + rax*4 + 0x2f3a4]
add rcx, rdx
jmp rcx
mov dword [rsp + 0x30], 0x2000002
lea rax, str.MSG_SAC_GET_PORTAL
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, r14
mov r8, rbx
lea rdx, [0x10042858]
lea rcx, [rsp + 0x100]
call qword [sym.imp.msvcrt.dll_sprintf]
jmp 0x1002f0cb
mov dword [rsp + 0x30], 0x2000003
lea rax, str.MSG_SAC_LOGIN
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, r14
mov r8, rbx
lea rdx, [0x10042880]
lea rcx, [rsp + 0x100]
call qword [sym.imp.msvcrt.dll_sprintf]
jmp 0x1002f0cb
mov dword [rsp + 0x30], 0x2000004
lea rax, str.MSG_SAC_LOGIN_CHOICE
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, r14
mov r8, rbx
lea rdx, [0x100428b0]
lea rcx, [rsp + 0x100]
call qword [sym.imp.msvcrt.dll_sprintf]
jmp 0x1002f0cb
mov dword [rsp + 0x30], 0x2000005
lea rax, str.MSG_SAC_GET_USERDATA
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, r14
mov r8, rbx
lea rdx, [0x100428e0]
lea rcx, [rsp + 0x100]
call qword [sym.imp.msvcrt.dll_sprintf]
jmp 0x1002f0cb
mov dword [rsp + 0x30], 0x2000006
lea rax, str.MSG_SAC_PUT_HOSTBIND
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, r14
mov r8, rbx
lea rdx, [0x10042910]
lea rcx, [rsp + 0x100]
call qword [sym.imp.msvcrt.dll_sprintf]
jmp 0x1002f0cb
mov dword [rsp + 0x30], 0x2000007
lea rax, str.MSG_SAC_LOGOUT
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, r14
mov r8, rbx
lea rdx, [0x10042938]
lea rcx, [rsp + 0x100]
call qword [sym.imp.msvcrt.dll_sprintf]
jmp 0x1002f0cb
mov dword [rsp + 0x30], 0x200000d
lea rax, str.MSG_SAC_HEART_BEAT
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, r14
mov r8, rbx
lea rdx, [0x10042968]
lea rcx, [rsp + 0x100]
call qword [sym.imp.msvcrt.dll_sprintf]
jmp 0x1002f0cb
mov dword [rsp + 0x30], 0x200000e
lea rax, str.MSG_SAC_UPDATE_PASSWD
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, r14
mov r8, rbx
lea rdx, str._s__s:_d___s_0x_08x_
lea rcx, [rsp + 0x100]
call qword [sym.imp.msvcrt.dll_sprintf]
jmp 0x1002f0cb
mov rax, qword [r12 + 0x10]
mov ecx, dword [rax]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r13d
mov r9, r14
mov r8, rbx
lea rdx, str._s__s:_d__Unkown_0x_08x_
lea rcx, [rsp + 0x100]
call qword [sym.imp.msvcrt.dll_sprintf]
lea r8, [rsp + 0x100]
lea rdx, [0x1003de04]
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_sprintf]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0xf0], eax
mov rcx, qword [0x10059e10]
test rcx, rcx
jne 0x1002f12d
lea rcx, [0x10042ef4]
call fcn.1001e790
mov qword [0x10059e10], rax
xor ecx, ecx
call fcn.1001d7d0
xor edx, edx
mov rcx, qword [0x10059e10]
call fcn.1001d980
mov rcx, qword [0x10059e10]
lea r8, [rsp + 0x70]
lea rdx, str._ts__job__s__start
call fcn.1001e840
mov dword [rsp + 0x40], 0xffffffff
mov byte [rsp + 0x180], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rsp + 0x181]
call sub.msvcrt.dll_memset
mov rbx, qword [r12 + 0x10]
mov ecx, dword [r12 + 0x18]
sub ecx, ebx
sub ecx, 8
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbx + 4], eax
mov r15, qword [r12 + 0x18]
sub r15, qword [r12 + 0x10]
mov qword [rsp + 0x58], r15
mov rsi, qword [r12 + 0x10]
mov ecx, dword [rsi + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
lea rdi, [rsi + 8]
mov ecx, dword [rsi]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rsp + 0x38], 0x2fffc0
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
mov r9d, r13d
mov r8, r14
lea rdx, str._sac__SSLMSG_One__s__d__x__p__d__d_
mov rcx, qword [0x10059e10]
call fcn.1001ebe0
mov rsi, qword [r12 + 0x10]
mov ecx, dword [rsi + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
mov ecx, dword [rsi]
call qword [sym.imp.WS2_32.dll_ntohl]
mov r8d, eax
mov dword [rsp + 0x28], 0x2fffc0
mov dword [rsp + 0x20], ebx
lea r9, [rsi + 8]
mov edx, r13d
mov rcx, r14
call fcn.10034b30
mov ebx, eax
mov dword [rsp + 0x40], eax
mov r8d, eax
lea rdx, str._sac__SSLMSG_One_result_d
mov rcx, qword [0x10059e10]
call fcn.1001ebe0
nop
mov rdi, qword [rsp + 0x60]
jmp 0x1002f241
test ebx, ebx
jle 0x1002f2eb
mov rax, qword [r12 + 0x10]
mov qword [r12 + 0x18], rax
lea rdx, [0x10042a48]
mov rcx, r12
call fcn.100315c0
mov rax, qword [r12 + 0x18]
mov ecx, dword [rax]
add rax, 4
mov qword [r12 + 0x18], rax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
mov r9d, eax
lea r8, [rsp + 0x100]
lea rdx, str._sacmsg__sac_broker_send_to_device__s._sac_reply0x_08x
mov rcx, qword [0x10059e10]
call fcn.1001e840
mov dword [rdi], ebx
test ebx, ebx
jne 0x1002f2a6
mov ebx, r15d
jmp 0x1002f32c
mov r9d, ebx
lea r8, [rsp + 0x100]
lea rdx, str._s_fail__SAC_reply_0x_08x.
lea rcx, [rsp + 0x180]
call qword [sym.imp.msvcrt.dll_sprintf]
mov r9d, ebx
lea r8, [rsp + 0x100]
lea rdx, str._sacmsg__sac_broker_send_to_device__s_failed._sac_reply0x_08x
mov rcx, qword [0x10059e10]
call fcn.1001edb0
mov ebx, 0xffffffff
jmp 0x1002f32c
mov dword [rdi], 0xa95f74
mov r9d, ebx
lea r8, [rsp + 0x100]
lea rdx, str.sac_broker_send_to_device__s_failed__connection_error:__d.
lea rcx, [rsp + 0x180]
call qword [sym.imp.msvcrt.dll_sprintf]
lea r8, [rsp + 0x100]
lea rdx, str._sac__sac_broker_send_to_device__s_failed:_connection_error.
mov rcx, qword [0x10059e10]
call fcn.1001edb0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0xf0]
mov r9d, eax
lea r8, [rsp + 0x70]
lea rdx, str._ts__job__s__finised__time_elapsed__d_ms
mov rcx, qword [0x10059e10]
call fcn.1001e840
mov eax, ebx
mov rcx, qword [rsp + 0x580]
call fcn.1003b040
mov rbx, qword [rsp + 0x5c0]
mov rsi, qword [rsp + 0x5b8]
mov rdi, qword [rsp + 0x5b0]
mov r12, qword [rsp + 0x5a8]
mov r13, qword [rsp + 0x5a0]
mov r14, qword [rsp + 0x598]
mov r15, qword [rsp + 0x590]
add rsp, 0x5c8
ret