Function at 0x457950
Capabilities:
Initialize winsock library
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c742f
mov eax, dword fs:[0]
push eax
sub esp, 0xbb8
mov eax, dword [0x503040]
xor eax, esp
mov dword [esp + 0xbb0], eax
push ebx
push esi
push edi
mov eax, dword [0x503040]
xor eax, esp
push eax
lea eax, [esp + 0xbc8]
mov dword fs:[0], eax
mov edi, ecx
push 0x400
lea eax, [esp + 0x7c0]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edx, [esp + 0x7bc]
call fcn.00467f70
lea eax, [esp + 0x7bc]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ebx, [edi + 0x18c]
mov ecx, ebx
call fcn.00411b90
test eax, eax
jne 0x4579e8
push str.config_preInit_failed
call fcn.00414a00
add esp, 4
xor eax, eax
jmp 0x458193
lea ecx, [esp + 0x3bc]
call fcn.00459b90
mov esi, dword [edi + 0x35c]
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x18], esi
call fcn.0049dfa0
lea edx, [edi + 0x534]
mov dword [esp + 0xbd0], 0
cmp dword [edx + 0x14], 0x10
jb 0x457a23
mov edx, dword [edx]
cmp byte [edx], 0
jne 0x457a2c
xor ecx, ecx
jmp 0x457a3e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457a31
sub ecx, esi
mov esi, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1dc]
call fcn.0040f4f0
cmp byte [esp + 0x3bc], 0
jne 0x457a5a
xor ecx, ecx
jmp 0x457a6d
lea ecx, [esp + 0x3bc]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457a64
sub ecx, edx
push ecx
lea eax, [esp + 0x3c0]
push eax
lea ecx, [esp + 0x1f4]
call fcn.0040f4f0
cmp dword [edi + 0x298], 1
lea edx, [edi + 0x2a0]
mov eax, dword [edi + 0x29c]
sete byte [esp + 0x1b8]
mov dword [esp + 0x1bc], eax
xor eax, eax
mov dword [esp + 0x1d0], 0x12c
cmp esi, 1
mov byte [esp + 0x1c4], 0
mov dword [esp + 0x1c0], 4
setne al
mov dword [esp + 0x1c8], 5
inc eax
cmp dword [edx + 0x14], 0x10
mov dword [esp + 0x1cc], eax
jb 0x457ae5
mov edx, dword [edx]
cmp byte [edx], 0
jne 0x457aee
xor ecx, ecx
jmp 0x457afc
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457af3
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x210]
call fcn.0040f4f0
mov eax, dword [edi + 0x2b8]
mov dword [esp + 0x220], eax
mov eax, dword [0x50d4e4]
mov dword [esp + 0x224], 1
test al, 1
jne 0x457b4f
or eax, 1
mov dword [0x50d4e4], eax
call fcn.00476c30
push 0x4d0cf0
mov dword [0x50d4b0], 0x4ddc5c
call fcn.004b7531
add esp, 4
sub esp, 8
lea eax, [esp + 0x1b4]
mov ecx, 0x50d4b0
push eax
call fcn.00476ca0
mov ecx, ebx
call fcn.00411e10
mov ecx, dword [0x50d548]
mov dword [esp + 0x18], eax
test cl, 1
jne 0x457ba6
push 0x3c
or ecx, 1
push 0
push 0x50d54c
mov dword [0x50d548], ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.0042eb30
push 0x4d0c50
call fcn.004b7531
add esp, 4
push ecx
push ebx
mov ecx, 0x50d54c
call fcn.0042da00
mov ecx, edi
mov esi, eax
call fcn.0045a320
cmp dword [esp + 0x18], 0
jne 0x457d88
test esi, esi
je 0x457bdd
push 2
push str.Config_init_failed
call fcn.0042d970
mov ecx, eax
call fcn.0042f1b0
push 0xb0
lea eax, [esp + 0x50]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 4
lea ecx, [esp + 0x54]
call fcn.00418f90
lea eax, [esp + 0x5c]
mov byte [esp + 0xbd0], 1
push str.Config_init_failed
push eax
call fcn.004194f0
add esp, 8
lea eax, [esp + 0x34]
lea ecx, [esp + 0x4c]
push eax
call fcn.00419050
mov esi, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0xbd0], 2
push eax
lea ecx, [esp + 0x50]
call fcn.00419050
mov edi, eax
mov byte [esp + 0xbd0], 3
cmp dword [edi + 0x14], 0x10
mov esi, dword [esi + 0x10]
jb 0x457c4f
mov edi, dword [edi]
mov eax, dword [0x50ddf4]
test al, 1
jne 0x457c8c
or eax, 1
mov dword [0x50ddf4], eax
mov byte [esp + 0xbd0], 4
call fcn.00474420
push 0x4d12c0
mov dword [0x50ddc8], 0x4e0dc0
call fcn.004b7531
add esp, 4
mov byte [esp + 0xbd0], 3
push esi
push edi
push 7
push 0
mov ecx, 0x50ddc8
call fcn.004749d0
cmp dword [esp + 0x30], 0x10
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x457cb2
push dword [esp + 0x1c]
call esi
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
jb 0x457cd7
push dword [esp + 0x34]
call esi
add esp, 4
mov byte [esp + 0xbd0], 0
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x4c], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0x48], eax
test byte [esp + 0xa0], 1
mov dword [esp + 0x64], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
je 0x457d19
mov eax, dword [esp + 0x70]
push dword [eax]
call esi
add esp, 4
push 0
push 0
push 0
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x64]
mov dword [eax], 0
mov eax, dword [esp + 0x84]
mov dword [eax], 0
mov eax, dword [esp + 0x94]
mov dword [eax], 0
and dword [esp + 0xa0], 0xfffffffe
mov dword [esp + 0x9c], 0
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0xb4]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
xor esi, esi
jmp 0x458185
test esi, esi
jne 0x457f67
push 0xb0
lea eax, [esp + 0x100]
push esi
push eax
call sub.MSVCR120.dll_memset
add esp, 4
lea ecx, [esp + 0x104]
call fcn.00418f90
lea eax, [esp + 0x10c]
mov byte [esp + 0xbd0], 5
push str.LogPatternV3_init_failed
push eax
call fcn.004194f0
add esp, 8
lea eax, [esp + 0x34]
lea ecx, [esp + 0xfc]
push eax
call fcn.00419050
mov esi, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0xbd0], 6
push eax
lea ecx, [esp + 0x100]
call fcn.00419050
mov edi, eax
mov byte [esp + 0xbd0], 7
cmp dword [edi + 0x14], 0x10
mov esi, dword [esi + 0x10]
jb 0x457e10
mov edi, dword [edi]
mov eax, dword [0x50ddf4]
test al, 1
jne 0x457e4d
or eax, 1
mov dword [0x50ddf4], eax
mov byte [esp + 0xbd0], 8
call fcn.00474420
push 0x4d12c0
mov dword [0x50ddc8], 0x4e0dc0
call fcn.004b7531
add esp, 4
mov byte [esp + 0xbd0], 7
push esi
push edi
push 7
push 0
mov ecx, 0x50ddc8
call fcn.004749d0
cmp dword [esp + 0x30], 0x10
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x457e73
push dword [esp + 0x1c]
call esi
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
jb 0x457e98
push dword [esp + 0x34]
call esi
add esp, 4
mov byte [esp + 0xbd0], 0
mov eax, dword [esp + 0xfc]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xfc], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0xf8], eax
test byte [esp + 0x150], 1
mov dword [esp + method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
je 0x457eec
mov eax, dword [esp + 0x120]
push dword [eax]
call esi
add esp, 4
push 0
push 0
push 0
lea ecx, [esp + 0x120]
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [esp + 0x124]
lea ecx, [esp + 0x114]
mov dword [eax], 0
mov eax, dword [esp + 0x134]
mov dword [eax], 0
mov eax, dword [esp + 0x144]
mov dword [eax], 0
and dword [esp + 0x150], 0xfffffffe
mov dword [esp + 0x14c], 0
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x11c]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x164]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
xor esi, esi
jmp 0x458185
push 2
push str.Application_Start...
call fcn.0042d970
mov ecx, eax
call fcn.0042f1b0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x457fa0
push 3
push str.CoInitialize_failed_n
call fcn.0042d970
mov ecx, eax
call fcn.0042f1b0
xor esi, esi
jmp 0x458185
push dword [edi + 0x304]
lea esi, [edi + 0x60]
push str.TP_d
push esi
call fcn.0045b3c0
add esp, 0xc
push esi
push str.32770
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x457fe1
push 3
push str.Application_is_open_or_title_init_failed_n
call fcn.0042d970
mov ecx, eax
call fcn.0042f1b0
xor esi, esi
jmp 0x458185
mov ecx, edi
call fcn.004589b0
test eax, eax
jne 0x458006
push 3
push str.LogHelper_init_failed_n
call fcn.0042d970
mov ecx, eax
call fcn.0042f1b0
xor esi, esi
jmp 0x458185
lea eax, [esp + 0x22c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x45803d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CNewThirdpartyServer::Init
push str._s_WSAStartup_Failed___ErrorCode_u_n
call fcn.00437560
add esp, 0xc
xor esi, esi
jmp 0x458185
call fcn.0045ce00
mov esi, eax
push 0xc
push str.schedule.ini
lea ecx, [esi + 0x50]
call fcn.0040f4f0
push ecx
mov ecx, esi
call fcn.0045ce70
call fcn.0043a0e0
mov ecx, edi
call fcn.00458a80
test eax, eax
jne 0x45807f
push str.InitServer_failed_n
call fcn.00437560
add esp, 4
xor esi, esi
jmp 0x458185
cmp dword [edi + 0x2cc], 0
lea eax, [edi + 0x2bc]
je 0x4580f6
cmp dword [eax + 0x14], 0x10
jb 0x458096
mov eax, dword [eax]
push eax
push ecx
call fcn.0049e2e0
add esp, 4
mov ecx, eax
call fcn.0049e960
test eax, eax
je 0x4580e7
sub esp, 0x18
mov dword [esp + 0x30], esp
mov eax, esp
mov dword [eax], vtable.._AV___Func_impl_U___Callable_obj_V_lambda_4489dfd5c4e708cb39e2622d5cac4a32____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
mov dword [eax + 0x10], eax
mov byte [esp + 0xbe8], 0xa
call fcn.0049e2e0
mov ecx, eax
mov byte [esp + 0xbe8], 0
call fcn.0049e630
call fcn.0049e2e0
mov ecx, eax
call fcn.0049e6c0
jmp 0x4580f6
call fcn.004364b0
mov ecx, str.close_time_format_error_
call fcn.00437030
mov eax, dword [edi + 0x348]
cmp eax, 0x200
jge 0x45810a
mov eax, 0x200
jmp 0x458114
mov ecx, 0x800
cmp eax, ecx
cmovg eax, ecx
push eax
call dword [sym.imp.MSVCR120.dll__setmaxstdio]
add esp, 4
mov ecx, edi
push ebx
call fcn.0040fa10
test eax, eax
jne 0x458138
mov ecx, str._s_InitApplicationInfo_Failed___n
call fcn.004375d0
xor esi, esi
jmp 0x458185
cmp dword [ebx + 0x1e0], 0
je 0x458148
mov ecx, edi
call fcn.0045a620
cmp dword [ebx + 0x1e4], 0
je 0x458156
call fcn.00459ca0
push ebx
call fcn.0045a880
call fcn.00437cb0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
call fcn.00421f60
mov ecx, eax
call fcn.00422140
call fcn.00499150
mov ecx, eax
call fcn.00457470
mov esi, 1
lea ecx, [esp + 0x1ac]
call fcn.00458270
mov eax, esi
mov ecx, dword [esp + 0xbc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xbb0]
xor ecx, esp
call fcn.004b73db
mov esp, ebp
pop ebp
ret