Function at 0x404c10
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x40ab90
push 0x407ba2
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x14ff8
call fcn.00408940
mov eax, dword [0x40c024]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x83c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x404c83
push str.QQlogCompatibilityCheck.log
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x83c]
jmp 0x404c85
xor ecx, ecx
mov dword [ebp - 4], 0
call fcn.004074c0
lea eax, [ebp - 0x15010]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
jne 0x404ce7
push str.Parameter_error
push 0x2800
lea eax, [ebp - 0x380c]
push eax
call fcn.00404670
lea eax, [ebp - 0x380c]
push eax
lea edx, [esi + 0x44]
mov ecx, str.WinMain
call fcn.00407570
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
lea eax, [esi + 3]
jmp 0x405113
mov edx, dword [ebp - 0x15010]
mov ecx, esi
call fcn.004048e0
mov edi, dword [ebp - 0x15010]
cmp edi, 2
jl 0x4050b9
mov ecx, str.check
mov eax, dword [esi + 4]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404d36
test dx, dx
je 0x404d32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404d36
add eax, 4
add ecx, 4
test dx, dx
jne 0x404d10
xor eax, eax
jmp 0x404d3b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404e17
push 0x208
push eax
lea eax, [ebp - 0x224]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp edi, 3
jne 0x404dc8
push dword [esi + 8]
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x224]
call fcn.00405910
mov bl, al
movzx ecx, bl
push ecx
push str.Check_config_result:_d
push 0x2800
lea eax, [ebp - 0x880c]
push eax
call fcn.00404670
lea eax, [ebp - 0x880c]
push eax
mov edx, 0x55
mov ecx, str.WinMain
call fcn.00407570
add esp, 0x14
xor eax, eax
test bl, bl
sete al
mov dword [ebp - 4], 0xfffffffe
jmp 0x405113
lea ecx, [ebp - 0x224]
call fcn.00404800
test al, al
jne 0x404d75
push str.Get_QQ.exe_path_failed.
push 0x2800
lea eax, [ebp - 0x600c]
push eax
call fcn.00404670
lea eax, [ebp - 0x600c]
push eax
mov edx, 0x50
mov ecx, str.WinMain
call fcn.00407570
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, 2
jmp 0x405113
cmp edi, 2
jl 0x4050b9
mov ecx, str.repair
mov eax, dword [esi + 4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404e4e
test dx, dx
je 0x404e4a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404e4e
add eax, 4
add ecx, 4
test dx, dx
jne 0x404e28
xor eax, eax
jmp 0x404e53
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404f2f
push 0x208
push eax
lea eax, [ebp - 0x42c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp edi, 3
jne 0x404ee0
push dword [esi + 8]
push 0x104
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x42c]
call fcn.004060b0
mov bl, al
movzx ecx, bl
push ecx
push str.Repair_config_result:_d
push 0x2800
lea eax, [ebp - 0xd80c]
push eax
call fcn.00404670
lea eax, [ebp - 0xd80c]
push eax
mov edx, 0x62
mov ecx, str.WinMain
call fcn.00407570
add esp, 0x14
xor eax, eax
test bl, bl
sete al
mov dword [ebp - 4], 0xfffffffe
jmp 0x405113
lea ecx, [ebp - 0x42c]
call fcn.00404800
test al, al
jne 0x404e8d
push str.Get_QQ.exe_path_failed.
push 0x2800
lea eax, [ebp - 0xb00c]
push eax
call fcn.00404670
lea eax, [ebp - 0xb00c]
push eax
mov edx, 0x5d
mov ecx, str.WinMain
call fcn.00407570
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, 2
jmp 0x405113
cmp edi, 2
jl 0x4050b9
mov ecx, str.version
mov eax, dword [esi + 4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404f66
test dx, dx
je 0x404f62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404f66
add eax, 4
add ecx, 4
test dx, dx
jne 0x404f40
xor eax, eax
jmp 0x404f6b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404fa4
push 0x7d0
push eax
lea eax, [ebp - 0x100c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x100c]
call fcn.00404a50
xor ecx, ecx
test al, al
sete cl
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
jmp 0x405113
cmp edi, 2
jl 0x4050b9
mov ecx, str.checkandrepair
mov eax, dword [esi + 4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404fdb
test dx, dx
je 0x404fd7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404fdb
add eax, 4
add ecx, 4
test dx, dx
jne 0x404fb5
xor eax, eax
jmp 0x404fe0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4050b9
push 0x208
push eax
lea eax, [ebp - 0x634]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp edi, 3
jne 0x40506d
push dword [esi + 8]
push 0x104
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x634]
call fcn.00406da0
mov bl, al
movzx ecx, bl
push ecx
push str.check_and_repair_config_result:_d
push 0x2800
lea eax, [ebp - 0x1280c]
push eax
call fcn.00404670
lea eax, [ebp - 0x1280c]
push eax
mov edx, 0x73
mov ecx, str.WinMain
call fcn.00407570
add esp, 0x14
xor eax, eax
test bl, bl
sete al
mov dword [ebp - 4], 0xfffffffe
jmp 0x405113
lea ecx, [ebp - 0x634]
call fcn.00404800
test al, al
jne 0x40501a
push str.Get_QQ.exe_path_failed.
push 0x2800
lea eax, [ebp - 0x1000c]
push eax
call fcn.00404670
lea eax, [ebp - 0x1000c]
push eax
mov edx, 0x6e
mov ecx, str.WinMain
call fcn.00407570
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, 2
jmp 0x405113
push str.Parameter_error
push 0x2800
lea eax, [ebp - 0x1500c]
push eax
call fcn.00404670
lea eax, [ebp - 0x1500c]
push eax
mov edx, 0x76
mov ecx, str.WinMain
call fcn.00407570
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, 3
jmp 0x405113
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00407bd1
mov esp, ebp
pop ebp
ret 0x10