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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585951
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x124c
call fcn.0054e3f0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, dword [ebx + 0x18]
mov esi, ecx
test eax, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
je 0x489d49
push eax
call fcn.0048a840
mov edi, eax
xor ecx, ecx
cmp edi, ecx
je 0x489d39
mov al, byte [ebp + 0x10]
test al, al
je 0x489cb1
cmp dword [edi + 0x5cc], 3
jne 0x489cb1
cmp byte [ebx + 0x3c], 3
je 0x489cb1
mov dword [edi + 0x5cc], ecx
mov al, byte [esi + 0x4ac]
test al, al
jne 0x489ccf
mov al, byte [esi + 0x4ad]
test al, al
je 0x489d24
mov al, byte [esi + 0x4af]
test al, al
je 0x489d24
mov eax, dword [ebx + 0x98]
cmp dword [eax - 8], ecx
je 0x489d24
mov eax, dword [ebx + 0x5c]
cmp eax, ecx
jne 0x489ce4
lea eax, [ebx + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x489d1d
mov ebx, dword [ebx + 0x98]
push 0
push ebx
lea ecx, [edi + 0x20]
call fcn.0052ca10
mov byte [edi + 0x2d0], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [edi + 0x2d0], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 0x18], ecx
mov ecx, dword [ebp + 8]
push ebx
push ecx
lea ecx, [esi + 8]
call fcn.00540f80
lea ecx, [ebp - 0x125c]
call fcn.004e2750
mov eax, dword [ebx + 0x50]
push 0
push eax
lea ecx, [ebp - 0x125c]
mov byte [ebp - 4], 1
call fcn.004e2ac0
test eax, eax
je 0x489dc1
push 0x828
call fcn.0056649c
mov ecx, eax
add esp, 4
mov dword [ebp + 0xc], ecx
test ecx, ecx
mov byte [ebp - 4], 2
je 0x489d90
call fcn.0051df50
mov edi, eax
jmp 0x489d92
xor edi, edi
push 1
push edi
lea ecx, [ebp - 0x125c]
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 1
call fcn.004e3060
xor ecx, ecx
cmp eax, ecx
je 0x489de5
cmp edi, ecx
je 0x489dc1
mov ecx, edi
call fcn.0051e0a0
push edi
call fcn.005664c5
add esp, 4
lea ecx, [ebp - 0x125c]
mov byte [ebp - 4], 0
call fcn.004e27a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x1c], ecx
jl 0x489e96
mov eax, dword [0x639ad4]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x74], ecx
mov word [ebp - 0x78], cx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], eax
call fcn.00476c60
mov eax, dword [0x639ad4]
mov dword [ebp - 0xd8], 0x59c97c
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
push eax
mov eax, dword [ebx + 0x1c]
lea edx, [ebp - 0xd8]
lea ecx, [esi + 8]
push edx
push eax
mov byte [ebp - 4], 3
call fcn.0053fa00
test al, al
je 0x489e85
mov edx, dword [ebp - 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x489e82
mov ecx, dword [ebp + 0xc]
push edx
call fcn.005248b0
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 1
call fcn.0044b000
xor ecx, ecx
mov edx, dword [ebx + 0x84]
cmp dword [edx - 8], ecx
jle 0x489eb7
mov eax, dword [ebx + 0x88]
cmp dword [eax - 8], ecx
jle 0x489eb7
push eax
push edx
mov ecx, edi
call fcn.00522450
jmp 0x489f03
push str.IEUser_
push str.anonymous
mov ecx, edi
call fcn.00522450
mov al, byte [esi + 0x438]
test al, al
je 0x489ef7
mov al, byte [ebx + 0x46]
test al, al
jne 0x489ef7
mov al, byte [ebx + 0x47]
test al, al
jne 0x489ef7
mov eax, dword [esi + 0x440]
mov ecx, dword [esi + 0x43c]
push eax
push ecx
mov ecx, edi
call fcn.00522450
jmp 0x489f03
mov ecx, dword [0x63e538]
push edi
call fcn.004b4e60
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x489f15
push eax
mov ecx, edi
call fcn.00524950
mov ecx, dword [ebx + 0xa0]
test ecx, ecx
jle 0x489f33
mov eax, dword [ebx + 0x9c]
test eax, eax
je 0x489f33
push ecx
push eax
lea ecx, [edi + 0x20]
call fcn.0052f3e0
mov eax, dword [ebx + 0x80]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x489f48
push eax
mov ecx, edi
call fcn.0051e440
mov al, byte [esi + 0x4ac]
test al, al
jne 0x489f66
mov al, byte [esi + 0x4ad]
test al, al
je 0x489fa1
mov al, byte [esi + 0x4af]
test al, al
je 0x489fa1
mov ecx, dword [ebx + 0x98]
mov eax, dword [ecx - 8]
test eax, eax
je 0x489fa1
mov eax, dword [ebx + 0x5c]
test eax, eax
jne 0x489f7d
lea eax, [ebx + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x489fa1
mov eax, dword [ebx + 0x98]
push 0
push eax
lea ecx, [edi + 0x20]
call fcn.0052ca10
mov byte [edi + 0x2d0], 1
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
test eax, eax
jl 0x489fbd
jg 0x489fb1
test ecx, ecx
jbe 0x489fbd
mov dword [edi + 0x398], ecx
mov dword [edi + 0x39c], eax
mov ebx, dword [ebx + 0x24]
test ebx, ebx
je 0x489fca
mov dword [edi + 0x2b8], ebx
mov al, byte [ebp + 0x10]
test al, al
je 0x48a1c1
mov eax, dword [esi + 0x514]
mov ecx, dword [esi + 0x510]
mov ebx, eax
mov dword [ebp - 0x20], ebx
inc ebx
test ebx, ebx
jne 0x48a027
test ecx, ecx
je 0x48a014
mov edx, eax
dec eax
test edx, edx
je 0x489ffb
add ecx, 8
jmp 0x489fef
mov eax, dword [esi + 0x510]
push eax
call fcn.005664c5
add esp, 4
mov dword [esi + 0x510], 0
xor eax, eax
mov dword [esi + 0x518], eax
mov dword [esi + 0x514], eax
jmp 0x48a1a9
test ecx, ecx
jne 0x48a07c
lea edi, [ebx*8]
push edi
call fcn.0056649c
mov ecx, edi
mov dword [esi + 0x510], eax
mov edx, eax
mov esi, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
add esp, 4
and ecx, 3
mov dword [ebp + 0x10], ebx
rep stosb byte es:[edi], al
mov eax, ebx
mov ecx, eax
dec eax
test ecx, ecx
je 0x48a068
add edx, 8
jmp 0x48a05c
mov esi, dword [ebp - 0x14]
mov dword [esi + 0x518], ebx
mov dword [esi + 0x514], ebx
jmp 0x48a1a9
mov edi, dword [esi + 0x518]
cmp ebx, edi
jg 0x48a0db
cmp eax, ebx
jge 0x48a0ba
mov edx, ebx
lea edi, [ecx + eax*8]
sub edx, eax
xor eax, eax
mov dword [ebp + 0x10], edi
lea ecx, [edx*8]
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
mov ecx, edx
dec edx
test ecx, ecx
je 0x48a0cd
add eax, 8
jmp 0x48a0ae
jle 0x48a0d0
sub eax, ebx
lea ecx, [ecx + ebx*8]
mov edx, eax
dec eax
test edx, edx
je 0x48a0d0
add ecx, 8
jmp 0x48a0c1
mov esi, dword [ebp - 0x14]
mov dword [esi + 0x514], ebx
jmp 0x48a1a9
mov ecx, dword [esi + 0x51c]
test ecx, ecx
jne 0x48a109
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x48a0fc
mov ecx, 4
jmp 0x48a109
cmp ecx, 0x400
jle 0x48a109
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebx, eax
jl 0x48a112
mov eax, ebx
mov dword [ebp - 0x18], eax
shl eax, 3
push eax
call fcn.0056649c
mov edx, dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
mov edi, eax
add esp, 4
mov ecx, dword [edx + 0x514]
mov esi, dword [edx + 0x510]
shl ecx, 3
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x514]
mov edx, ebx
sub edx, ecx
lea edi, [eax + ecx*8]
xor eax, eax
lea ecx, [edx*8]
mov dword [ebp - 0x1c], edi
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x1c]
mov ecx, edx
dec edx
test ecx, ecx
je 0x48a17f
add eax, 8
jmp 0x48a173
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x510]
push eax
call fcn.005664c5
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [esi + 0x510], edx
mov dword [esi + 0x514], ebx
mov dword [esi + 0x518], eax
mov ecx, dword [esi + 0x510]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov dword [ecx + eax*8], edx
mov edx, dword [ebp + 0xc]
mov edi, edx
mov dword [ecx + eax*8 + 4], edx
lea ecx, [ebp - 0x125c]
mov byte [ebp - 4], 0
call fcn.004e27a0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc