Function at 0x40c920
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524256
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x590cc0]
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
mov esi, dword [ebp + 8]
cmp dword [esi + 0xa4], 0
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x114], ebx
jne 0x40c9c1
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x4e]
push ecx
mov word [ebp - 0x50], ax
call fcn.004ba010
push 0
push 0x20
lea edx, [ebp - 0x50]
push edx
push str.HKCUSoftwareKingsoftOffice6.0Common_version
call fcn.0041dcb0
add esp, 0x1c
test eax, eax
jne 0x40c9e8
lea eax, [ebp - 0x50]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c9a0
sub eax, edx
sar eax, 1
je 0x40c9e8
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0x94]
call fcn.00402460
mov edi, 8
push 0xffffffffffffffff
push 0
add esi, 0x94
push esi
mov ecx, ebx
call fcn.00402240
cmp dword [ebx + 0x14], edi
jb 0x40cc32
mov eax, dword [ebx]
jmp 0x40cc34
lea ecx, [ebp - 0x108]
push 0x18
push ecx
call fcn.0041d2b0
mov eax, dword [0x53e11c]
mov edx, dword [str.0.0.0.0]
mov ecx, dword [0x53e120]
push 0x70
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd0], edx
mov edx, dword [0x53e124]
lea eax, [ebp - 0xc0]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xc4], edx
call fcn.004ba010
mov eax, dword [ebp - 0x108]
mov edi, 8
add esp, 0x14
cmp dword [ebp - 0xf4], edi
jae 0x40ca58
lea eax, [ebp - 0x108]
push eax
call fcn.0041b230
add esp, 4
test al, al
je 0x40cba6
xor ecx, ecx
mov dword [ebp - 0xd8], 7
mov dword [ebp - 0xdc], 0
mov word [ebp - 0xec], cx
push 0xffffffffffffffff
push ecx
lea edx, [ebp - 0x108]
push edx
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 1
call fcn.00402240
mov eax, dword [ebp - 0xec]
mov byte [ebp - 4], 0
cmp dword [ebp - 0xd8], edi
jae 0x40cab7
lea eax, [ebp - 0xec]
mov esi, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
push eax
push 0
push str.MajorVersion
push str.Version
call esi
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0xec]
cmp dword [ebp - 0xd8], edi
jae 0x40cae6
lea eax, [ebp - 0xec]
push eax
push 0
push str.FirstVersion
push str.Version
call esi
mov ebx, eax
mov eax, dword [ebp - 0xec]
cmp dword [ebp - 0xd8], edi
jae 0x40cb0b
lea eax, [ebp - 0xec]
push eax
push 0
push str.SecondVersion
push str.Version
call esi
cmp dword [ebp - 0xd8], 8
mov edi, eax
mov eax, dword [ebp - 0xec]
jae 0x40cb31
lea eax, [ebp - 0xec]
push eax
push 0
push str.Version
push str.Version
call esi
push eax
mov eax, dword [ebp - 0x110]
push edi
push ebx
push eax
push 0x53e09c
lea ecx, [ebp - 0xd0]
push 0x3f
push ecx
call fcn.004bb11c
add esp, 0x1c
cmp dword [ebp - 0xd8], 8
jb 0x40cb78
mov edx, dword [ebp - 0xec]
push edx
call fcn.004b9008
add esp, 4
mov esi, dword [ebp - 0x10c]
mov ebx, dword [ebp - 0x114]
xor eax, eax
mov dword [ebp - 0xd8], 7
mov dword [ebp - 0xdc], 0
mov word [ebp - 0xec], ax
lea edi, [eax + 8]
jmp 0x40cbc4
push str.kFileSetupCfg_not_Found.
push str.kupdate::KClientInfoGetter::GetClientVersion
push 0x1ab
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKClientInfoGetter.cpp
push 5
call fcn.0041a9b0
add esp, 0x14
lea eax, [ebp - 0xd0]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cbd0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [esi + 0x94]
call fcn.00402460
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xf4], edi
jb 0x40cc10
mov edx, dword [ebp - 0x108]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
mov dword [ebp - 0xf4], 7
mov dword [ebp - 0xf8], 0
mov word [ebp - 0x108], ax
jmp 0x40c9c6
mov eax, ebx
push eax
push str.Client_Version_is:__s.
push str.kupdate::KClientInfoGetter::GetClientVersion
push 0x1b2
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKClientInfoGetter.cpp
push 7
call fcn.0041a9b0
add esp, 0x18
xor eax, eax
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.004b9ff3
mov esp, ebp
pop ebp
ret 8