Function at 0x401760
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f268
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4be4bc]
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 dword [ebp - 0x74], ecx
push 0x11
mov dword [ecx], 0
xor eax, eax
mov byte [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
lea ecx, [ebp - 0x70]
push str.EnableNetworkHook
mov dword [ebp - 4], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.00402680
push 0x23
xor eax, eax
mov byte [ebp - 4], 1
push str.SoftwareKingsoftOffice6.0Common
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00402680
push 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
push 0x80000001
call fcn.004068c0
mov edx, dword [ebp - 0x14]
add esp, 0x10
test eax, eax
mov byte [ebp - 4], 1
setne bl
cmp edx, 8
jb 0x401851
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401847
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401894
push edx
push ecx
call fcn.0048c947
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x4018a4
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40189a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40189a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
test bl, bl
je 0x401c14
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.004829a0
add esp, 8
cmp dword [ebp - 0x5c], 8
lea ebx, [ebp - 0x70]
mov esi, dword [ebp - 0x60]
lea ecx, [ebp + 0x10]
cmovae ebx, dword [ebp - 0x70]
cmp dword [ebp + 0x24], 8
mov edi, dword [ebp + 0x20]
cmovae ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 3
mov dword [ebp - 0x78], ecx
cmp esi, edi
ja 0x40190d
test esi, esi
je 0x401973
mov eax, edi
sub eax, esi
inc eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0x7c], eax
sub eax, ecx
sar eax, 1
je 0x40190d
movzx edx, word [ebx]
lea ecx, [ecx]
cmp word [ecx], dx
je 0x40194b
add ecx, 2
sub eax, 1
jne 0x401900
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x401c14
mov ecx, dword [ebp - 0x70]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401c0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401c0a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edx, ebx
test esi, esi
je 0x401966
mov edi, ecx
sub edi, ebx
mov ax, word [edx + edi]
cmp ax, word [edx]
jne 0x4019b9
add edx, 2
sub esi, 1
jne 0x401955
sub ecx, dword [ebp - 0x78]
sar ecx, 1
cmp ecx, 0xffffffff
je 0x40190d
mov edi, dword [ebp + 0x20]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x4019c7
push 0x25
push str._addonsknetworkhookknetworkhook.dll
lea ecx, [ebp + 0x10]
call fcn.00402410
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
call esi
test eax, eax
je 0x4019c7
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
call edi
mov ebx, dword [ebp - 0x74]
mov dword [ebx], eax
jmp 0x4019ca
mov esi, dword [ebp - 0x60]
add ecx, 2
mov eax, dword [ebp - 0x7c]
jmp 0x4018f4
mov ebx, dword [ebp - 0x74]
mov eax, dword [ebx]
test eax, eax
jne 0x401b9f
cmp byte [ebp + 0xc], al
je 0x401bce
lea eax, [ebp - 0x40]
push eax
call fcn.00402230
add esp, 4
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 4
je 0x401a3a
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x401a3a
push 8
push str.office6
lea ecx, [ebp - 0x40]
call fcn.00402410
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
jmp 0x401a8e
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x401a8e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401a84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401a84
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x30], eax
push str._addonsknetworkhookknetworkhook.dll
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401600
add esp, 0xc
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 6
je 0x401b0b
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call esi
test eax, eax
je 0x401b0b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x401b0b
sub esp, 0x18
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.004016c0
call fcn.00402090
add esp, 0x18
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call edi
mov dword [ebx], eax
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x401b45
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401b3b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b89
push edx
push ecx
call fcn.0048c947
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x401b99
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401b8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401b8f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x401bce
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Hook
push eax
call esi
push str.UnHook
push dword [ebx]
mov dword [ebx + 8], eax
call esi
cmp byte [ebp + 8], 0
mov dword [ebx + 0xc], eax
je 0x401bce
mov eax, dword [ebx + 8]
test eax, eax
je 0x401bce
call eax
mov byte [ebx + 4], al
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x401c17
mov ecx, dword [ebp - 0x70]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401bfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401945
push edx
push ecx
call fcn.0048c947
add esp, 8
jmp 0x401c17
push edx
push ecx
call fcn.0048c947
add esp, 8
mov ebx, dword [ebp - 0x74]
mov edx, dword [ebp + 0x24]
cmp edx, 8
jb 0x401c53
mov ecx, dword [ebp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401c49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401c49
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
mov eax, ebx
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.0048cbb4
mov esp, ebp
pop ebp
ret 0x20