Function at 0x4a4090
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.00490230
add esp, 0xc
mov ecx, ebx
call fcn.004a6eb0
test al, al
jne 0x4a40d9
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c1fe9
mov esp, ebp
pop ebp
ret 0xc
push esi
push edi
mov edi, dword [0x543994]
add edi, 0x10
mov dword [ebp - 0x84], 0x4fc688
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.004ccf00
add esp, 0xc
test eax, eax
je 0x4a4185
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.004ccf00
add esp, 0xc
test eax, eax
je 0x4a4185
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x4a4176
mov eax, dword [ebp - 0x38]
mov dword [ecx], eax
mov eax, dword [esi + 4]
add eax, edx
je 0x4a4182
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.00486660
add esp, 4
test eax, eax
jne 0x4a43cb
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 0x4fd100
call fcn.004904f0
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 0x50fc04
push 0x4fd130
push 0xd1
call fcn.00405080
add esp, 0xc
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
jb 0x4a4213
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 0x4a4262
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a4258
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a448b
push edx
push ecx
call fcn.004c1d47
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.00490480
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4a428a
mov eax, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push fcn.00482bf0
push eax
push str.suda
call fcn.0049a8f0
mov ecx, eax
call fcn.004a5db0
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x4a42e3
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a42d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a4490
push edx
push ecx
call fcn.004c1d47
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 0x4a433b
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00408ee0
test al, al
je 0x4a432e
mov esi, dword [esi + 8]
jmp 0x4a4332
mov edi, esi
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x4a4316
mov eax, dword [ebp - 0x3c]
cmp edi, eax
je 0x4a4355
lea eax, [edi + 0x10]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00408ee0
test al, al
je 0x4a4357
mov eax, dword [ebp - 0x3c]
mov edi, eax
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4a4391
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a4387
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a4495
push edx
push ecx
call fcn.004c1d47
add esp, 8
cmp edi, dword [ebp - 0x3c]
je 0x4a43cb
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 0x4a449a
push ebx
lea eax, [ebp - 0x84]
mov ecx, 0x543cb8
push eax
call fcn.004a44e0
mov dword [ebp - 0x38], eax
call fcn.0049a890
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 0x4a43ea
push dword [edi + 4]
call esi
push 0
push str.UserServer_LoginServer_Class
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4a440b
push 0
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0049a8f0
mov edi, eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a4424
push dword [edi + 4]
call esi
call fcn.00404fe0
push dword [ebx + 8]
call sub.gdiplus.dll_GdiplusShutdown
call fcn.00488760
mov ecx, 0x543c38
call fcn.004a3f90
mov eax, dword [ebp - 0x74]
pop edi
pop esi
test eax, eax
je 0x4a4459
push eax
call fcn.004cbae2
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 0x4a4477
push eax
call fcn.004cbae2
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
xor ecx, ebp
pop ebx
call fcn.004c1fe9
mov esp, ebp
pop ebp
ret 0xc
call fcn.004c7ca1
call fcn.004c7ca1
call fcn.004c7ca1
push 0x543dc0
call fcn.004c1ef5
add esp, 4
cmp dword [0x543dc0], 0xffffffff
jne 0x4a43b6
mov ecx, 0x543cb8
call fcn.004a1470
push 0x4f7980
call fcn.004c1caa
push 0x543dc0
call fcn.004c1eab
add esp, 8
jmp 0x4a43b6