Function at 0x1001b530
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a6880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1fb0
call fcn.1007e490
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [0x10140b5c], eax
xor ebx, ebx
mov ecx, 0x513
xor eax, eax
lea edi, [ebp - 0x1fbe]
mov word [ebp - 0x1fc0], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x289
xor eax, eax
lea edi, [ebp - 0xb6f]
mov byte [ebp - 0xb70], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0xac]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1001b5e0
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [0x10140b6c], edx
mov dword [0x10140b64], eax
mov dword [0x10140b68], ecx
mov edx, dword [0x10140b5c]
lea eax, [edx - 3]
cmp eax, 0xc
ja case.0x1001b5fa.6
xor ecx, ecx
mov cl, byte [eax + 0x1001b94c]
jmp dword [ecx*4 + 0x1001b93c]
lea edx, [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x1fc0]
je case.0x1001b5fa.6
cmp dword [ebp + 8], 2
jge 0x1001b641
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 4]
push 0xa27
lea ecx, [ebp - 0x1fc0]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 0xc
add esi, 2
push 0x3f
push esi
call ebx
mov edi, eax
add esp, 8
test edi, edi
je 0x1001b691
add edi, 2
push 0x3f
push edi
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x1001b691
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 2
mov dword [ebp - 0x14], eax
jl 0x1001b663
cmp dword [ebp - 0x14], 2
jne 0x1001b6af
test esi, esi
je 0x1001b6a0
mov word [esi], 0
push edi
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov dword [0x10140b58], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je case.0x1001b5fa.6
mov eax, dword [ebp + 8]
cmp eax, 2
jge 0x1001b705
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 1
dec eax
cmp eax, esi
jle 0x1001b733
lea edi, [ebx + 4]
mov ecx, dword [edi]
push 0x100c8e70
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1001b74b
mov edx, dword [ebp + 8]
inc esi
add edi, 4
dec edx
cmp esi, edx
jl 0x1001b712
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + esi*4 + 4]
push 0xa27
lea ecx, [ebp - 0x1fc0]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov edi, dword [sym.imp.MSVCRT.dll_wcschr]
lea edx, [ebp - 0x1fc0]
push 0x3a
push edx
call edi
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1001b794
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 2
push 0x3a
push esi
call edi
add esp, 8
test eax, eax
jne 0x1001b7bb
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov word [eax], 0
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov dword [0x10140b58], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je case.0x1001b5fa.6
mov eax, dword [ebp + 8]
cmp eax, 2
jge 0x1001b822
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 1
cmp eax, esi
jle 0x1001b84e
lea edi, [ebx + 4]
mov ecx, dword [edi]
push str.QQCMD
push ecx
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x1001b866
mov eax, dword [ebp + 8]
inc esi
add edi, 4
cmp esi, eax
jl 0x1001b82e
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + esi*4]
push 0
push 0
lea edx, [ebp - 0xb70]
push 0xa28
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
push ebx
jne 0x1001b8a2
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.QQToolKit.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
mov dword [ebp - 0x18], esi
je case.0x1001b5fa.6
push str.ParserQQCommandLine
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
je 0x1001b923
mov ecx, 0x27
xor eax, eax
lea edi, [ebp - 0x148]
mov dword [ebp - 4], eax
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x148]
lea eax, [ebp - 0xb70]
push ecx
push eax
mov dword [ebp - 0x148], 0x9c
call edx
jmp 0x1001b914
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x1001b923
mov dword [0x10140b58], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret