Function at 0x4a4030
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push ebx
push 0x4fc330
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.004901e0
add esp, 0xc
mov ecx, ebx
call fcn.004a70b0
test al, al
jne 0x4a4079
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret 0xc
push esi
push edi
mov edi, dword [0x543994]
add edi, 0x10
mov dword [ebp - 0x84], 0x4fc668
push edi
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x543c6c]
push 4
mov dword [ebp - 0x38], eax
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.004ccfdf
add esp, 0xc
test eax, eax
je 0x4a4125
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.004ccfdf
add esp, 0xc
test eax, eax
je 0x4a4125
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x4a4116
mov eax, dword [ebp - 0x38]
mov dword [ecx], eax
mov eax, dword [esi + 4]
add eax, edx
je 0x4a4122
lea ecx, [ebp - 0x84]
mov dword [eax], ecx
inc dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 3
mov dword [ebp - 0x38], 0
call fcn.00486610
add esp, 4
test eax, eax
jne 0x4a436b
push eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebx + 8]
mov dword [ebp - 0x4c], 1
push eax
call sub.gdiplus.dll_GdiplusStartup
push 0x4fd0e0
call fcn.004904a0
push 0xa
xor eax, eax
mov dword [ebp - 0xc], 0
push str.resources_
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00407020
push 0x50fb94
push 0x4fd110
push 0xd1
call fcn.00405080
add esp, 0xc
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
jb 0x4a41b3
mov eax, dword [ebp - 0x1c]
push 1
push str.langzh_CN
push str.themesdefault
push eax
call fcn.00404fb0
mov edx, dword [ebp - 8]
add esp, 0x10
cmp edx, 8
jb 0x4a4202
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a41f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a442b
push edx
push ecx
call fcn.004c1e27
add esp, 8
xor eax, eax
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 8], 7
call fcn.00490430
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4a422a
mov eax, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push fcn.00482ba0
push eax
push str.suda
call fcn.0049a890
mov ecx, eax
call fcn.004a5fb0
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x4a4283
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a4279
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a4430
push edx
push ecx
call fcn.004c1e27
add esp, 8
push 0xb
xor eax, eax
mov dword [ebp - 0xc], 0
push str.user_server
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00407020
mov eax, dword [ebx]
mov edi, eax
mov dword [ebp - 0x3c], eax
mov esi, dword [edi + 4]
cmp byte [esi + 0xd], 0
jne 0x4a42db
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00408ee0
test al, al
je 0x4a42ce
mov esi, dword [esi + 8]
jmp 0x4a42d2
mov edi, esi
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x4a42b6
mov eax, dword [ebp - 0x3c]
cmp edi, eax
je 0x4a42f5
lea eax, [edi + 0x10]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00408ee0
test al, al
je 0x4a42f7
mov eax, dword [ebp - 0x3c]
mov edi, eax
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4a4331
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a4327
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a4435
push edx
push ecx
call fcn.004c1e27
add esp, 8
cmp edi, dword [ebp - 0x3c]
je 0x4a436b
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5441c8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x543dc0]
cmp eax, dword [ecx + 4]
jg 0x4a443a
push ebx
lea eax, [ebp - 0x84]
mov ecx, 0x543cb8
push eax
call fcn.004a4480
mov dword [ebp - 0x38], eax
call fcn.0049a830
mov edi, eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
mov esi, dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x4a438a
push dword [edi + 4]
call esi
push 0
push str.UserServer_LoginServer_Class
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4a43ab
push 0
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0049a890
mov edi, eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a43c4
push dword [edi + 4]
call esi
call fcn.00404fe0
push dword [ebx + 8]
call sub.gdiplus.dll_GdiplusShutdown
call fcn.00488710
mov ecx, 0x543c38
call fcn.004a3f30
mov eax, dword [ebp - 0x74]
pop edi
pop esi
test eax, eax
je 0x4a43f9
push eax
call fcn.004cbbc1
add esp, 4
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
test eax, eax
je 0x4a4417
push eax
call fcn.004cbbc1
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
xor ecx, ebp
pop ebx
call fcn.004c20c9
mov esp, ebp
pop ebp
ret 0xc
call fcn.004c7d81
call fcn.004c7d81
call fcn.004c7d81
push 0x543dc0
call fcn.004c1fd5
add esp, 4
cmp dword [0x543dc0], 0xffffffff
jne 0x4a4356
mov ecx, 0x543cb8
call fcn.004a1410
push 0x4f7a60
call fcn.004c1d8a
push 0x543dc0
call fcn.004c1f8b
add esp, 8
jmp 0x4a4356