Function at 0x10017980
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
sub rsp, 0x698
mov rax, qword [0x10050650]
mov qword [rsp + 0x668], rax
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 - 8], rsi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x20], r13
mov rbx, rdx
mov qword [r11 - 0x28], r14
xor r14d, r14d
mov edi, ecx
mov dword [rsp + 0x44], r14d
xor eax, eax
lea r8, [rsp + 0x40]
lea rdx, [0x100402cc]
lea rcx, [rsp + 0x48]
mov qword [r11 - 0x60], r14
mov qword [r11 - 0x58], r14
mov qword [r11 - 0x50], r14
mov byte [rsp + 0x40], al
mov r13d, r14d
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x630]
mov r9b, 1
mov rdx, rbx
call fcn.10015ea0
lea rcx, [rsp + 0x48]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov r9, qword [rbx + 8]
mov rsi, qword [rsp + 0x638]
mov rbp, qword [rsp + 0x640]
test r9, r9
cmove r9, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test rsi, rsi
jne 0x10017a36
mov r8, r14
jmp 0x10017a40
mov r8, rbp
sub r8, rsi
sar r8, 5
mov rcx, qword [0x10050988]
lea rdx, str.login__enter:_param__u__s
mov qword [rsp + 0x680], r12
call fcn.1001e840
test rsi, rsi
je 0x10017a70
mov r12, rbp
sub r12, rsi
sar r12, 5
cmp r12, 7
jae 0x10017ab7
mov r9, qword [rbx + 8]
lea rdx, [0x100402f0]
lea rcx, [rsp + 0x48]
test r9, r9
mov r8d, edi
cmove r9, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call fcn.10001f80
mov rcx, qword [0x10050a20]
mov edx, 0xcf
mov r8, rax
call fcn.10005b10
lea rcx, [rsp + 0x48]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
jmp 0x1001810b
lea rcx, [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
lea r11, [rsp + 0x44]
test r11, r11
je 0x10017b18
mov r9d, 1
lea rdx, [rsi + 0x20]
lea rcx, [rsp + 0x70]
mov r8d, r9d
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64__int____ptr64]
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
mov r11, qword [rsp + 0x70]
movsxd rax, dword [r11 + 4]
test byte [rsp + rax + 0x78], 6
je 0x10017b0d
xor eax, eax
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void____ptr64]
mov r8, qword [rsi + 0x48]
xor eax, eax
lea rbx, [rsi + 0x40]
test r8, r8
lea rcx, [rsp + 0x630]
lea edx, [rax + 0x20]
cmove r8, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov byte [rsp + 0x630], r13b
mov qword [rsp + 0x631], rax
mov qword [rsp + 0x639], rax
mov qword [rsp + 0x641], rax
mov dword [rsp + 0x649], eax
mov word [rsp + 0x64d], ax
mov byte [rsp + 0x64f], al
call fcn.1001bcc0
mov r8, qword [rsi + 0x68]
lea rcx, [rsp + 0x650]
mov edx, reloc.WS2_32.dll_sendto
test r8, r8
cmove r8, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call fcn.1001bcc0
mov rcx, qword [0x10050a30]
lea rdx, [rsi + 0x80]
add rcx, 0xa0
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
mov rcx, qword [0x10050a30]
mov rdx, rbx
add rcx, 0x48
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
mov r11, qword [0x10050a30]
lea rcx, [rsp + 0x630]
mov rax, qword [rcx]
lea rdx, [rsi + 0x60]
mov qword [r11 + 0x24], rax
mov rax, qword [rcx + 8]
mov qword [r11 + 0x2c], rax
mov rax, qword [rcx + 0x10]
mov qword [r11 + 0x34], rax
mov rax, qword [rcx + 0x18]
mov qword [r11 + 0x3c], rax
mov rcx, qword [0x10050a30]
sub rcx, 0xffffffffffffff80
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
mov r11, qword [0x10050a30]
lea rcx, [rsp + 0x650]
mov rax, qword [rcx]
xor edx, edx
mov qword [r11 + 0x68], rax
mov rax, qword [rcx + 8]
lea r8d, [rdx + 0x7f]
mov qword [r11 + 0x70], rax
mov eax, dword [rcx + 0x10]
lea rcx, [rsp + 0x171]
mov dword [r11 + 0x78], eax
mov byte [rsp + 0x170], r13b
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x1f0]
xor edx, edx
mov r8d, 0x440
call sub.msvcrt.dll_memset
mov r9, qword [rsp + 0x50]
lea r8, [0x10040318]
test r9, r9
lea rcx, [rsp + 0x170]
mov edx, 0x80
cmove r9, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call fcn.100235a0
mov r11d, dword [rsp + 0x44]
lea rcx, [rsp + 0x630]
mov eax, dword [rcx]
lea rdx, [rsp + 0x1f4]
mov dword [rsp + 0x1f0], r11d
mov dword [rdx], eax
mov eax, dword [rcx + 4]
mov dword [rdx + 4], eax
mov eax, dword [rcx + 8]
mov dword [rdx + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [rdx + 0xc], eax
mov eax, dword [rcx + 0x10]
mov dword [rdx + 0x10], eax
mov eax, dword [rcx + 0x14]
mov dword [rdx + 0x14], eax
mov eax, dword [rcx + 0x18]
mov dword [rdx + 0x18], eax
mov eax, dword [rcx + 0x1c]
lea rcx, [rsp + 0x650]
mov dword [rdx + 0x1c], eax
mov eax, dword [rcx]
lea rdx, [rsp + 0x214]
mov dword [rdx], eax
mov eax, dword [rcx + 4]
mov dword [rdx + 4], eax
mov eax, dword [rcx + 8]
mov dword [rdx + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [rdx + 0xc], eax
mov eax, dword [rcx + 0x10]
mov rcx, qword [0x10050988]
mov dword [rdx + 0x10], eax
lea rdx, str.g_center__login_begin
call fcn.1001e840
cmp r12, 7
jbe 0x10017d1d
lea rax, [rsi + 0xe0]
jmp 0x10017d3a
xor eax, eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x630]
lea r13d, [rax + 1]
mov byte [rsp + 0x40], al
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const____ptr64____ptr64]
mov r8d, dword [rsp + 0x44]
lea rcx, [rsi + 0xc0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [0x10050a20]
lea r9, [rsi + 0xa0]
lea rdx, [rsp + 0x48]
call fcn.10006bf0
test al, al
sete bl
test r13b, 1
je 0x10017d81
lea rcx, [rsp + 0x630]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
test bl, bl
je 0x10017dc7
mov rcx, qword [0x10050988]
lea rdx, str.g_center__login_failed
call fcn.1001e840
lea rcx, [rsp + 0x48]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
cmp rsi, rbp
mov rbx, rsi
je 0x10018138
nop
mov rcx, rbx
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
add rbx, 0x20
cmp rbx, rbp
jne 0x10017db0
jmp 0x10018138
mov rcx, qword [0x10050988]
lea rdx, str.login__load_config_from_session.
call fcn.1001e840
mov rcx, qword [0x10050a20]
call fcn.10006140
mov rcx, qword [0x10050988]
lea rdx, str.login__send_enviromnment.
call fcn.1001e840
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov r13, rax
je 0x10017ec4
mov rdi, r14
mov rcx, rax
cmp byte [rax], dil
je 0x10017e2e
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
lea rdi, [rdi + rcx + 1]
cmp byte [rdi + r13], r14b
lea rcx, [rdi + r13]
jne 0x10017e16
mov rcx, qword [0x10050988]
lea rdx, str.login__get_enviromnment_success__env_size_d.
mov r8d, edi
call fcn.1001e840
lea rdx, [rdi + 8]
lea rcx, [rsp + 0x650]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x660], r14
call fcn.10001dd0
mov r11, qword [0x10050a30]
mov rbx, qword [rsp + 0x660]
mov eax, dword [r11 + 0x12c]
lea rcx, [rbx + 8]
mov r8, rdi
mov rdx, r13
mov dword [rbx + 4], edi
mov dword [rbx], eax
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x658]
mov rcx, qword [0x10050a20]
mov r9, rbx
mov edx, 0x10105
mov dword [rsp + 0x20], 2
call fcn.10005f10
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rcx, rbx
call fcn.1003aa90
jmp 0x10017f2d
xor ecx, ecx
call fcn.1001f320
mov rcx, qword [0x10050988]
lea rdx, str.login__get_environment_failed:__s
mov r8, rax
call fcn.1001ebe0
xor eax, eax
mov dword [rsp + 0x160], r14d
mov dword [rsp + 0x164], eax
mov rax, qword [0x10050a30]
lea r9, [rsp + 0x160]
mov ecx, dword [rax + 0x12c]
mov edx, 0x10105
mov r8d, 8
mov dword [rsp + 0x160], ecx
mov rcx, qword [0x10050a20]
mov dword [rsp + 0x20], 2
call fcn.10005f10
mov rcx, qword [0x10050a30]
mov eax, dword [rcx + 0x130]
mov dword [rsp + 0x494], eax
mov eax, dword [rcx + 0x188]
mov dword [rsp + 0x498], eax
mov eax, dword [rcx + 0x18c]
mov dword [rsp + 0x49c], eax
mov eax, dword [rcx + 0x190]
mov ecx, r14d
mov dword [rsp + 0x4a0], eax
mov rax, qword [0x10050a20]
cmp byte [rax + 0x9dc], cl
setne cl
cmp r12, 8
mov dword [rsp + 0x4a4], ecx
jbe 0x10017fb3
mov r9, qword [rsi + 0x108]
lea r8, [0x100403ec]
lea rcx, [rsp + 0x4ac]
test r9, r9
mov edx, 0x80
cmove r9, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call fcn.100235a0
cmp r12, 9
jbe 0x10017fe4
mov r9, qword [rsi + 0x128]
lea r8, [0x100403f0]
lea rcx, [rsp + 0x52c]
test r9, r9
mov edx, 0x80
cmove r9, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call fcn.100235a0
cmp r12, 0xa
jbe 0x10018015
mov r9, qword [rsi + 0x148]
lea r8, [0x100403f4]
lea rcx, [rsp + 0x5ac]
test r9, r9
mov edx, 0x80
cmove r9, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call fcn.100235a0
cmp r12, 0xb
jbe 0x1001803c
mov rcx, qword [rsi + 0x168]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.msvcrt.dll_atoi]
mov dword [rsp + 0x62c], eax
jmp 0x10018043
mov eax, dword [rsp + 0x62c]
mov r9d, dword [rsp + 0x498]
mov r8d, dword [rsp + 0x494]
mov rcx, qword [0x10050988]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x4a4]
lea rdx, str.login__regist_to_session_usrinfo_compress_d__reconn_d__reconn_cnt_d__reconn_intv_d__hostcheck_d__relogin_d_
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x4a0]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x49c]
mov dword [rsp + 0x20], eax
call fcn.1001e840
mov rcx, qword [0x10050a20]
lea r9, [rsp + 0x170]
mov edx, 0x10102
mov r8d, 0x4c0
mov dword [rsp + 0x20], 2
call fcn.10005f10
mov rcx, qword [0x10050988]
lea rdx, str.login__query_vnic_state.
call fcn.1001e840
mov r11, qword [0x10050a30]
mov edx, 0x10204
mov dword [r11 + 0xc0], r14d
mov r9, qword [0x10050a30]
mov rcx, qword [0x10050a20]
add r9, 0xc0
mov r8d, 4
mov dword [rsp + 0x20], 8
call fcn.10005f10
lea rcx, [rsp + 0x48]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rcx, qword [0x10050988]
lea rdx, str.login__leave
call fcn.1001e840
cmp rsi, rbp
mov rbx, rsi
je 0x10018138
mov rcx, rbx
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
add rbx, 0x20
cmp rbx, rbp
jne 0x10018126
mov rcx, rsi
call fcn.1003aa90
mov r14, qword [rsp + 0x670]
mov r13, qword [rsp + 0x678]
mov r12, qword [rsp + 0x680]
mov rdi, qword [rsp + 0x688]
mov rsi, qword [rsp + 0x690]
mov rbp, qword [rsp + 0x6b8]
mov rbx, qword [rsp + 0x6b0]
mov rcx, qword [rsp + 0x668]
call fcn.1003b040
add rsp, 0x698
ret