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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4caadf
mov eax, dword fs:[0]
push eax
sub esp, 0xbb8
mov eax, dword [0x506040]
xor eax, esp
mov dword [esp + 0xbb0], eax
push ebx
push esi
push edi
mov eax, dword [0x506040]
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.0046b270
lea eax, [esp + 0x7bc]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [edi + 0x18c]
call fcn.00414f30
test eax, eax
jne 0x45aa46
push str.config_preInit_failed
call fcn.00416370
add esp, 4
xor eax, eax
jmp 0x45b1e1
lea ecx, [esp + 0x3bc]
call fcn.0045cd30
mov esi, dword [edi + 0x35c]
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x18], esi
call fcn.004a1240
lea edx, [edi + 0x534]
mov dword [esp + 0xbd0], 0
cmp dword [edx + 0x14], 0x10
jb 0x45aa81
mov edx, dword [edx]
cmp byte [edx], 0
jne 0x45aa8a
xor ecx, ecx
jmp 0x45aa9d
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45aa90
sub ecx, esi
mov esi, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1dc]
call fcn.0040f700
cmp byte [esp + 0x3bc], 0
jne 0x45aab9
xor ecx, ecx
jmp 0x45aacc
lea ecx, [esp + 0x3bc]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45aac3
sub ecx, edx
push ecx
lea eax, [esp + 0x3c0]
push eax
lea ecx, [esp + 0x1f4]
call fcn.0040f700
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 0x45ab44
mov edx, dword [edx]
cmp byte [edx], 0
jne 0x45ab4d
xor ecx, ecx
jmp 0x45ab5b
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ab52
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x210]
call fcn.0040f700
mov eax, dword [edi + 0x2b8]
mov dword [esp + 0x220], eax
mov eax, dword [0x510700]
mov dword [esp + 0x224], 1
test al, 1
jne 0x45abae
or eax, 1
mov dword [0x510700], eax
call fcn.00479fb0
push 0x4d4490
mov dword [0x5106cc], 0x4e0e88
call fcn.004ba7c1
add esp, 4
sub esp, 8
lea eax, [esp + 0x1b4]
mov ecx, 0x5106cc
push eax
call fcn.0047a020
lea ecx, [edi + 0x18c]
call fcn.004151b0
mov ecx, dword [0x510764]
mov ebx, eax
test cl, 1
jne 0x45ac07
push 0x3c
or ecx, 1
push 0
push 0x510768
mov dword [0x510764], ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.00430970
push 0x4d4390
call fcn.004ba7c1
add esp, 4
push ecx
lea eax, [edi + 0x18c]
mov ecx, 0x510768
push eax
call fcn.0042f840
mov ecx, edi
mov esi, eax
call fcn.0045d4c0
test ebx, ebx
jne 0x45adec
test esi, esi
je 0x45ac41
push 2
push str.Config_init_failed
call fcn.0042f7b0
mov ecx, eax
call fcn.00430ff0
push 0xb0
lea eax, [esp + 0x50]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 4
lea ecx, [esp + 0x54]
call fcn.0041ae60
lea eax, [esp + 0x5c]
mov byte [esp + 0xbd0], 1
push str.Config_init_failed
push eax
call fcn.0041b350
add esp, 8
lea eax, [esp + 0x34]
lea ecx, [esp + 0x4c]
push eax
call fcn.0041af20
mov esi, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0xbd0], 2
push eax
lea ecx, [esp + 0x50]
call fcn.0041af20
mov edi, eax
mov byte [esp + 0xbd0], 3
cmp dword [edi + 0x14], 0x10
mov esi, dword [esi + 0x10]
jb 0x45acb3
mov edi, dword [edi]
mov eax, dword [0x511044]
test al, 1
jne 0x45acf0
or eax, 1
mov dword [0x511044], eax
mov byte [esp + 0xbd0], 4
call fcn.004777a0
push 0x4d4a60
mov dword [0x511018], 0x4e4050
call fcn.004ba7c1
add esp, 4
mov byte [esp + 0xbd0], 3
push esi
push edi
push 7
push 0
mov ecx, 0x511018
call fcn.00477d50
cmp dword [esp + 0x30], 0x10
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x45ad16
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 0x45ad3b
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 0x45ad7d
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 0x45b1d3
test esi, esi
jne 0x45afcb
push 0xb0
lea eax, [esp + 0x100]
push esi
push eax
call sub.MSVCR120.dll_memset
add esp, 4
lea ecx, [esp + 0x104]
call fcn.0041ae60
lea eax, [esp + 0x10c]
mov byte [esp + 0xbd0], 5
push str.LogPatternV3_init_failed
push eax
call fcn.0041b350
add esp, 8
lea eax, [esp + 0x34]
lea ecx, [esp + 0xfc]
push eax
call fcn.0041af20
mov esi, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0xbd0], 6
push eax
lea ecx, [esp + 0x100]
call fcn.0041af20
mov edi, eax
mov byte [esp + 0xbd0], 7
cmp dword [edi + 0x14], 0x10
mov esi, dword [esi + 0x10]
jb 0x45ae74
mov edi, dword [edi]
mov eax, dword [0x511044]
test al, 1
jne 0x45aeb1
or eax, 1
mov dword [0x511044], eax
mov byte [esp + 0xbd0], 8
call fcn.004777a0
push 0x4d4a60
mov dword [0x511018], 0x4e4050
call fcn.004ba7c1
add esp, 4
mov byte [esp + 0xbd0], 7
push esi
push edi
push 7
push 0
mov ecx, 0x511018
call fcn.00477d50
cmp dword [esp + 0x30], 0x10
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x45aed7
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 0x45aefc
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 0x45af50
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 0x45b1d3
push 2
push str.Application_Start...
call fcn.0042f7b0
mov ecx, eax
call fcn.00430ff0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x45b004
push 3
push str.CoInitialize_failed_n
call fcn.0042f7b0
mov ecx, eax
call fcn.00430ff0
xor esi, esi
jmp 0x45b1d3
push dword [edi + 0x304]
lea esi, [edi + 0x60]
push str.TP_d
push esi
call fcn.0045e630
add esp, 0xc
push esi
push str.32770
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x45b045
push 3
push str.Application_is_open_or_title_init_failed_n
call fcn.0042f7b0
mov ecx, eax
call fcn.00430ff0
xor esi, esi
jmp 0x45b1d3
mov ecx, edi
call fcn.0045ba00
test eax, eax
jne 0x45b06a
push 3
push str.LogHelper_init_failed_n
call fcn.0042f7b0
mov ecx, eax
call fcn.00430ff0
xor esi, esi
jmp 0x45b1d3
lea eax, [esp + 0x22c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x45b0a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CNewThirdpartyServer::Init
push str._s_WSAStartup_Failed___ErrorCode_u_n
call fcn.00439b00
add esp, 0xc
xor esi, esi
jmp 0x45b1d3
call fcn.00460080
mov esi, eax
push 0xc
push str.schedule.ini
lea ecx, [esi + 0x50]
call fcn.0040f700
push ecx
mov ecx, esi
call fcn.004600f0
call fcn.0043c680
mov ecx, edi
call fcn.0045bad0
test eax, eax
jne 0x45b0e3
push str.InitServer_failed_n
call fcn.00439b00
add esp, 4
xor esi, esi
jmp 0x45b1d3
cmp dword [edi + 0x2cc], 0
lea eax, [edi + 0x2bc]
je 0x45b15a
cmp dword [eax + 0x14], 0x10
jb 0x45b0fa
mov eax, dword [eax]
push eax
push ecx
call fcn.004a1580
add esp, 4
mov ecx, eax
call fcn.004a1c00
test eax, eax
je 0x45b14b
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.004a1580
mov ecx, eax
mov byte [esp + 0xbe8], 0
call fcn.004a18d0
call fcn.004a1580
mov ecx, eax
call fcn.004a1960
jmp 0x45b15a
call fcn.00438a60
mov ecx, str.close_time_format_error_
call fcn.004395d0
mov eax, dword [edi + 0x348]
cmp eax, 0x200
jge 0x45b16e
mov eax, 0x200
jmp 0x45b178
mov ecx, 0x800
cmp eax, ecx
cmovg eax, ecx
push eax
call dword [sym.imp.MSVCR120.dll__setmaxstdio]
add esp, 4
lea ebx, [edi + 0x18c]
mov ecx, edi
push ebx
call fcn.0040fc20
test eax, eax
jne 0x45b1a2
mov ecx, str._s_InitApplicationInfo_Failed___n
call fcn.00439b70
xor esi, esi
jmp 0x45b1d3
push ebx
mov ecx, edi
call fcn.0045dac0
call fcn.0043a250
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
call fcn.00423d80
mov ecx, eax
call fcn.00423f60
call fcn.0049c3f0
mov ecx, eax
call fcn.0045a4b0
mov esi, 1
lea ecx, [esp + 0x1ac]
call fcn.0045b2c0
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.004ba66b
mov esp, ebp
pop ebp
ret