Function at 0x45b870
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a11bd
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4cc498]
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 - 0x40], 0
push str.EnableNetworkHook
lea ecx, [ebp - 0x40]
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 - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00404580
push 0x23
xor eax, eax
mov dword [ebp - 0x28], 0
push str.SoftwareKingsoftOffice6.0Common
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00404580
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
push 0x80000001
call fcn.0041bbb0
mov edx, dword [ebp - 0x14]
add esp, 0x10
test eax, eax
mov byte [ebp - 4], 1
setne bl
cmp edx, 8
jb 0x45b96e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b964
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b9b1
push edx
push ecx
call fcn.0049744e
add esp, 8
mov edx, dword [ebp - 0x2c]
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 0x45b9c1
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b9b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45b9b7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049744e
add esp, 8
test bl, bl
je 0x45ba39
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.0048fad0
mov ebx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x70]
push dword [ebp - 0x60]
mov esi, dword [ebp - 0x70]
lea eax, [ebp + 0x10]
cmp ebx, 8
mov byte [ebp - 4], 3
cmovae ecx, esi
cmp dword [ebp + 0x24], 8
push ecx
cmovae eax, dword [ebp + 0x10]
push 0
push dword [ebp + 0x20]
push eax
call fcn.00405110
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x45ba77
cmp ebx, 8
jb 0x45ba39
lea ebx, [ebx*2 + 2]
mov eax, esi
cmp ebx, 0x1000
jb 0x45ba2f
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bd33
push ebx
push esi
call fcn.0049744e
add esp, 8
mov edx, dword [ebp + 0x24]
cmp edx, 8
jb 0x45bd43
mov ecx, dword [ebp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bd39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45bd39
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [ebp + 0x20], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x45baba
push 0x25
push str._addonsknetworkhookknetworkhook.dll
lea ecx, [ebp + 0x10]
call fcn.00401cd0
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
call esi
test eax, eax
je 0x45baba
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 0x45bccc
cmp byte [ebp + 0xc], al
je 0x45bcfb
lea eax, [ebp - 0x58]
push eax
call fcn.0045c190
add esp, 4
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 4
je 0x45bc5f
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call esi
test eax, eax
je 0x45bc5f
push 8
push str.office6
lea ecx, [ebp - 0x58]
call fcn.00401cd0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401900
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x45bb56
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bb4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bcb6
push edx
push ecx
call fcn.0049744e
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
push str._addonsknetworkhookknetworkhook.dll
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041d2f0
add esp, 0xc
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 6
je 0x45bbd7
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x45bbd7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x45bbd7
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00401f70
call fcn.0045bff0
add esp, 0x18
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov dword [edi], eax
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x45bc11
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bc07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bc59
push edx
push ecx
call fcn.0049744e
add esp, 8
mov edx, dword [ebp - 0x2c]
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 0x45bcc6
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bcbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45bcbc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edx, dword [ebp - 0x44]
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 0x45bb56
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bb4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45bb4c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049744e
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x45bcfb
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 0x45bcfb
mov eax, dword [edi + 8]
test eax, eax
je 0x45bcfb
call eax
mov byte [edi + 4], al
mov ebx, dword [ebp - 0x5c]
cmp ebx, 8
jb 0x45ba39
mov esi, dword [ebp - 0x70]
lea ebx, [ebx*2 + 2]
mov eax, esi
cmp ebx, 0x1000
jb 0x45ba2f
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45ba2f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049744e
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.0049745c
mov esp, ebp
pop ebp
ret 0x20