Function at 0x4d7900
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58d4df
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x603320]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
push esi
push edi
mov eax, dword [0x603320]
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.004d77f0
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 0x4d7a00
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 0x4d79e9
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 0x4d79fc
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.004a7580
cmp dword [esp + 0x50], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x4d7a55
push dword [esp + 0x3c]
call ebx
add esp, 4
push 0x526fc0
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.004b0920
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 0x5a2b98
mov word [ecx], ax
call fcn.0040dd10
mov dword [esp + 0x228], 0xffffffff
mov edx, dword [edi + 0x94]
call fcn.00524c00
mov ecx, dword [0x61e5bc]
lea eax, [esp + 0x6c]
add esp, 0x30
push eax
call fcn.0040d780
mov edx, eax
mov dword [esp + 0x1f8], 1
cmp dword [edx + 0x14], 8
jb 0x4d7af3
mov edx, dword [edx]
mov eax, dword [0x61e5b8]
push ecx
mov ecx, esi
push dword [eax]
call fcn.004df980
add esp, 8
mov dword [esp + 0x1f8], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x4d7b20
push dword [esp + 0x3c]
call ebx
add esp, 4
push 0x4d76b0
call fcn.005312b0
mov ecx, eax
call fcn.0052d740
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 0x124
push str.CPlayerImpl::entrance
call esi
push str._init_application_
push 0x126
push str.CPlayerImpl::entrance
call esi
add esp, 0x1c
push 0x5a7fd8
push str.player_version___s
push 0x127
push str.CPlayerImpl::entrance
call esi
push dword [esp + 0x3c]
push dword [esp + 0x48]
push str.XX__d__YY__d
push 0x129
push str.CPlayerImpl::entrance
call esi
mov ecx, dword [0x61e5bc]
lea eax, [esp + 0x60]
add esp, 0x24
push eax
call fcn.0040d780
mov dword [esp + 0x1f8], 2
cmp dword [eax + 0x14], 8
jb 0x4d7bc4
mov eax, dword [eax]
push eax
mov eax, dword [0x61e5b8]
push dword [eax]
push dword [eax + 4]
push str.product:__s_....._local_language_:__s_..._globalSettings_languageid:__s
push 0x12b
push str.CPlayerImpl::entrance
call esi
add esp, 0x18
mov dword [esp + 0x1f8], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x4d7bfe
push dword [esp + 0x3c]
call ebx
add esp, 4
push str.player__init_crash_report...
push 0x12e
push str.CPlayerImpl::entrance
call esi
add esp, 0xc
call fcn.004a7f50
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 0x4d7c54
push str.it_is_large_streen
push 0x136
push str.CPlayerImpl::entrance
call esi
add esp, 0xc
push 1
call fcn.00537cc0
add esp, 4
push str.player__init_application...
lea eax, [edi + 0x10]
push 0x140
lea ebx, [edi + 4]
mov dword [0x61f218], eax
push str.CPlayerImpl::entrance
mov dword [0x61f214], ebx
call esi
add esp, 0xc
lea ecx, [edi + 0x10]
call fcn.004b2410
test al, al
jne 0x4d7d5e
mov ecx, edi
mov dword [edi + 0x178], ebx
call fcn.004d8c40
mov eax, dword [0x62c368]
test al, 1
jne 0x4d7ccf
or eax, 1
mov dword [0x62c368], eax
mov dword [esp + 0x1f8], 3
call fcn.00491ab0
push 0x597db0
call fcn.00577044
add esp, 4
mov dword [esp + 0x1f8], 0xffffffff
mov ecx, 0x62c370
call fcn.00492110
push str.create_client
push 0x16f
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 [0x61f210], eax
call fcn.004d7e10
mov ecx, 0x61f198
call fcn.004a7d90
mov ecx, 0x61e828
call fcn.00452470
push 0x10
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x4d7d45
mov dword [eax], vtable.MemberFuncRunable_class_CPlayerImpl_.0
mov dword [eax + 4], edi
mov dword [eax + 8], 0x4d8d10
mov dword [eax + 0xc], 0
jmp 0x4d7d47
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.005346f0
push str._exit_application_
push 0x150
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.00525160
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp byte [esp + 0x38], 0
je 0x4d7ddf
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 0x4d7ddf
mov ecx, dword [esp + 0x1c]
mov eax, ecx
shr eax, 2
test al, 1
jne 0x4d7ddf
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.00576f50
mov esp, ebp
pop ebp
ret 8