Function at 0x522790
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62ef43
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x6d8314]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x6d8314]
xor eax, esp
push eax
lea eax, [esp + 0x280]
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 + 0x3c]
push eax
mov dword [esp + 0x38], esi
call fcn.00598a30
add esp, 4
push str.leidiandisable_auto_select_gpu
push eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x290], 0
push eax
call fcn.00428f60
add esp, 0xc
mov byte [esp + 0x288], 2
cmp dword [esp + 0x50], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x52282c
push dword [esp + 0x3c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
cmp dword [esp + 0xc8], 8
mov word [esp + 0x3c], ax
lea eax, [esp + 0xb4]
cmovae eax, dword [esp + 0xb4]
push 0
push eax
mov dword [esp + 0x54], 0
call dword [sym.imp.MSVCR120.dll__waccess]
add esp, 8
test eax, eax
jne 0x522874
mov dword [sym.dnplayer.exe_NvOptimusEnablement], eax
mov dword [sym.dnplayer.exe_AmdPowerXpressRequestHighPerformance], eax
lea edx, [esp + 0x28]
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], 0
call fcn.00522670
push 0
lea eax, [esp + 0x1c]
mov byte [esp + 0x30], 0
push eax
xorps xmm0, xmm0
mov byte [esp + 0x1f], 0
push 8
movq qword [esp + 0x24], xmm0
push 0x3a
mov dword [esp + 0x28], 8
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x52292a
mov edx, dword [esp + 0x1c]
lea esi, [esp + 0x33]
movzx eax, byte [esp + 0x17]
mov ecx, edx
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 0x52290f
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 0x522926
mov eax, dword [esp + 0x2c]
mov ecx, 1
cmp byte [esp + 0x20], cl
movzx eax, al
cmove eax, ecx
mov dword [esp + 0x2c], 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 + 0xe4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0x54]
call fcn.00521ab0
cmp dword [esp + 0x68], 8
jb 0x52297c
push dword [esp + 0x54]
call edi
add esp, 4
call fcn.00584ae0
push dword [esp + 0x38]
lea ecx, [ebx + 0x10]
call fcn.004f9ef0
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x6523fc
call fcn.00415d10
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x50], ecx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
push 0x6523fc
push 0x6523fc
mov byte [esp + 0x2c0], 4
call fcn.00431920
mov byte [esp + 0x2b8], 3
mov byte [esp + 0x2b8], 2
mov edx, dword [ebx + 0xf8]
push ecx
call fcn.005be670
add esp, 0x34
mov dword [esp + 0x68], 7
xor eax, eax
mov dword [esp + 0x64], 0
lea ecx, [esp + 0x54]
mov word [esp + 0x54], ax
push 0x22
push str.20160302_cccc_dddd_aa99_0000_08x
call fcn.00415c10
mov byte [esp + 0x288], 5
lea ecx, [esp + 0x84]
push 0x22
xor eax, eax
mov dword [esp + 0x9c], 7
push str.20160302_cccc_dddd_ba99_0000_08x
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
call fcn.00415c10
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x8c]
mov byte [esp + 0x290], 6
push eax
mov ecx, 0x701c28
call fcn.00414cd0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x5c]
mov ecx, 0x701c40
push eax
call fcn.00414cd0
cmp dword [esp + 0x98], 8
jb 0x522a9b
push dword [esp + 0x84]
call edi
add esp, 4
xor eax, eax
mov byte [esp + 0x288], 2
cmp dword [esp + 0x68], 8
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], 0
mov word [esp + 0x84], ax
jb 0x522ad3
push dword [esp + 0x54]
call edi
add esp, 4
lea eax, [esp + 0x54]
mov ecx, 0x701c70
push eax
call fcn.00432660
mov edx, eax
mov byte [esp + 0x288], 7
cmp dword [edx + 0x14], 8
jb 0x522af4
mov edx, dword [edx]
mov eax, dword [0x6ff92c]
sub esp, 8
mov ecx, esi
push dword [eax]
call fcn.0052e720
add esp, 0xc
mov byte [esp + 0x288], 2
cmp dword [esp + 0x68], 8
jb 0x522b20
push dword [esp + 0x54]
call edi
add esp, 4
push 0x522570
call fcn.005caaf0
mov ecx, eax
call fcn.005c61f0
lea eax, [esp + 0x9c]
mov ecx, 0x701c70
push eax
call fcn.0052e680
mov byte [esp + 0x288], 8
cmp dword [esp + 0xac], 0
jne 0x522c66
mov eax, dword [0x6ff92c]
mov edx, dword [eax + 0x30]
cmp word [edx], 0
jne 0x522b6b
xor ecx, ecx
jmp 0x522b7f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x522b70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xa4]
call fcn.00415c10
push 3
push 0
push 0x67c558
lea ecx, [esp + 0xa8]
call fcn.00428d20
push 0xa
push 0
push str..ldmnq.com
lea ecx, [esp + 0xa8]
mov esi, eax
call fcn.00428d20
test esi, esi
jle 0x522c66
cmp eax, esi
jle 0x522c66
sub eax, esi
lea ecx, [esp + 0x9c]
push eax
push esi
lea eax, [esp + 0x44]
push eax
call fcn.00428c60
push eax
lea ecx, [esp + 0xa0]
call fcn.00433dd0
cmp dword [esp + 0x50], 8
jb 0x522bfb
push dword [esp + 0x3c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x5c], ax
lea ecx, [esp + 0x5c]
lea eax, [esp + 0xa4]
mov dword [esp + 0x6c], 0
push eax
call fcn.00414cd0
lea eax, [esp + 0x54]
mov byte [esp + 0x288], 9
mov ecx, dword [0x701c8c]
push eax
push str.strp
call fcn.004322e0
mov byte [esp + 0x288], 8
cmp dword [esp + 0x68], 8
jb 0x522c5b
push dword [esp + 0x54]
call edi
add esp, 4
mov ecx, dword [0x701c8c]
call fcn.005b3410
push dword [ebx + 0xf8]
call dword [sym.imp.dnplycore.dll_initVbox]
add esp, 4
push dword [esp + 0x38]
push str.cmdline_is__s
push 0x156
push str.CPlayerImpl::entrance
call fcn.00584a40
push str._init_application_
push 0x158
push str.CPlayerImpl::entrance
call fcn.00584a40
add esp, 0x1c
push str.0900006801
push str.player_version___s
push 0x159
push str.CPlayerImpl::entrance
call fcn.00584a40
push dword [esp + 0x38]
push dword [esp + 0x38]
push str.XX__d__YY__d
push 0x15b
push str.CPlayerImpl::entrance
call fcn.00584a40
add esp, 0x24
lea eax, [esp + 0x3c]
mov ecx, 0x701c70
push eax
call fcn.00432660
mov byte [esp + 0x288], 0xa
cmp dword [eax + 0x14], 8
jb 0x522cfb
mov eax, dword [eax]
push eax
mov eax, dword [0x6ff92c]
push dword [eax]
push dword [eax + 4]
push str.product:__s_....._local_language_:__s_..._globalSettings_languageid:__s
push 0x15d
push str.CPlayerImpl::entrance
call fcn.00584a40
add esp, 0x18
mov byte [esp + 0x288], 8
cmp dword [esp + 0x50], 8
jb 0x522d35
push dword [esp + 0x3c]
call edi
add esp, 4
push str.player__init_crash_report...
push 0x160
push str.CPlayerImpl::entrance
call fcn.00584a40
add esp, 0xc
call fcn.004ee000
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, 0x701c94
call fcn.0052e630
cmp eax, 0xffffffff
jne 0x522d89
call fcn.00593460
test al, al
jne 0x522d98
mov ecx, 0x701c94
call fcn.0052e630
cmp eax, 1
jne 0x522db9
push 1
call fcn.005d1780
add esp, 4
push str.it_is_a_large_streen
push 0x169
push str.CPlayerImpl::entrance
call fcn.00584a40
add esp, 0xc
lea esi, [ebx + 4]
lea eax, [ebx + 0x10]
mov dword [esp + 0x24], esi
mov dword [0x700cec], esi
mov dword [0x700cf0], eax
call fcn.004f4a30
call fcn.004f4cb0
call fcn.004f4ec0
lea ecx, [ebx + 0x10]
call fcn.004faf50
push str.player__init_application...
push 0x177
push str.CPlayerImpl::entrance
call fcn.00584a40
xor eax, eax
mov dword [esp + 0x8c], 7
add esp, 0xc
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
lea ecx, [ebx + 0x10]
mov byte [esp + 0x288], 0x1a
call fcn.004fce60
test al, al
jne 0x52319b
mov ecx, ebx
mov dword [ebx + 0x248], esi
call fcn.00524b00
lea eax, [esp + 0xcc]
mov ecx, 0x700c70
push eax
call fcn.004f6450
mov byte [esp + 0x288], 0x1b
mov eax, dword [0x712c68]
test al, 1
jne 0x522e88
or eax, 1
mov dword [0x712c68], eax
mov byte [esp + 0x288], 0x1c
call fcn.004d8260
push 0x6430f0
call fcn.0061181b
add esp, 4
mov byte [esp + 0x288], 0x1b
lea eax, [esp + 0x3c]
mov ecx, 0x701c70
push eax
call fcn.0043e6d0
mov esi, eax
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xd4]
mov byte [esp + 0x290], 0x1d
push eax
mov ecx, 0x7009ec
call fcn.00414cd0
cmp esi, 0x7009d4
je 0x522ece
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x7009d4
call fcn.00414cd0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov byte [esp + 0x288], 0x1b
cmp dword [esp + 0x50], 8
mov dword [0x7009d0], eax
jb 0x522ef9
push dword [esp + 0x3c]
call edi
add esp, 4
lea eax, [esp + 0x84]
push eax
call fcn.00598920
add esp, 4
push 6
push str.fonts_
lea ecx, [esp + 0x8c]
mov byte [esp + 0x290], 0x1e
call fcn.00428400
push str.Noto_Sans
lea ecx, [esp + 0x40]
call fcn.00415d10
mov esi, eax
mov byte [esp + 0x288], 0x1f
mov ecx, dword [0x6ff92c]
mov edx, dword [ecx + 0x6c]
cmp word [edx], 0
jne 0x522f4f
xor ecx, ecx
jmp 0x522f71
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x28], eax
jmp 0x522f60
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x522f60
sub ecx, dword [esp + 0x28]
sar ecx, 1
push ecx
push edx
push dword [esi + 0x10]
mov ecx, esi
push 0
call fcn.004140b0
test eax, eax
mov byte [esp + 0x288], 0x1e
sete al
cmp dword [esp + 0x50], 8
mov byte [esp + 0x17], al
jb 0x522fa4
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 0x52300c
push str.NotoSans_Regular.otf
call fcn.00429ac0
add esp, 4
lea ecx, [esp + 0x6c]
push eax
call fcn.00433dd0
cmp dword [esp + 0x50], 8
jb 0x522fda
push dword [esp + 0x3c]
call edi
add esp, 4
cmp dword [esp + 0x80], 8
lea eax, [esp + 0x6c]
push 0
cmovae eax, dword [esp + 0x70]
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 0x185
jmp 0x523063
push str.Roboto_Regular.otf
call fcn.00429ac0
add esp, 4
lea ecx, [esp + 0x6c]
push eax
call fcn.00433dd0
cmp dword [esp + 0x50], 8
jb 0x523033
push dword [esp + 0x3c]
call edi
add esp, 4
cmp dword [esp + 0x80], 8
lea eax, [esp + 0x6c]
push 0
cmovae eax, dword [esp + 0x70]
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 0x18a
push str.CPlayerImpl::entrance
call fcn.00584a40
add esp, 0x14
lea ecx, [ebx + 0x2f8]
mov dword [0x700f10], ecx
call fcn.00561e20
push str.create_client
push 0x1c6
push str.CPlayerImpl::_initClient
call fcn.00584a40
add esp, 0xc
push ebx
call dword [sym.imp.dnplycore.dll_createVBoxClient]
add esp, 4
mov dword [ebx + 0x2e4], eax
mov ecx, ebx
mov dword [0x700ce8], eax
call fcn.005232e0
mov ecx, 0x700c70
call fcn.004eddf0
mov ecx, 0x6ffda0
call fcn.00458650
mov ecx, 0x700908
call fcn.0048d500
cmp byte [0x700df4], 0
je 0x5230f9
push str.run_from_space_
push 0xfb
push str.vbox::CStatisticsImpl::setFromSpace
call fcn.00584a40
add esp, 0xc
mov byte [ebx + 0x411], 1
mov ecx, 0x701220
call fcn.0055f530
push 0x10
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x52312b
mov dword [eax], vtable.MemberFuncRunable_class_CPlayerImpl_.0
mov dword [eax + 4], ebx
mov dword [eax + 8], 0x524bc0
mov dword [eax + 0xc], 0
jmp 0x52312d
xor eax, eax
push eax
push 0x1d4c0
lea ecx, [ebx + 0x27c]
call fcn.00584c20
call fcn.005cdf20
cmp dword [esp + 0x98], 8
jb 0x523159
push dword [esp + 0x84]
call edi
add esp, 4
xor eax, eax
mov byte [esp + 0x288], 0x1a
cmp dword [esp + 0xe0], 8
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], 0
mov word [esp + 0x84], ax
jb 0x523197
push dword [esp + 0xcc]
call edi
add esp, 4
mov esi, dword [esp + 0x24]
push str._exit_application_
push 0x1a6
push str.CPlayerImpl::entrance
call fcn.00584a40
add esp, 0xc
lea eax, [esp + 0x6c]
cmp dword [esp + 0x80], 8
cmovae eax, dword [esp + 0x6c]
push eax
call dword [sym.imp.GDI32.dll_RemoveFontResourceW]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
call fcn.00584b00
call dword [sym.imp.dnplycore.dll_uninitVbox]
mov dword [0x6d846c], 0xffffffff
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp byte [esp + 0x2c], 0
je 0x52323b
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 0x52323b
mov ecx, dword [esp + 0x1c]
mov eax, ecx
shr eax, 2
test al, 1
jne 0x52323b
push 0
lea eax, [esp + 0x1c]
or ecx, 4
push eax
push 8
push 0x3b
mov dword [esp + 0x2c], ecx
call ebx
cmp dword [esp + 0x80], 8
jb 0x52324e
push dword [esp + 0x6c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
cmp dword [esp + 0xb0], 8
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
jb 0x52327e
push dword [esp + 0x9c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0xb0], 7
cmp dword [esp + 0xc8], 8
mov dword [esp + 0xac], 0
mov word [esp + 0x9c], ax
jb 0x5232b4
push dword [esp + 0xb4]
call edi
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.006116d0
mov esp, ebp
pop ebp
ret 8