Function at 0x44f900
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490abb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4b74b0]
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 - 0x8c], edi
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.00404550
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.00404550
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
push 0x80000001
call fcn.0041a750
mov edx, dword [ebp - 0x2c]
add esp, 0x10
test eax, eax
mov byte [ebp - 4], 1
setne bl
cmp edx, 8
jb 0x44f9f9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44f9ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44fa3c
push edx
push ecx
call fcn.00487869
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 0x44fa4c
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44fa42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44fa42
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
add esp, 8
test bl, bl
je 0x44facb
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.00480950
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 eax, dword [ebp + 0x20]
cmovae ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 3
mov dword [ebp - 0x94], ecx
cmp esi, eax
ja 0x44fac3
test esi, esi
je 0x44fb3e
sub eax, esi
inc eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0x90], eax
lea esp, [esp]
sub eax, ecx
sar eax, 1
je 0x44fabd
movzx edx, word [ebx]
lea esp, [esp]
cmp word [ecx], dx
je 0x44fb09
add ecx, 2
sub eax, 1
jne 0x44fab0
mov edi, dword [ebp - 0x8c]
lea ecx, [ebp - 0x70]
call fcn.00401b10
mov edx, dword [ebp + 0x24]
cmp edx, 8
jb 0x44fecf
mov ecx, dword [ebp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44fec5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44fec5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edx, ebx
test esi, esi
je 0x44fb28
mov edi, ecx
sub edi, ebx
mov ax, word [edx + edi]
cmp ax, word [edx]
jne 0x44fbed
add edx, 2
sub esi, 1
jne 0x44fb13
sub ecx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x8c]
sar ecx, 1
cmp ecx, 0xffffffff
je 0x44fac3
mov eax, dword [ebp + 0x20]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44fb7d
push 0x25
push str._addonsknetworkhookknetworkhook.dll
lea ecx, [ebp + 0x10]
call fcn.00401cf0
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
call esi
test eax, eax
je 0x44fb7d
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 0x44fe89
cmp byte [ebp + 0xc], al
je 0x44fac3
lea eax, [ebp - 0x28]
push eax
call fcn.00450170
add esp, 4
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 4
je 0x44fbfe
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x44fbfe
push 8
push str.office6
lea ecx, [ebp - 0x28]
call fcn.00401cf0
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 0x44fc52
mov esi, dword [ebp - 0x60]
add ecx, 2
mov eax, dword [ebp - 0x90]
jmp 0x44faa0
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], 3
cmp edx, 8
jb 0x44fc52
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44fc48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44fc48
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
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], 5
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040db40
add esp, 0xc
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 6
je 0x44fe37
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x44fe37
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call esi
test eax, eax
je 0x44fe37
cmp dword [ebp - 0x2c], 8
lea edi, [ebp - 0x40]
mov ebx, dword [ebp - 0x30]
cmovae edi, dword [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp ebx, 8
jae 0x44fcf6
mov eax, dword [edi]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 7
jmp 0x44fd2b
mov esi, ebx
lea ecx, [ebp - 0x28]
mov eax, 0x7ffffffe
or esi, 7
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00401c90
mov ecx, eax
lea eax, [ebx*2 + 2]
push eax
push edi
push ecx
mov dword [ebp - 0x28], ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
mov edi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv_s]
lea eax, [ebp - 0x90]
push str.PATH
push 0
push 0
push eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x90], 0
call edi
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov esi, dword [ebp - 0x90]
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.004879c0
mov ebx, eax
mov dword [ebp - 0x94], ebx
push esi
push 0
push ebx
mov byte [ebp - 4], 8
call sub.VCRUNTIME140.dll_memset
push str.PATH
push esi
lea eax, [ebp - 0x90]
push ebx
push eax
call edi
add esp, 0x30
test eax, eax
jne 0x44fe08
push 1
push 0x49a8b8
lea ecx, [ebp - 0x28]
call fcn.00401cf0
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 0x44fe08
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0040db40
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
push str.PATH
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
add esp, 0x14
lea ecx, [ebp - 0x88]
call fcn.00401b10
test ebx, ebx
je 0x44fe15
push ebx
call fcn.004879c9
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00401b10
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [ebp - 0x8c]
mov dword [edi], eax
lea ecx, [ebp - 0x58]
call fcn.00401b10
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x44fe7f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44fe75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44fe75
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x44fac3
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 0x44fac3
mov eax, dword [edi + 8]
test eax, eax
je 0x44fac3
call eax
mov byte [edi + 4], al
jmp 0x44fac3
push edx
push ecx
call fcn.00487869
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.00487877
mov esp, ebp
pop ebp
ret 0x20