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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c7a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x11d8
call fcn.00527220
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 0x475592
push eax
call fcn.00475f90
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x475582
mov cl, byte [ebp + 0x10]
test cl, cl
je 0x475501
cmp dword [edi + 0x65c], 3
jne 0x475501
cmp byte [ebx + 0x3c], 3
je 0x475501
mov dword [edi + 0x65c], eax
mov cl, byte [esi + 0x494]
test cl, cl
jne 0x47551f
mov cl, byte [esi + 0x495]
test cl, cl
je 0x47556d
mov cl, byte [esi + 0x497]
test cl, cl
je 0x47556d
mov ecx, dword [ebx + 0x84]
cmp dword [ecx - 8], eax
je 0x47556d
mov eax, dword [ebx + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x475566
mov ebx, dword [ebx + 0x84]
push 0
push ebx
lea ecx, [edi + 0x20]
call fcn.00509080
mov byte [edi + 0x367], 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 + 0x367], 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 edx, dword [ebp + 8]
push ebx
push edx
lea ecx, [esi + 8]
mov dword [ebx + 0x18], eax
call fcn.0051c450
lea ecx, [ebp - 0x11e8]
call fcn.004c8f20
mov eax, dword [ebx + 0x50]
push 0
push eax
lea ecx, [ebp - 0x11e8]
mov byte [ebp - 4], 1
call fcn.004c9080
test eax, eax
je 0x475608
push 0x8c0
call fcn.0054276d
mov ecx, eax
add esp, 4
mov dword [ebp + 0xc], ecx
test ecx, ecx
mov byte [ebp - 4], 2
je 0x4755d9
call fcn.004ff630
mov edi, eax
jmp 0x4755db
xor edi, edi
push edi
lea ecx, [ebp - 0x11e8]
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 1
call fcn.004c9600
xor edx, edx
cmp eax, edx
je 0x47562c
cmp edi, edx
je 0x475608
mov ecx, edi
call fcn.004ff780
push edi
call fcn.00542796
add esp, 4
lea ecx, [ebp - 0x11e8]
mov byte [ebp - 4], 0
call fcn.004c8f60
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
mov ecx, dword [ebx + 0x1c]
cmp ecx, edx
jl 0x4756c3
mov eax, dword [0x5c2a74]
mov dword [ebp - 0xc8], 0x56b594
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
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
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0xc8]
push edx
push eax
push ecx
lea ecx, [esi + 8]
mov byte [ebp - 4], 3
call fcn.0051b270
test al, al
je 0x4756b2
mov edx, dword [ebp - 0x78]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4756af
mov ecx, dword [ebp + 0xc]
push edx
call fcn.005050c0
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.0043fb90
xor edx, edx
mov ecx, dword [ebx + 0x70]
cmp dword [ecx - 8], edx
jle 0x4756de
mov eax, dword [ebx + 0x74]
cmp dword [eax - 8], edx
jle 0x4756de
push eax
push ecx
mov ecx, edi
call fcn.00502e20
jmp 0x47572a
push str.IEUser_
push str.anonymous
mov ecx, edi
call fcn.00502e20
mov al, byte [esi + 0x428]
test al, al
je 0x47571e
mov al, byte [ebx + 0x46]
test al, al
jne 0x47571e
mov al, byte [ebx + 0x47]
test al, al
jne 0x47571e
mov eax, dword [esi + 0x430]
mov ecx, dword [esi + 0x42c]
push eax
push ecx
mov ecx, edi
call fcn.00502e20
jmp 0x47572a
mov ecx, dword [0x5c74cc]
push edi
call fcn.0049ded0
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x47573c
push eax
mov ecx, edi
call fcn.00505160
mov ecx, dword [ebx + 0x90]
test ecx, ecx
jle 0x47575a
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x47575a
push ecx
push eax
lea ecx, [edi + 0x20]
call fcn.0050af80
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x47576c
push eax
mov ecx, edi
call fcn.004ffb10
mov al, byte [esi + 0x494]
test al, al
jne 0x47578a
mov al, byte [esi + 0x495]
test al, al
je 0x4757be
mov al, byte [esi + 0x497]
test al, al
je 0x4757be
mov ecx, dword [ebx + 0x84]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4757be
mov eax, dword [ebx + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4757be
mov eax, dword [ebx + 0x84]
push 0
push eax
lea ecx, [edi + 0x20]
call fcn.00509080
mov byte [edi + 0x367], 1
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
test eax, eax
jl 0x4757da
jg 0x4757ce
test ecx, ecx
jbe 0x4757da
mov dword [edi + 0x428], ecx
mov dword [edi + 0x42c], eax
mov ebx, dword [ebx + 0x24]
test ebx, ebx
je 0x4757e7
mov dword [edi + 0x354], ebx
mov al, byte [ebp + 0x10]
test al, al
je 0x4759de
mov eax, dword [esi + 0x4fc]
mov ecx, dword [esi + 0x4f8]
mov ebx, eax
mov dword [ebp - 0x20], ebx
inc ebx
test ebx, ebx
jne 0x475844
test ecx, ecx
je 0x475831
mov edx, eax
dec eax
test edx, edx
je 0x475818
add ecx, 8
jmp 0x47580c
mov eax, dword [esi + 0x4f8]
push eax
call fcn.00542796
add esp, 4
mov dword [esi + 0x4f8], 0
xor eax, eax
mov dword [esi + 0x500], eax
mov dword [esi + 0x4fc], eax
jmp 0x4759c6
test ecx, ecx
jne 0x475899
lea edi, [ebx*8]
push edi
call fcn.0054276d
mov ecx, edi
mov dword [esi + 0x4f8], 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 0x475885
add edx, 8
jmp 0x475879
mov esi, dword [ebp - 0x14]
mov dword [esi + 0x500], ebx
mov dword [esi + 0x4fc], ebx
jmp 0x4759c6
mov edi, dword [esi + 0x500]
cmp ebx, edi
jg 0x4758f8
cmp eax, ebx
jge 0x4758d7
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 0x4758ea
add eax, 8
jmp 0x4758cb
jle 0x4758ed
sub eax, ebx
lea ecx, [ecx + ebx*8]
mov edx, eax
dec eax
test edx, edx
je 0x4758ed
add ecx, 8
jmp 0x4758de
mov esi, dword [ebp - 0x14]
mov dword [esi + 0x4fc], ebx
jmp 0x4759c6
mov ecx, dword [esi + 0x504]
test ecx, ecx
jne 0x475926
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x475919
mov ecx, 4
jmp 0x475926
cmp ecx, 0x400
jle 0x475926
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebx, eax
jl 0x47592f
mov eax, ebx
mov dword [ebp - 0x18], eax
shl eax, 3
push eax
call fcn.0054276d
mov edx, dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
mov edi, eax
add esp, 4
mov ecx, dword [edx + 0x4fc]
mov esi, dword [edx + 0x4f8]
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 + 0x4fc]
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 0x47599c
add eax, 8
jmp 0x475990
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x4f8]
push eax
call fcn.00542796
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [esi + 0x4f8], edx
mov dword [esi + 0x4fc], ebx
mov dword [esi + 0x500], eax
mov ecx, dword [esi + 0x4f8]
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 - 0x11e8]
mov byte [ebp - 4], 0
call fcn.004c8f60
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