Function at 0x513fa0
Capabilities:
Initialize winsock library
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60e5fd
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x6af320]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x6af320]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x38], esi
call fcn.00579a20
add esp, 4
push str.leidiandisable_auto_select_gpu
push eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x278], 0
push eax
call fcn.004256f0
add esp, 0xc
mov byte [esp + 0x270], 2
cmp dword [esp + 0x98], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x514045
push dword [esp + 0x84]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x98], 7
cmp dword [esp + 0xc8], 8
mov word [esp + 0x84], ax
lea eax, [esp + 0xb4]
cmovae eax, dword [esp + 0xb4]
push 0
push eax
mov dword [esp + 0x9c], 0
call dword [sym.imp.MSVCR120.dll__waccess]
add esp, 8
test eax, eax
jne 0x514096
mov dword [sym.dnplayer.exe_NvOptimusEnablement], eax
mov dword [sym.dnplayer.exe_AmdPowerXpressRequestHighPerformance], eax
lea edx, [esp + 0x28]
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.00513e90
push 0
lea eax, [esp + 0x20]
mov byte [esp + 0x34], 0
push eax
xorps xmm0, xmm0
mov byte [esp + 0x1f], 0
push 8
movq qword [esp + 0x28], xmm0
push 0x3a
mov dword [esp + 0x2c], 8
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x51414c
mov edx, dword [esp + 0x20]
lea esi, [esp + 0x2f]
movzx eax, byte [esp + 0x17]
mov ecx, edx
shr ecx, 2
and cl, 1
mov dword [esp + 0x24], eax
test esi, esi
movzx eax, cl
mov esi, dword [esp + 0x24]
cmovne esi, eax
mov dword [esp + 0x24], esi
test cl, cl
je 0x514131
push 0
lea eax, [esp + 0x20]
and edx, 0xfffffffb
push eax
push 8
push 0x3b
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
setne al
test al, al
je 0x514148
mov eax, dword [esp + 0x30]
mov ecx, 1
cmp byte [esp + 0x24], cl
movzx eax, al
cmove eax, ecx
mov dword [esp + 0x30], eax
mov esi, dword [esp + 0x34]
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 + 0xcc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0x3c]
call fcn.00513420
cmp dword [esp + 0x50], 8
jb 0x51419e
push dword [esp + 0x3c]
call edi
add esp, 4
call fcn.0056c8d0
push dword [esp + 0x38]
lea ecx, [ebx + 0x10]
call fcn.004ec0c0
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x6304a0
call fcn.00413780
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x54], ecx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
push 0x6304a0
push 0x6304a0
mov byte [esp + 0x2a8], 4
call fcn.0042dd60
mov byte [esp + 0x2a0], 3
mov byte [esp + 0x2a0], 2
mov edx, dword [ebx + 0xf8]
push ecx
call fcn.0059f470
add esp, 0x34
mov dword [esp + 0x50], 7
xor eax, eax
mov dword [esp + 0x4c], 0
lea ecx, [esp + 0x3c]
mov word [esp + 0x3c], ax
push 0x22
push str.20160302_cccc_dddd_aa99_0000_08x
call fcn.00413650
mov byte [esp + 0x270], 5
lea ecx, [esp + 0x9c]
push 0x22
xor eax, eax
mov dword [esp + 0xb4], 7
push str.20160302_cccc_dddd_ba99_0000_08x
mov dword [esp + 0xb4], 0
mov word [esp + 0xa4], ax
call fcn.00413650
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xa4]
mov byte [esp + 0x278], 6
push eax
mov ecx, 0x6d6958
call fcn.00413280
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x44]
mov ecx, 0x6d6970
push eax
call fcn.00413280
cmp dword [esp + 0xb0], 8
jb 0x5142bd
push dword [esp + 0x9c]
call edi
add esp, 4
xor eax, eax
mov byte [esp + 0x270], 2
cmp dword [esp + 0x50], 8
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], 0
mov word [esp + 0x9c], ax
jb 0x5142f5
push dword [esp + 0x3c]
call edi
add esp, 4
lea eax, [esp + 0x3c]
mov ecx, 0x6d69a0
push eax
call fcn.0042eaa0
mov edx, eax
mov byte [esp + 0x270], 7
cmp dword [edx + 0x14], 8
jb 0x514316
mov edx, dword [edx]
mov eax, dword [0x6d4784]
sub esp, 8
mov ecx, esi
push dword [eax]
call fcn.0051ee20
add esp, 0xc
mov byte [esp + 0x270], 2
cmp dword [esp + 0x50], 8
jb 0x514342
push dword [esp + 0x3c]
call edi
add esp, 4
push 0x513d90
call fcn.005aacc0
mov ecx, eax
call fcn.005a7150
lea eax, [esp + 0x6c]
mov ecx, 0x6d69a0
push eax
call fcn.0051ed80
mov byte [esp + 0x270], 8
cmp dword [esp + 0x7c], 0
jne 0x5144a7
mov eax, dword [0x6d4784]
mov edx, dword [eax + 0x30]
cmp word [edx], 0
jne 0x514387
xor ecx, ecx
jmp 0x51439f
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x514390
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x74]
call fcn.00413650
push 3
push 0
push 0x658a78
lea ecx, [esp + 0x78]
call fcn.00424e90
push 0xa
push 0
push str..ldmnq.com
lea ecx, [esp + 0x78]
mov esi, eax
call fcn.00424e90
sub eax, esi
lea ecx, [esp + 0x6c]
push eax
push esi
lea eax, [esp + 0x8c]
push eax
call fcn.00424dd0
mov esi, eax
lea eax, [esp + 0x6c]
cmp eax, esi
je 0x514429
cmp dword [esp + 0x80], 8
jb 0x514402
push dword [esp + 0x6c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
push esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x80], 0
mov word [esp + 0x70], ax
call fcn.00417ff0
cmp dword [esp + 0x98], 8
jb 0x51443f
push dword [esp + 0x84]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x44], ax
lea ecx, [esp + 0x44]
lea eax, [esp + 0x74]
mov dword [esp + 0x54], 0
push eax
call fcn.00413280
lea eax, [esp + 0x3c]
mov byte [esp + 0x270], 9
mov ecx, dword [0x6d69bc]
push eax
push str.strp
call fcn.0042e720
mov byte [esp + 0x270], 8
cmp dword [esp + 0x50], 8
jb 0x51449c
push dword [esp + 0x3c]
call edi
add esp, 4
mov ecx, dword [0x6d69bc]
call fcn.005942a0
push dword [ebx + 0xf8]
call dword [sym.imp.dnplycore.dll_initVbox]
add esp, 4
push dword [esp + 0x38]
push str.cmdline_is__s
push 0x150
push str.CPlayerImpl::entrance
call fcn.0056c830
push str._init_application_
push 0x152
push str.CPlayerImpl::entrance
call fcn.0056c830
add esp, 0x1c
push str.0900005701
push str.player_version___s
push 0x153
push str.CPlayerImpl::entrance
call fcn.0056c830
push dword [esp + 0x38]
push dword [esp + 0x2c]
push str.XX__d__YY__d
push 0x155
push str.CPlayerImpl::entrance
call fcn.0056c830
add esp, 0x24
lea eax, [esp + 0x84]
mov ecx, 0x6d69a0
push eax
call fcn.0042eaa0
mov byte [esp + 0x270], 0xa
cmp dword [eax + 0x14], 8
jb 0x51453f
mov eax, dword [eax]
push eax
mov eax, dword [0x6d4784]
push dword [eax]
push dword [eax + 4]
push str.product:__s_....._local_language_:__s_..._globalSettings_languageid:__s
push 0x157
push str.CPlayerImpl::entrance
call fcn.0056c830
add esp, 0x18
mov byte [esp + 0x270], 8
cmp dword [esp + 0x98], 8
jb 0x51457f
push dword [esp + 0x84]
call edi
add esp, 4
push str.player__init_crash_report...
push 0x15a
push str.CPlayerImpl::entrance
call fcn.0056c830
add esp, 0xc
call fcn.004e0740
push 0
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll_srand]
add esp, 4
push 3
call dword [sym.imp.libcurl.dll_curl_global_init]
add esp, 4
mov ecx, 0x6d69c4
call fcn.0051ed30
cmp eax, 0xffffffff
jne 0x5145d3
call fcn.005751e0
test al, al
jne 0x5145e2
mov ecx, 0x6d69c4
call fcn.0051ed30
cmp eax, 1
jne 0x514603
push 1
call fcn.005b1950
add esp, 4
push str.it_is_a_large_streen
push 0x163
push str.CPlayerImpl::entrance
call fcn.0056c830
add esp, 0xc
lea esi, [ebx + 4]
lea eax, [ebx + 0x10]
mov dword [esp + 0x18], esi
mov dword [0x6d5a5c], esi
mov dword [0x6d5a60], eax
call fcn.004e6ed0
call fcn.004e7150
lea ecx, [ebx + 0x10]
call fcn.004ecdb0
push str.player__init_application...
push 0x170
push str.CPlayerImpl::entrance
call fcn.0056c830
xor eax, eax
mov dword [esp + 0x74], 7
add esp, 0xc
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
lea ecx, [ebx + 0x10]
mov byte [esp + 0x270], 0x1a
call fcn.004ee7e0
test al, al
jne 0x514974
mov ecx, ebx
mov dword [ebx + 0x228], esi
call fcn.00516140
lea eax, [esp + 0x3c]
mov ecx, 0x6d59e0
push eax
call fcn.004e8b30
cmp dword [esp + 0x50], 8
jb 0x51469c
push dword [esp + 0x3c]
call edi
add esp, 4
mov eax, dword [0x6e6098]
test al, 1
jne 0x5146cf
or eax, 1
mov dword [0x6e6098], eax
mov byte [esp + 0x270], 0x1b
call fcn.004ccd10
push 0x6211e0
call fcn.005f25d4
add esp, 4
mov byte [esp + 0x270], 0x1a
mov ecx, 0x6e60a0
call fcn.004cd370
lea eax, [esp + 0x84]
push eax
call fcn.00579910
add esp, 4
push 6
push str.fonts_
lea ecx, [esp + 0x8c]
mov byte [esp + 0x278], 0x1c
call fcn.004245a0
push str.Noto_Sans
lea ecx, [esp + 0x40]
call fcn.00413780
mov esi, eax
mov byte [esp + 0x270], 0x1d
mov ecx, dword [0x6d4784]
mov edx, dword [ecx + 0x6c]
cmp word [edx], 0
jne 0x51472f
xor ecx, ecx
jmp 0x514751
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x28], eax
jmp 0x514740
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x514740
sub ecx, dword [esp + 0x28]
sar ecx, 1
push ecx
push edx
push dword [esi + 0x10]
mov ecx, esi
push 0
call fcn.00417250
test eax, eax
mov byte [esp + 0x270], 0x1c
sete al
cmp dword [esp + 0x50], 8
mov byte [esp + 0x17], al
jb 0x514784
push dword [esp + 0x3c]
call edi
mov al, byte [esp + 0x1b]
add esp, 4
lea edx, [esp + 0x84]
lea ecx, [esp + 0x3c]
test al, al
je 0x51481e
push str.NotoSans_Regular.otf
call fcn.00425c20
mov esi, eax
add esp, 4
lea eax, [esp + 0x54]
cmp eax, esi
je 0x5147df
cmp dword [esp + 0x68], 8
jb 0x5147be
push dword [esp + 0x54]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
push esi
lea ecx, [esp + 0x58]
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
call fcn.00417ff0
cmp dword [esp + 0x50], 8
jb 0x5147ef
push dword [esp + 0x3c]
call edi
add esp, 4
cmp dword [esp + 0x68], 8
lea eax, [esp + 0x54]
push 0
cmovae eax, dword [esp + 0x58]
push 0x10
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.load_Noto_Sans_fonts_ret:_d__error:_d
push 0x17d
jmp 0x514872
push str.Roboto_Regular.otf
call fcn.00425c20
add esp, 4
lea ecx, [esp + 0x54]
push eax
call fcn.00430160
cmp dword [esp + 0x50], 8
jb 0x514845
push dword [esp + 0x3c]
call edi
add esp, 4
cmp dword [esp + 0x68], 8
lea eax, [esp + 0x54]
push 0
cmovae eax, dword [esp + 0x58]
push 0x10
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.load_Roboto_fonts_ret:__d__error:_d
push 0x182
push str.CPlayerImpl::entrance
call fcn.0056c830
add esp, 0x14
lea ecx, [ebx + 0x278]
mov dword [0x6d5c80], ecx
call fcn.0054a9c0
push str.create_client
push 0x1be
push str.CPlayerImpl::_initClient
call fcn.0056c830
add esp, 0xc
push ebx
call dword [sym.imp.dnplycore.dll_createVBoxClient]
add esp, 4
mov dword [ebx + 0x268], eax
mov ecx, ebx
mov dword [0x6d5a58], eax
call fcn.00514ab0
mov ecx, 0x6d59e0
call fcn.004e0590
mov ecx, 0x6d4bd0
call fcn.00452390
mov ecx, 0x6d58a8
call fcn.00487de0
cmp byte [0x6d5b64], 0
je 0x514908
push str.run_from_space_
push 0xf0
push str.vbox::CStatisticsImpl::setFromSpace
call fcn.0056c830
add esp, 0xc
mov byte [ebx + 0x391], 1
mov ecx, 0x6d5f90
call fcn.0054a350
push 0x10
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x51493a
mov dword [eax], vtable.MemberFuncRunable_class_CPlayerImpl_.0
mov dword [eax + 4], ebx
mov dword [eax + 8], 0x516200
mov dword [eax + 0xc], 0
jmp 0x51493c
xor eax, eax
push eax
push 0x1d4c0
lea ecx, [ebx + 0x25c]
call fcn.0056ca10
call fcn.005ae0f0
mov byte [esp + 0x270], 0x1a
cmp dword [esp + 0x98], 8
jb 0x514970
push dword [esp + 0x84]
call edi
add esp, 4
mov esi, dword [esp + 0x18]
push str._exit_application_
push 0x19e
push str.CPlayerImpl::entrance
call fcn.0056c830
add esp, 0xc
lea eax, [esp + 0x54]
cmp dword [esp + 0x68], 8
cmovae eax, dword [esp + 0x54]
push eax
call dword [sym.imp.GDI32.dll_RemoveFontResourceW]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
call fcn.0056c8f0
call dword [sym.imp.dnplycore.dll_uninitVbox]
mov dword [0x6af478], 0xffffffff
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp byte [esp + 0x30], 0
je 0x514a11
mov ebx, dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [esp + 0x1c]
push 0
push eax
xorps xmm0, xmm0
push 8
movq qword [esp + 0x28], xmm0
push 0x3a
mov dword [esp + 0x2c], 8
call ebx
test eax, eax
je 0x514a11
mov ecx, dword [esp + 0x20]
mov eax, ecx
shr eax, 2
test al, 1
jne 0x514a11
push 0
lea eax, [esp + 0x20]
or ecx, 4
push eax
push 8
push 0x3b
mov dword [esp + 0x30], ecx
call ebx
cmp dword [esp + 0x68], 8
jb 0x514a21
push dword [esp + 0x54]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
cmp dword [esp + 0x80], 8
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
jb 0x514a4b
push dword [esp + 0x6c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
cmp dword [esp + 0xc8], 8
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
jb 0x514a7b
push dword [esp + 0xb4]
call edi
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.005f24e0
mov esp, ebp
pop ebp
ret 8