Function at 0x4932a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1afd
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push 0x4e9390
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00484e40
add esp, 0xc
xor esi, esi
push 1
call fcn.0047b9a0
mov ecx, eax
call fcn.0047dbf0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x528ab0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x528050]
cmp eax, dword [ecx + 4]
jg 0x493636
movzx eax, byte [0x52804c]
neg eax
sbb eax, eax
and eax, 0x800
push eax
push 0
push 0x4e931c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0xa
xor eax, eax
mov dword [ebp - 0x28], esi
push str.resources_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00408d10
push 0x4f95e7
push 0x4e934c
push 0xca
mov dword [ebp - 4], 0
call fcn.0040af20
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x49337a
mov eax, dword [ebp - 0x28]
push 2
push str.langzh_CN
push str.themesdefault
push eax
call fcn.0040ae40
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4933d0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4933c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x493682
push edx
push ecx
call fcn.004a8c37
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.0048e8c0
test al, al
je 0x4935ff
xor eax, eax
mov dword [ebp - 0x60], vtable.WTL::CMessageLoop.0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov ebx, dword [0x5286c0]
add ebx, 0x10
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x528718]
mov edi, eax
push 4
mov eax, dword [esi + 8]
inc eax
push eax
push dword [esi]
call fcn.004b7797
add esp, 0xc
test eax, eax
je 0x4934bb
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.004b7797
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4934bb
mov eax, dword [esi + 8]
mov dword [esi + 4], ecx
lea edx, [eax*4]
mov eax, dword [esi]
add eax, edx
je 0x4934ac
mov dword [eax], edi
mov ecx, dword [esi + 4]
lea eax, [edx + ecx]
test eax, eax
je 0x4934b8
lea ecx, [ebp - 0x60]
mov dword [eax], ecx
inc dword [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
xor esi, esi
mov ebx, 1
nop
test ebx, ebx
je 0x4934f7
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call edi
test eax, eax
jne 0x4934f7
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x60]
push esi
call dword [eax + 8]
inc esi
test eax, eax
jne 0x4934d4
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x4934d0
test eax, eax
je 0x493548
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x60]
call dword [eax + 4]
test eax, eax
jne 0x493535
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x60]
call dword [eax + 0xc]
test eax, eax
je 0x4934d0
jmp 0x4934c8
mov ebx, dword [0x5286c0]
mov eax, dword [ebp - 0x3c]
add ebx, 0x10
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], ebx
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x68], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [0x528718]
mov esi, eax
xor eax, eax
mov edx, dword [edi + 8]
test edx, edx
jle 0x49359d
mov ecx, dword [edi]
cmp dword [ecx], esi
je 0x493590
inc eax
add ecx, 4
cmp eax, edx
jl 0x493582
jmp 0x49359d
cmp eax, 0xffffffff
je 0x49359d
push eax
mov ecx, edi
call fcn.00493150
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x60], vtable.WTL::CMessageLoop.0
test eax, eax
je 0x4935c9
push eax
call fcn.004b7771
add esp, 4
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
test eax, eax
je 0x4935ee
push eax
call fcn.004b7771
add esp, 4
mov dword [ebp - 0x5c], 0
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call fcn.0040ae60
call dword [sym.imp.ole32.dll_OleUninitialize]
call fcn.0047b9a0
mov ecx, eax
call fcn.0047dd10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret 0xc
push 0x528050
call fcn.004a8d78
add esp, 4
cmp dword [0x528050], 0xffffffff
jne 0x493310
push str.AddDllDirectory
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
push 0x528050
setne byte [0x52804c]
call fcn.004a8d2e
add esp, 4
jmp 0x493310
call fcn.004b040f
int3