Function at 0x401a20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1d40
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4d63e4]
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 edi, ecx
push 0x11
xor eax, eax
mov dword [ebp - 4], 0
push str.EnableNetworkHook
lea ecx, [ebp - 0x58]
mov dword [edi], 0
mov byte [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00402e30
push 0x23
xor eax, eax
mov byte [ebp - 4], 1
push str.SoftwareKingsoftOffice6.0Common
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00402e30
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
push 0x80000001
call fcn.00427260
mov edx, dword [ebp - 0x2c]
add esp, 0x10
test eax, eax
mov byte [ebp - 4], 1
setne bl
cmp edx, 8
jb 0x401b14
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401b0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e96
push edx
push ecx
call fcn.0046c40b
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x401b65
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401b5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e96
push edx
push ecx
call fcn.0046c40b
add esp, 8
test bl, bl
je 0x401e40
cmp dword [ebp + 0x20], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x401bae
push 0x25
push str._addonsknetworkhookknetworkhook.dll
lea ecx, [ebp + 0x10]
call fcn.00402cb0
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
call esi
test eax, eax
je 0x401bae
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
mov eax, dword [edi]
test eax, eax
jne 0x401e11
cmp byte [ebp + 0xc], al
je 0x401e40
lea eax, [ebp - 0x28]
push eax
call fcn.004029d0
add esp, 4
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 3
je 0x401c1e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x401c1e
push 8
push str.office6
lea ecx, [ebp - 0x28]
call fcn.00402cb0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
jmp 0x401c6f
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x401c6f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401c65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e9b
push edx
push ecx
call fcn.0046c40b
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
push str._addonsknetworkhookknetworkhook.dll
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00401800
add esp, 0xc
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 5
je 0x401dc5
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x401dc5
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call esi
test eax, eax
je 0x401dc5
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401980
push str.PATH
push 0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 6
push 0
push eax
mov dword [ebp - 0x74], 0
call fcn.00477f04
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov esi, dword [ebp - 0x74]
add eax, 2
add esi, eax
mov edx, 2
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046c419
mov ebx, eax
mov dword [ebp - 0x78], ebx
push esi
push 0
push ebx
mov byte [ebp - 4], 7
call fcn.0046edf0
push str.PATH
push esi
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.00477f04
add esp, 0x30
test eax, eax
jne 0x401d9c
push 1
push 0x4ac540
lea ecx, [ebp - 0x28]
call fcn.00402cb0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x401d9c
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00401800
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
push str.PATH
call fcn.004781e5
add esp, 0x14
lea ecx, [ebp - 0x70]
call fcn.00402340
test ebx, ebx
je 0x401da9
push ebx
call fcn.0046c422
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00402340
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
lea ecx, [ebp - 0x58]
call fcn.00402340
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x401e0b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401e01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ea0
push edx
push ecx
call fcn.0046c40b
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x401e40
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Hook
push eax
call esi
push str.UnHook
push dword [edi]
mov dword [edi + 8], eax
call esi
cmp byte [ebp + 8], 0
mov dword [edi + 0xc], eax
je 0x401e40
mov eax, dword [edi + 8]
test eax, eax
je 0x401e40
call eax
mov byte [edi + 4], al
mov edx, dword [ebp + 0x24]
cmp edx, 8
jb 0x401e76
mov ecx, dword [ebp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401e6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ea5
push edx
push ecx
call fcn.0046c40b
add esp, 8
mov eax, edi
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.0046c678
mov esp, ebp
pop ebp
ret 0x20
call fcn.00477ce9
call fcn.00477ce9
call fcn.00477ce9
call fcn.00477ce9
int3