Function at 0x4017d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499a70
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4cc3d0]
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
mov dword [ebp - 0x90], edi
push 0x11
xor eax, eax
mov dword [ebp - 0x28], 0
push str.EnableNetworkHook
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [edi], 0
mov byte [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00402db0
push 0x23
xor eax, eax
mov dword [ebp - 0x40], 0
push str.SoftwareKingsoftOffice6.0Common
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00402db0
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
push 0x80000001
call fcn.00427510
mov edx, dword [ebp - 0x2c]
add esp, 0x10
test eax, eax
mov byte [ebp - 4], 1
setne bl
cmp edx, 8
jb 0x4018db
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4018d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401dba
push edx
push ecx
call fcn.00471e9b
add esp, 8
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 0x40192c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401922
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401dba
push edx
push ecx
call fcn.00471e9b
add esp, 8
test bl, bl
je 0x401d64
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.004621c0
add esp, 8
cmp dword [ebp - 0x5c], 8
lea ebx, [ebp - 0x70]
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + 0x10]
cmovae ebx, dword [ebp - 0x70]
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x20]
cmovae edx, dword [ebp + 0x10]
mov byte [ebp - 4], 3
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x94], edx
cmp ecx, eax
ja 0x401d5c
test ecx, ecx
je 0x401a23
sub eax, ecx
mov ecx, edx
inc eax
lea esi, [edx + eax*2]
mov dword [ebp - 0x98], esi
movzx eax, word [ebx]
mov edx, esi
sub edx, ecx
movzx esi, ax
sar edx, 1
mov edi, 0
je 0x4019bb
movzx eax, word [ecx]
cmp ax, si
je 0x4019b9
cmp edx, 1
je 0x4019bb
movzx eax, word [ecx + 2]
add ecx, 2
dec edx
cmp ax, si
jne 0x4019a7
mov edi, ecx
mov ecx, edi
test ecx, ecx
je 0x401d56
movzx edx, word [ecx]
mov eax, ebx
movzx esi, word [ebx]
mov edi, dword [ebp - 0x60]
cmp dx, si
jb 0x4019fe
mov ebx, ecx
sub ebx, dword [ebp - 0x8c]
cmp dx, si
ja 0x4019f8
cmp edi, 1
je 0x401a09
movzx edx, word [ebx + eax + 2]
add eax, 2
dec edi
movzx esi, word [eax]
cmp dx, si
jae 0x4019e0
mov ebx, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x98]
add ecx, 2
jmp 0x40198c
sub ecx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x90]
sar ecx, 1
cmp ecx, 0xffffffff
je 0x401d5c
mov eax, dword [ebp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401a64
push 0x25
push str._addonsknetworkhookknetworkhook.dll
lea ecx, [ebp + 0x10]
call fcn.00402c30
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
call esi
test eax, eax
je 0x401a64
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
call ebx
mov dword [edi], eax
mov eax, dword [edi]
test eax, eax
jne 0x401d25
cmp byte [ebp + 0xc], al
je 0x401d5c
lea eax, [ebp - 0x28]
push eax
call fcn.00402940
add esp, 4
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 4
je 0x401cb9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x401cb9
push 8
push str.office6
lea ecx, [ebp - 0x28]
call fcn.00402c30
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.004016d0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x401b00
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401af6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401dc4
push edx
push ecx
call fcn.00471e9b
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push str._addonsknetworkhookknetworkhook.dll
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004015e0
add esp, 0xc
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 6
je 0x401c77
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x401c77
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call esi
test eax, eax
je 0x401c77
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401730
push str.PATH
push 0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 7
push 0
push eax
mov dword [ebp - 0x8c], 0
call fcn.0047d639
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov esi, dword [ebp - 0x8c]
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.00471ea9
mov edi, eax
mov dword [ebp - 0x94], edi
push esi
push 0
push edi
mov byte [ebp - 4], 8
call fcn.00473e20
push str.PATH
push esi
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.0047d639
add esp, 0x30
test eax, eax
jne 0x401c4c
push 1
push 0x4a43d4
lea ecx, [ebp - 0x28]
call fcn.00402c30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x401c4c
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004015e0
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
push str.PATH
call fcn.0047d91a
add esp, 0x14
lea ecx, [ebp - 0x88]
call fcn.004022a0
test edi, edi
je 0x401c59
push edi
call fcn.00471eb2
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.004022a0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call ebx
mov edi, dword [ebp - 0x90]
mov dword [edi], eax
lea ecx, [ebp - 0x58]
call fcn.004022a0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x401d1f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401d15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401dbf
jmp 0x401d15
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x401b00
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401af6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401dc4
jmp 0x401af6
push edx
push ecx
call fcn.00471e9b
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x401d5c
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 0x401d5c
mov eax, dword [edi + 8]
test eax, eax
je 0x401d5c
call eax
mov byte [edi + 4], al
jmp 0x401d5c
mov edi, dword [ebp - 0x90]
lea ecx, [ebp - 0x70]
call fcn.004022a0
mov edx, dword [ebp + 0x24]
cmp edx, 8
jb 0x401d9a
mov ecx, dword [ebp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401d90
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401dc9
push edx
push ecx
call fcn.00471e9b
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.00472108
mov esp, ebp
pop ebp
ret 0x20
call fcn.0047d41e
call fcn.0047d41e
call fcn.0047d41e
call fcn.0047d41e
int3