Function at 0x404d00
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab140
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1b0
mov eax, dword [0x63afd4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x642fc0]
test esi, esi
jne 0x404db0
push 0x20
call fcn.0057d4a0
mov ecx, eax
call fcn.00422880
mov dword [0x642fc0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x44], esi
mov ecx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 7
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404d80
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00403c20
lea eax, [ebp - 0x44]
push eax
call fcn.00423340
lea ecx, [ebp - 0x44]
call fcn.00403bc0
mov esi, dword [0x642fc0]
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x14]
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1b8], str.user_lib_dir
push eax
mov dword [ebp - 0x1b4], 0xc
call fcn.00424270
mov edi, dword [ebp - 0x18]
cmp byte [edi + 0xd], 0
jne 0x40542a
lea edx, [edi + 0x10]
lea ecx, [ebp - 0x1b8]
call fcn.00422290
test al, al
jne 0x40542a
cmp edi, dword [ebp - 0x1bc]
je 0x40542a
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1b8], str.user_lib_dir
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1b4], 0xc
push eax
mov ecx, esi
call fcn.00422d60
mov ecx, dword [ebp - 0x1c]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0xb
jb 0x40544d
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0xb
cmovae eax, dword [ebp - 0x2c]
push str.mmmojo.dll
push ecx
push eax
push ecx
push dword [ebp - 0x1bc]
lea ecx, [ebp - 0xa8]
call fcn.004082d0
cmp dword [ebp - 0x94], 8
lea eax, [ebp - 0xa8]
cmovae eax, dword [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x404e95
or esi, 0xffffffff
jmp 0x405413
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1b8], str.xlog_path
push eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x1b4], 9
push eax
mov ecx, esi
call fcn.00422d60
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1b8], str.xlog_prefix
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x1b4], 0xb
push eax
mov ecx, esi
call fcn.00422ca0
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0xc0]
call fcn.00410710
movups xmm0, xmmword [0x6212c0]
sub esp, 0x10
mov edx, str.D:Tools_agentworkspacewechat_player_v395wechatplayermain.cc
mov eax, esp
mov ecx, 2
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
push str.log_init_OK.
push str.PlayerMain
push str.wWinMain
push 0x58
movups xmmword [eax], xmm0
call fcn.004113f0
add esp, 0x70
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x34], 0
cmovae edx, dword [ebp - 0x2c]
mov ecx, edx
mov dword [ebp - 0x30], 7
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404f71
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00403c20
call fcn.004038f0
lea ecx, [ebp - 0x44]
call fcn.00403bc0
push 0x34
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.0057fb60
add esp, 0xc
lea eax, [ebp - 0x90]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
call fcn.0057d4a0
lea ecx, [ebp - 0x78]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x78], eax
mov dword [eax], ecx
mov eax, dword [0x643c04]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x90]
push 0x18
mov byte [ebp - 0x64], 0
mov dword [0x643c04], eax
call fcn.0057d4a0
add esp, 4
lea ecx, [ebp - 0x1b4]
mov dword [eax], 1
push eax
mov dword [eax + 4], 0x408280
mov dword [eax + 8], 0x408560
mov dword [eax + 0xc], method.std::codecvt_wchar_t__char__struct__Mbstatet_.virtual_12
mov dword [eax + 0x10], 0x404b80
call fcn.0041dbd0
call fcn.00425490
mov esi, eax
mov ecx, dword [esi + 0x10]
mov edi, ecx
mov edx, dword [esi + 0xc]
lea eax, [edx + ecx]
test al, 3
jne 0x405076
lea eax, [ecx + 4]
shr eax, 2
cmp dword [esi + 8], eax
ja 0x405076
push ecx
mov ecx, esi
call fcn.00422070
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
mov ecx, dword [esi + 8]
lea eax, [ecx*4 - 1]
dec ecx
and eax, edx
mov dword [esi + 0xc], eax
add edi, eax
mov eax, edi
shr eax, 2
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x1bc], eax
cmp dword [ecx + eax], 0
jne 0x4050c0
push 0x10
call fcn.0057d4a0
mov ecx, dword [esi + 4]
add esp, 4
mov edx, dword [ebp - 0x1bc]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [esi + 4]
mov eax, dword [eax + ecx]
and edi, 3
lea ecx, [eax + edi*4]
mov eax, dword [ebp - 0x1b4]
mov dword [ecx], eax
mov dword [ebp - 0x1b4], 0
inc dword [esi + 0x10]
mov dword [ebp - 4], 0
or edi, 0xffffffff
mov ecx, dword [ebp - 0x1b4]
test ecx, ecx
je 0x405106
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x405106
mov eax, dword [ecx + 8]
push ecx
call eax
add esp, 4
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mmmojo.dll_InitializeMMMojo]
push 0xf0
lea eax, [ebp - 0x1b0]
push 0
push eax
call fcn.0057fb60
add esp, 0x10
mov ecx, esp
push 0
call fcn.0041dbd0
push 3
lea ecx, [ebp - 0x1b0]
call fcn.0041e700
lea ecx, [ebp - 0x1b0]
mov dword [ebp - method.base::MessageLoop.1.virtual_0], vtable.base::MessageLoop.1.0
mov dword [ebp - method.base::MessageLoop.virtual_0], vtable.base::MessageLoop.0
call fcn.0041eab0
call fcn.00404b10
lea ecx, [ebp - 0x1bc]
mov esi, eax
call fcn.00427c00
mov edx, dword [eax]
mov dword [eax], 0
mov ecx, dword [esi + 8]
mov dword [esi + 8], edx
mov dword [ebp - 4], 1
test ecx, ecx
je 0x4051a9
lea edx, [ecx + 4]
mov eax, edi
lock xadd dword [edx], eax
cmp eax, 1
jne 0x4051a9
xor eax, eax
test edx, edx
cmove ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x1bc]
test eax, eax
je 0x4051d8
lea ecx, [eax + 4]
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x4051d8
lea eax, [ecx - 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 4], 0xffffffff
call fcn.00404b10
mov esi, eax
mov dword [ebp - 0x1b4], esi
call dword [sym.imp.mmmojo.dll_CreateMMMojoEnvironment]
push 1
push 6
push eax
mov dword [esi + 4], eax
call dword [sym.imp.mmmojo.dll_SetMMMojoEnvironmentInitParams]
add esp, 0xc
push esi
push 0
push dword [esi + 4]
call dword [sym.imp.mmmojo.dll_SetMMMojoEnvironmentCallbacks]
mov edi, dword [esi + 4]
add esp, 0xc
mov esi, 0x63c3f8
nop word [eax + eax]
push dword [esi + 4]
push dword [esi]
push edi
call dword [sym.imp.mmmojo.dll_SetMMMojoEnvironmentCallbacks]
add esi, 8
add esp, 0xc
cmp esi, 0x63c438
jne 0x405220
mov eax, dword [ebp - 0x1b4]
push dword [eax + 4]
call dword [sym.imp.mmmojo.dll_StartMMMojoEnvironment]
movups xmm0, xmmword [0x6212c0]
sub esp, 0xc
mov edx, str.D:Tools_agentworkspacewechat_player_v395wechatplayermain.cc
mov eax, esp
mov ecx, 2
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
push str.start_main_loop.
push str.PlayerMain
push str.wWinMain
push 0x7d
movups xmmword [eax], xmm0
call fcn.004113f0
add esp, 0x70
call fcn.00404b10
mov ecx, eax
call fcn.00416020
movups xmm0, xmmword [0x6212c0]
sub esp, 0x10
mov edx, str.D:Tools_agentworkspacewechat_player_v395wechatplayermain.cc
mov eax, esp
mov ecx, 2
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
push str.end_main_loop.
push str.PlayerMain
push str.wWinMain
push 0x7f
movups xmmword [eax], xmm0
call fcn.004113f0
mov edi, dword [0x642fc4]
add esp, 0x70
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x5b6448]
mov ecx, edi
call esi
lea ecx, [ebp - 0x1b0]
call fcn.0041df30
call dword [sym.imp.mmmojo.dll_ShutdownMMMojo]
mov dword [ebp - 4], 3
call fcn.00425490
mov edi, eax
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
dec edx
add esi, edx
mov edx, dword [edi + 8]
dec edx
mov ecx, esi
mov eax, dword [edi + 4]
and esi, 3
shr ecx, 2
and edx, ecx
mov eax, dword [eax + edx*4]
mov byte [ebp - 4], 4
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x40537c
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x40537c
mov eax, dword [ecx + 8]
push ecx
call eax
add esp, 4
add dword [edi + 0x10], 0xffffffff
jne 0x405389
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 5
cmp dword [0x643c04], 0
je 0x4053af
cmp byte [0x642fbc], 0
jne 0x4053a7
call fcn.00421d20
mov eax, dword [ebp - 0x60]
mov dword [0x643c04], eax
lea ecx, [ebp - 0x78]
call fcn.00421f10
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x4053f4
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4053ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405452
push edx
push ecx
call fcn.0057d721
add esp, 8
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.00403bc0
xor esi, esi
lea ecx, [ebp - 0xa8]
call fcn.00403bc0
lea ecx, [ebp - 0x2c]
call fcn.00403bc0
mov eax, esi
jmp 0x40542d
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0057d277
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004038c0
call fcn.005875f7
int3