Function at 0x4c6c30
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57486f
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x5e2320]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
push esi
push edi
mov eax, dword [0x5e2320]
xor eax, esp
push eax
lea eax, [esp + 0x1f0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x2c]
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], 0
call fcn.004c6b10
push 0
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
push 8
xor bl, bl
movq qword [esp + 0x24], xmm0
push 0x3a
mov dword [esp + 0x48], ebx
mov byte [esp + 0x27], bl
mov dword [esp + 0x28], 8
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x4c6d30
mov edx, dword [esp + 0x1c]
lea esi, [esp + 0x2b]
mov ecx, edx
movzx eax, bl
shr ecx, 2
and cl, 1
mov dword [esp + 0x20], eax
test esi, esi
movzx eax, cl
mov esi, dword [esp + 0x20]
cmovne esi, eax
mov dword [esp + 0x20], esi
test cl, cl
je 0x4c6d19
push 0
lea eax, [esp + 0x1c]
and edx, 0xfffffffb
push eax
push 8
push 0x3b
mov dword [esp + 0x2c], edx
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
setne al
test al, al
je 0x4c6d2c
mov eax, 1
movzx ebx, bl
cmp byte [esp + 0x20], al
cmove ebx, eax
mov dword [esp + 0x38], ebx
mov esi, dword [esp + 0x24]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [esp + 0x54]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0x3c]
call fcn.00498c60
cmp dword [esp + 0x50], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x4c6d85
push dword [esp + 0x3c]
call ebx
add esp, 4
push 0x510b30
call dword [sym.imp.dnutility.dll_public:_static_void___cdecl_utility::global::init_void____cdecl___char_const___int__wchar_t_const___]
add esp, 4
lea ecx, [edi + 0x10]
push dword [esp + 0x30]
call fcn.004a1010
sub esp, 0x18
xor ecx, ecx
mov eax, esp
mov dword [esp + 0x3c], esp
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], cx
mov dword [esp + 0x210], ecx
sub esp, 0x18
mov ecx, esp
xor eax, eax
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x588858
mov word [ecx], ax
call fcn.0040be00
mov dword [esp + 0x228], 0xffffffff
mov edx, dword [edi + 0x94]
call fcn.0050d570
mov ecx, dword [0x5fb704]
lea eax, [esp + 0x6c]
add esp, 0x30
push eax
call fcn.00426980
mov edx, eax
mov dword [esp + 0x1f8], 1
cmp dword [edx + 0x14], 8
jb 0x4c6e23
mov edx, dword [edx]
mov eax, dword [0x5fb70c]
push ecx
mov ecx, esi
push dword [eax]
call fcn.004ce1b0
add esp, 8
mov dword [esp + 0x1f8], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x4c6e50
push dword [esp + 0x3c]
call ebx
add esp, 4
push 0x4c6a10
call fcn.0051ae30
mov ecx, eax
call fcn.005172e0
push dword [edi + 0x94]
call dword [sym.imp.dnplycore.dll_initVbox]
mov esi, dword [sym.imp.dnutility.dll_void___cdecl_utility_log_char_const___int__wchar_t_const__]
add esp, 4
push dword [esp + 0x30]
push str.cmdline_is__s
push 0xd0
push str.CPlayerImpl::entrance
call esi
push str._init_application_
push 0xd2
push str.CPlayerImpl::entrance
call esi
add esp, 0x1c
push 0x58f884
push str.player_version___s
push 0xd3
push str.CPlayerImpl::entrance
call esi
push dword [esp + 0x3c]
push dword [esp + 0x48]
push str.XX__d__YY__d
push 0xd5
push str.CPlayerImpl::entrance
call esi
mov ecx, dword [0x5fb704]
lea eax, [esp + 0x60]
add esp, 0x24
push eax
call fcn.00426980
mov dword [esp + 0x1f8], 2
cmp dword [eax + 0x14], 8
jb 0x4c6ef4
mov eax, dword [eax]
push eax
mov eax, dword [0x5fb70c]
push dword [eax]
push dword [eax + 4]
push str.product:__s_....._local_language_:__s_..._globalSettings_languageid:__s
push 0xd7
push str.CPlayerImpl::entrance
call esi
add esp, 0x18
mov dword [esp + 0x1f8], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x4c6f2e
push dword [esp + 0x3c]
call ebx
add esp, 4
push str.player__init_crash_report...
push 0xda
push str.CPlayerImpl::entrance
call esi
add esp, 0xc
call fcn.00499640
push 0
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll_srand]
add esp, 4
call dword [sym.imp.dnutility.dll_public:_static_bool___cdecl_utility::usystem::isLargeScreen_void_]
test al, al
je 0x4c6f7f
push str.it_is_large_streen
push 0xdf
push str.CPlayerImpl::entrance
call esi
add esp, 0xc
call fcn.00521840
push str.player__init_application...
lea eax, [edi + 0x10]
push 0xe9
lea ebx, [edi + 4]
mov dword [0x5fc180], eax
push str.CPlayerImpl::entrance
mov dword [0x5fc17c], ebx
call esi
add esp, 0xc
lea ecx, [edi + 0x10]
call fcn.004a2a40
test al, al
jne 0x4c707f
mov ecx, edi
mov dword [edi + 0x178], ebx
call fcn.004c7ef0
mov eax, dword [0x609b28]
test al, 1
jne 0x4c6ffa
or eax, 1
mov dword [0x609b28], eax
mov dword [esp + 0x1f8], 3
call fcn.00483eb0
push 0x57e610
call fcn.005601b4
add esp, 4
mov dword [esp + 0x1f8], 0xffffffff
mov ecx, 0x609b30
call fcn.004844d0
push str.create_client
push 0x116
push str.CPlayerImpl::_initClient
call esi
add esp, 0xc
push edi
call dword [sym.imp.dnplycore.dll_createVBoxClient]
add esp, 4
mov dword [edi + 0x190], eax
mov ecx, edi
mov dword [0x5fc178], eax
call fcn.004c7130
mov ecx, 0x5fc100
call fcn.00499480
push 0x10
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x4c7066
mov dword [eax], vtable.MemberFuncRunable_class_CPlayerImpl_.0
mov dword [eax + 4], edi
mov dword [eax + 8], 0x4c7fc0
mov dword [eax + 0xc], 0
jmp 0x4c7068
xor eax, eax
push eax
push 0x1d4c0
lea ecx, [edi + 0x188]
call dword [sym.imp.dnutility.dll_public:_bool___thiscall_utility::Timer::setTimer_unsigned_int__class_Runable__]
call fcn.0051e270
push str._exit_application_
push 0xf7
push str.CPlayerImpl::entrance
call esi
mov eax, dword [ebx]
add esp, 0xc
mov ecx, ebx
call dword [eax]
call dword [sym.imp.dnutility.dll_public:_static_void___cdecl_utility::global::uninit_void_]
call dword [sym.imp.dnplycore.dll_uninitVbox]
call fcn.0050dad0
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp byte [esp + 0x38], 0
je 0x4c7100
mov ebx, dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [esp + 0x18]
push 0
push eax
xorps xmm0, xmm0
push 8
movq qword [esp + 0x24], xmm0
push 0x3a
mov dword [esp + 0x28], 8
call ebx
test eax, eax
je 0x4c7100
mov ecx, dword [esp + 0x1c]
mov eax, ecx
shr eax, 2
test al, 1
jne 0x4c7100
push 0
lea eax, [esp + 0x1c]
or ecx, 4
push eax
push 8
push 0x3b
mov dword [esp + 0x2c], ecx
call ebx
xor eax, eax
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d8]
xor ecx, esp
call fcn.005600c0
mov esp, ebp
pop ebp
ret 8