Function at 0x10011070
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x14c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
push eax
mov eax, dword [0x10053690]
push str._s_enter__ONLINE__state
push eax
call fcn.10026380
mov ebx, dword [ebp + 4]
mov edx, dword [0x10053698]
add ebx, 0x180
add esp, 0xc
mov ecx, dword [ebx + 4]
mov dword [edx], ecx
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
push eax
mov eax, dword [0x10053690]
push str._s_enter__ONLINE__state_send_misc.
push eax
call fcn.10026380
mov ecx, dword [0x10053694]
add esp, 0xc
push 0xfffffffffffffffd
push ebx
call fcn.1000efa0
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
mov ecx, dword [0x10053690]
push eax
push str._s_enter__ONLINE__state_send_svcgroup.
push ecx
call fcn.10026380
mov ecx, dword [0x10053694]
add esp, 0xc
push 0xfffffffffffffffd
push ebx
call fcn.1000f040
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
mov edx, dword [0x10053690]
push eax
push str._s_enter__ONLINE__state_send_svc.
push edx
call fcn.10026380
mov ecx, dword [0x10053694]
add esp, 0xc
push 0xfffffffffffffffd
push ebx
call fcn.1000efd0
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
push eax
mov eax, dword [0x10053690]
push str._s_enter__ONLINE__state_send_svc_ext.
push eax
call fcn.10026380
mov ecx, dword [0x10053694]
add esp, 0xc
push 0x10
push ebx
call fcn.1000f0b0
mov eax, dword [ebx + 0x10d4]
test eax, eax
je 0x100111af
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
mov ecx, dword [0x10053690]
push eax
push str._s_enter__ONLINE__state_send_block_internet.
push ecx
call fcn.10026380
mov ecx, dword [0x10053694]
add esp, 0xc
push 0xfffffffffffffffd
push ebx
call fcn.1000f190
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
mov edx, dword [0x10053690]
push eax
push str._s_enter__ONLINE__state_send_aapp.
push edx
call fcn.10026380
mov ecx, dword [0x10053694]
add esp, 0xc
push 0xfffffffffffffffd
push ebx
call fcn.1000f120
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
push eax
mov eax, dword [0x10053690]
push str._s_enter__ONLINE__state_send_sso_rules.
push eax
call fcn.10026380
mov ecx, dword [0x10053694]
add esp, 0xc
push 0xfffffffffffffffd
push ebx
call fcn.1000f490
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
mov ecx, dword [0x10053690]
push eax
push str._s_enter__ONLINE__state_send_webinfo_rules.
push ecx
call fcn.10026380
mov ecx, dword [0x10053694]
add esp, 0xc
push 4
push ebx
call fcn.1000f340
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
mov edx, dword [0x10053690]
push eax
push str._s_enter__ONLINE__state_send_sso_user_info.
push edx
call fcn.10026380
mov ecx, dword [0x10053694]
add esp, 0xc
push 0xfffffffffffffffd
call fcn.1000f5e0
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
push eax
mov eax, dword [0x10053690]
push str._s_enter__ONLINE__state_send_portal_info.
push eax
call fcn.100263c0
mov ecx, dword [0x10053694]
add esp, 0xc
push 0xfffffffffffffffd
push ebx
call fcn.1000f680
mov ecx, 0x43
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebx
call fcn.100035e0
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
mov edx, dword [0x10053690]
push eax
push str._s_enter__ONLINE__state_send_ha_best_info.
push edx
call fcn.10026380
mov ecx, dword [0x10053694]
add esp, 0xc
lea eax, [esp + 0x4c]
push 0xfffffffffffffffd
push eax
call fcn.1000f810
mov ecx, dword [0x10053694]
push 0x814
push ebx
call fcn.1000f6e0
lea ecx, [esp + 0x4c]
push 0xfffffffffffffffd
push ecx
mov ecx, dword [0x10053694]
call fcn.1000f810
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
mov edx, dword [0x10053690]
push eax
push str._s_enter__ONLINE__state_send_iphost_info.
push edx
call fcn.10026380
mov ecx, dword [0x10053694]
add esp, 0xc
push 0xfffffffffffffffd
push ebx
call fcn.1000f1f0
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
push eax
mov eax, dword [0x10053690]
push str._s_enter__ONLINE__state_start_proxy.
push eax
call fcn.10026380
mov ecx, dword [0x10053694]
add esp, 0xc
push ebx
call fcn.1000f850
mov al, byte [ebx + 0x90e4]
test al, al
je 0x100113c0
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
mov ecx, dword [0x10053690]
push eax
push str._s_enter__ONLINE__state_start_nc.
push ecx
call fcn.10026380
mov ecx, dword [0x10053694]
add esp, 0xc
push 8
push ebx
call fcn.1000f6e0
mov ecx, dword [0x10053694]
push ebx
call fcn.1000f9b0
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
mov edx, dword [0x10053690]
push eax
push str._s_enter__ONLINE__state_start_hp.
push edx
call fcn.10026380
mov ecx, dword [0x10053694]
add esp, 0xc
push 0x10
push ebx
call fcn.1000f310
mov ecx, dword [ebp + 4]
call fcn.1000ca40
test byte [ebx + 0x92c], 4
je 0x10011622
mov esi, dword [ebp + 4]
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x40]
add esi, 0x3a8
mov byte [esp + 0x40], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x40]
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10011467
mov ecx, edi
mov edi, dword [esp + 0x40]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov cl, byte [esp + 0x3c]
sub esp, 0x10
mov edi, esp
xor esi, esi
push esi
mov byte [edi], cl
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x4c]
mov eax, dword [edx]
push eax
push esi
push ecx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea edx, [esp + 0x38]
push edx
call fcn.10008450
mov edi, 0x1004dd14
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 0x1004dd14
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edi, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
cmp edi, ecx
je 0x10011592
mov al, byte [esp + 0x13]
mov esi, ecx
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add edi, 3
push esi
lea ecx, [esp + 0x2c]
push edi
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x18]
mov eax, dword [edx]
push eax
push 0
push ecx
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x1004dd18
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push 0x1004dd18
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x1c], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
lea eax, [esp + 0x2c]
push 0
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x18]
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor esi, esi
mov edi, dword [ebp + 4]
mov ecx, 0x80
xor eax, eax
add edi, 0x3a8
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
cmp eax, esi
jne 0x100115b1
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [ebp + 4]
push eax
push 0x1004dd1c
add ecx, 0x3a8
push 0x200
push ecx
call fcn.1002d190
mov ecx, dword [esp + 0x3c]
add esp, 0x10
cmp ecx, esi
je 0x100115f2
mov al, byte [ecx - 1]
test al, al
je 0x100115e8
cmp al, 0xff
je 0x100115e8
dec al
mov byte [ecx - 1], al
jmp 0x100115f2
dec ecx
push ecx
call fcn.100463e2
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], esi
cmp ecx, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
je 0x10011622
mov al, byte [ecx - 1]
test al, al
je 0x10011618
cmp al, 0xff
je 0x10011618
dec al
mov byte [ecx - 1], al
jmp 0x10011622
dec ecx
push ecx
call fcn.100463e2
add esp, 4
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
mov edx, dword [0x10053690]
push eax
push str._s_enter__ONLINE__state_regist_nsp.
push edx
call fcn.10026380
mov ecx, dword [ebp + 4]
add esp, 0xc
call fcn.1000cad0
mov eax, dword [0x1005368c]
lea ecx, [eax + 8]
call fcn.1000b9a0
mov ecx, dword [ebp + 4]
add ecx, 0x180
call fcn.10002b20
mov ecx, dword [0x10053690]
push eax
push str._s_is_onlined.
push ecx
call fcn.10026380
mov edx, dword [ebp + 4]
add esp, 0xc
mov byte [edx + 0x423a4], 1
mov ecx, dword [0x10053694]
push 0x10
push 4
call fcn.1000ef60
mov cl, byte [ebx + 0x90e4]
mov ebp, dword [ebp + 4]
xor eax, eax
push 0x384
test cl, cl
setne al
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x1250]
lea ebx, [ebp + 0x188]
lea edi, [ebp + 0x3a8]
mov dword [esp + 0x18], eax
add ebp, 0x11d0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x1001187a
push eax
push eax
push 1
push eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov byte [esi + 0xc], al
mov byte [esi + 0xd], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.SExtraLogTask
lea ecx, [esi + 0xe]
push 0x1004ccac
mov dword [esi + 0x90], eax
push ecx
mov dword [esi], 0x100475f4
call dword [sym.imp.MSVCRT.dll_sprintf]
push ebp
lea eax, [esi + 0x96]
push 0x1004ccac
push 0x80
push eax
mov dword [esi], 0x100476ac
call fcn.1002d190
mov edx, dword [esp + 0x30]
push edi
lea ebp, [esi + 0x11c]
push 0x1004ccac
push 0x80
push ebp
mov dword [esi + 0x118], edx
call fcn.1002d190
lea edi, [esi + 0x19c]
mov ecx, 0x20
xor eax, eax
add esp, 0x2c
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100117ba
test ebx, ebx
je 0x100117ba
mov byte [esi + 0x94], 1
lea ecx, [esi + 0x19d]
mov dl, byte [eax + ebx]
add ecx, 2
sar edx, 4
and edx, 0xf
mov dl, byte [edx + 0x10047674]
mov byte [ecx - 3], dl
mov dl, byte [eax + ebx]
and edx, 0xf
inc eax
cmp eax, 0x20
mov dl, byte [edx + 0x10047674]
mov byte [ecx - 2], dl
jb 0x10011784
mov al, byte [esp + 0x38]
mov byte [esi + 0x95], al
jmp 0x100117c8
mov byte [esi + 0x94], 0
mov byte [esi + 0x95], 0
mov ecx, 0x10
xor eax, eax
lea edi, [esi + 0x21c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
call fcn.10035bb0
mov eax, dword [eax + 4]
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x100117f2
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push 0x1004ccac
lea edx, [esi + 0x25c]
push 0x100
push edx
call fcn.1002d190
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp eax, edi
je 0x10011831
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10011828
cmp al, 0xff
je 0x10011828
dec al
mov byte [ecx], al
jmp 0x10011831
push ecx
call fcn.100463e2
add esp, 4
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov ecx, 0xa
xor eax, eax
lea edi, [esi + 0x35c]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x19c]
mov ecx, dword [0x10053690]
push eax
mov eax, dword [esi + 0x118]
push ebp
push eax
lea eax, [esi + 0x96]
push eax
push str._exlog__address_s:_d__username_s__ticket_.16s...
push ecx
call fcn.10026380
add esp, 0x18
xor eax, eax
jmp 0x1001187c
xor esi, esi
mov cl, byte [esi + 0x94]
test cl, cl
je 0x10011910
mov cl, byte [esi + 0xc]
test cl, cl
jne 0x100118f0
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
push edx
push eax
push esi
push 0x10001380
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x14]
mov dword [esi + 8], eax
test eax, eax
mov dword [esi + 4], ecx
jne 0x100119b7
push eax
call fcn.10024ef0
add esp, 4
add esi, 0xe
lea ecx, [esp + 0x38]
push eax
push esi
push str._comm__create_thread__s__failed:__s
push 0x1004c140
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret
mov esi, dword [esi + 0x90]
cmp esi, eax
je 0x100119b7
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret
mov ecx, esi
call fcn.100129f0
xor edi, edi
cmp esi, edi
je 0x100119b7
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
mov dword [esi], 0x100475f4
mov byte [esi + 0xc], 0
je 0x10011995
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10011995
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push eax
mov byte [esi + 0xc], 0
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x14], 0x103
jne 0x10011995
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 8]
push edx
call ebx
mov al, byte [esi + 0xd]
mov dword [esi + 4], edi
test al, al
je 0x10011995
mov ecx, esi
call fcn.1000d1e0
push esi
call fcn.100463e2
add esp, 4
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov eax, dword [esi + 0x90]
cmp eax, edi
je 0x100119a8
push eax
call ebx
push esi
mov dword [esi + 0x90], edi
call fcn.100463e2
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret