Function at 0x486330
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66d701
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x718924]
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, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
call fcn.004e30c0
push 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.HKEY_CURRENT_USERSoftwareKingsoftOffice6.0pluginsminisite_address
call fcn.00468170
add esp, 0x1c
test eax, eax
jne 0x4866c4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4863c5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.0044e920
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004b49f0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x4864e1
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x48647c
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x486472
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x486720
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov dword [ebp - 0x220], 0
xor eax, eax
mov word [ebp - 0x230], ax
mov dword [ebp - 0x21c], 7
mov eax, dword [esi]
mov dword [ebp - 0x230], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x22c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x228], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x224], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x21c], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x248]
call fcn.00448fb0
push 0x11
xor eax, eax
mov dword [ebp - 0x238], 0
push str.file:____approot_
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.0044e920
mov esi, dword [ebp - 0x238]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x234], 8
lea ebx, [ebp - 0x248]
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x230]
mov edx, dword [ebp - 0x230]
cmovae ebx, eax
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x220]
cmovae ecx, edx
mov dword [ebp - 0x268], ecx
cmp esi, eax
ja 0x4865a3
test esi, esi
jne 0x48656c
xor eax, eax
jmp 0x48660a
sub eax, esi
inc eax
lea edx, [ecx + eax*2]
mov eax, ecx
mov dword [ebp - 0x264], edx
lea ebx, [ebx]
mov ecx, edx
sub ecx, eax
sar ecx, 1
je 0x48659d
movzx edx, word [ebx]
jmp 0x486590
cmp word [eax], dx
je 0x4865d1
add eax, 2
sub ecx, 1
jne 0x486590
mov edx, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, edx
xor bl, bl
test eax, eax
je 0x486646
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48663e
test al, 0x10
jne 0x48663e
mov bl, 1
jmp 0x486640
mov edx, ebx
test esi, esi
je 0x4865f1
mov edi, eax
sub edi, ebx
jmp 0x4865e0
mov cx, word [edi + edx]
cmp cx, word [edx]
jne 0x48662a
add edx, 2
sub esi, 1
jne 0x4865e0
sub eax, dword [ebp - 0x268]
sar eax, 1
cmp eax, 0xffffffff
je 0x48659d
mov esi, dword [ebp - 0x238]
mov edi, dword [ebp - 0x26c]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x486614
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
push esi
push eax
lea ecx, [ebp - 0x230]
call fcn.00460e80
jmp 0x486525
mov esi, dword [ebp - 0x238]
add eax, 2
mov edx, dword [ebp - 0x264]
jmp 0x486580
xor bl, bl
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x48668c
mov edx, dword [ebp - 0x248]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48667c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x486725
push ecx
push edx
call fcn.004cb4db
mov edx, dword [ebp - 0x230]
add esp, 8
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4866c6
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4866b8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x486725
push ecx
push edx
call fcn.004cb4db
add esp, 8
jmp 0x4866c6
xor bl, bl
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x486702
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4866f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48672a
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov al, bl
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.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
call fcn.004e6589
call fcn.004e6589
int3