Function at 0x4127c0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d664
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x4c7084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x41c], 0
mov dword [ebp - 4], 2
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4cd4e8]
cmp eax, dword [ecx + 4]
jle 0x412865
push 0x4cd4e8
call fcn.0044b58d
add esp, 4
cmp dword [0x4cd4e8], 0xffffffff
jne 0x412865
mov byte [ebp - 4], 3
mov ecx, 0x4cd4fc
push 0x4a62b8
call fcn.00408c40
push 0x497cf0
call fcn.0044b9e8
mov byte [ebp - 4], 2
push 0x4cd4e8
call fcn.0044b54e
add esp, 8
mov eax, dword [ebp + 8]
mov edx, str.isok_addr
mov ecx, eax
nop
mov si, word [ecx]
cmp si, word [edx]
jne 0x412896
test si, si
je 0x412892
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x412896
add ecx, 4
add edx, 4
test si, si
jne 0x412870
xor ecx, ecx
jmp 0x41289b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
sete cl
test cl, cl
je 0x4128ad
push 0x22
push str.https:__ldc.lenovo.com.cn_api_isok
jmp 0x412907
mov ecx, str.auth_addr
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4128d8
test dx, dx
je 0x4128d4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4128d8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4128b2
xor eax, eax
jmp 0x4128dd
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x4128ef
push 0x22
push str.https:__ldc.lenovo.com.cn_api_auth
jmp 0x412907
mov edx, str.config_addr
lea ecx, [ebp + 8]
call fcn.00408980
test al, al
je 0x41290f
push 0x32
push str.https:__ldc.lenovo.com.cn_api_v1_client_config_xml
lea ecx, [ebp + 0xc]
call fcn.0040a2a0
push 0x4cd4fc
lea ecx, [ebp - 0x418]
call fcn.00408d00
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x418]
cmp dword [eax - 4], 1
jle 0x412943
push dword [eax - 0xc]
lea ecx, [ebp - 0x418]
call fcn.004098d0
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x418]
call fcn.00408c20
test esi, esi
jne 0x412979
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00408d00
mov dword [ebp - 0x41c], 1
jmp 0x412a2c
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004640b0
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [0x4cd4fc]
lea eax, [ebp - 0x410]
push 0x200
push eax
push 0x4a5cf4
push dword [ebp + 8]
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4129e0
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00408d00
mov dword [ebp - 0x41c], 1
jmp 0x412a2c
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x414]
call fcn.00408c40
mov byte [ebp - 4], 5
mov ecx, edi
mov eax, dword [ebp - 0x414]
cmp dword [eax - 0xc], 0
lea eax, [ebp + 0xc]
je 0x412a0d
lea eax, [ebp - 0x414]
push eax
call fcn.00408d00
mov dword [ebp - 0x41c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x414]
call fcn.00408c20
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00408c20
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00408c20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret