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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551881
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x11d8
call fcn.0051cbf0
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 0x46fcf2
push eax
call fcn.004706f0
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x46fce2
mov cl, byte [ebp + 0x10]
test cl, cl
je 0x46fc61
cmp dword [edi + 0x644], 3
jne 0x46fc61
cmp byte [ebx + 0x3c], 3
je 0x46fc61
mov dword [edi + 0x644], eax
mov cl, byte [esi + 0x494]
test cl, cl
jne 0x46fc7f
mov cl, byte [esi + 0x495]
test cl, cl
je 0x46fccd
mov cl, byte [esi + 0x497]
test cl, cl
je 0x46fccd
mov ecx, dword [ebx + 0x84]
cmp dword [ecx - 8], eax
je 0x46fccd
mov eax, dword [ebx + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46fcc6
mov ebx, dword [ebx + 0x84]
push 0
push ebx
lea ecx, [edi + 0x20]
call fcn.004fed60
mov byte [edi + 0x34e], 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 + 0x34e], 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.00511ee0
lea ecx, [ebp - 0x11e8]
call fcn.004c1020
mov eax, dword [ebx + 0x50]
push 0
push eax
lea ecx, [ebp - 0x11e8]
mov byte [ebp - 4], 1
call fcn.004c10e0
test eax, eax
je 0x46fd68
push 0x8a0
call fcn.005380a1
mov ecx, eax
add esp, 4
mov dword [ebp + 0xc], ecx
test ecx, ecx
mov byte [ebp - 4], 2
je 0x46fd39
call fcn.004f5d30
mov edi, eax
jmp 0x46fd3b
xor edi, edi
push edi
lea ecx, [ebp - 0x11e8]
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 1
call fcn.004c1370
xor edx, edx
cmp eax, edx
je 0x46fd8c
cmp edi, edx
je 0x46fd68
mov ecx, edi
call fcn.004f5e70
push edi
call fcn.005380ca
add esp, 4
lea ecx, [ebp - 0x11e8]
mov byte [ebp - 4], 0
call fcn.004c1060
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 0x46fe23
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0xc8], 0x5602e8
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.00510d00
test al, al
je 0x46fe12
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 0x46fe0f
mov ecx, dword [ebp + 0xc]
push edx
call fcn.004fb310
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.0043c730
xor edx, edx
mov ecx, dword [ebx + 0x70]
cmp dword [ecx - 8], edx
jle 0x46fe3e
mov eax, dword [ebx + 0x74]
cmp dword [eax - 8], edx
jle 0x46fe3e
push eax
push ecx
mov ecx, edi
call fcn.004f9320
jmp 0x46fe8a
push str.IEUser_
push str.anonymous
mov ecx, edi
call fcn.004f9320
mov al, byte [esi + 0x428]
test al, al
je 0x46fe7e
mov al, byte [ebx + 0x46]
test al, al
jne 0x46fe7e
mov al, byte [ebx + 0x47]
test al, al
jne 0x46fe7e
mov eax, dword [esi + 0x430]
mov ecx, dword [esi + 0x42c]
push eax
push ecx
mov ecx, edi
call fcn.004f9320
jmp 0x46fe8a
mov ecx, dword [0x5ba8dc]
push edi
call fcn.004971b0
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x46fe9c
push eax
mov ecx, edi
call fcn.004fb3b0
mov ecx, dword [ebx + 0x90]
test ecx, ecx
jle 0x46feba
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x46feba
push ecx
push eax
lea ecx, [edi + 0x20]
call fcn.005009f0
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x46fecc
push eax
mov ecx, edi
call fcn.004f6200
mov al, byte [esi + 0x494]
test al, al
jne 0x46feea
mov al, byte [esi + 0x495]
test al, al
je 0x46ff1e
mov al, byte [esi + 0x497]
test al, al
je 0x46ff1e
mov ecx, dword [ebx + 0x84]
mov eax, dword [ecx - 8]
test eax, eax
je 0x46ff1e
mov eax, dword [ebx + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46ff1e
mov eax, dword [ebx + 0x84]
push 0
push eax
lea ecx, [edi + 0x20]
call fcn.004fed60
mov byte [edi + 0x34e], 1
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
test eax, eax
jl 0x46ff3a
jg 0x46ff2e
test ecx, ecx
jbe 0x46ff3a
mov dword [edi + 0x410], ecx
mov dword [edi + 0x414], eax
mov ebx, dword [ebx + 0x24]
test ebx, ebx
je 0x46ff47
mov dword [edi + 0x33c], ebx
mov al, byte [ebp + 0x10]
test al, al
je 0x47013e
mov eax, dword [esi + 0x4fc]
mov ecx, dword [esi + 0x4f8]
mov ebx, eax
mov dword [ebp - 0x20], ebx
inc ebx
test ebx, ebx
jne 0x46ffa4
test ecx, ecx
je 0x46ff91
mov edx, eax
dec eax
test edx, edx
je 0x46ff78
add ecx, 8
jmp 0x46ff6c
mov eax, dword [esi + 0x4f8]
push eax
call fcn.005380ca
add esp, 4
mov dword [esi + 0x4f8], 0
xor eax, eax
mov dword [esi + 0x500], eax
mov dword [esi + 0x4fc], eax
jmp 0x470126
test ecx, ecx
jne 0x46fff9
lea edi, [ebx*8]
push edi
call fcn.005380a1
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 0x46ffe5
add edx, 8
jmp 0x46ffd9
mov esi, dword [ebp - 0x14]
mov dword [esi + 0x500], ebx
mov dword [esi + 0x4fc], ebx
jmp 0x470126
mov edi, dword [esi + 0x500]
cmp ebx, edi
jg 0x470058
cmp eax, ebx
jge 0x470037
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 0x47004a
add eax, 8
jmp 0x47002b
jle 0x47004d
sub eax, ebx
lea ecx, [ecx + ebx*8]
mov edx, eax
dec eax
test edx, edx
je 0x47004d
add ecx, 8
jmp 0x47003e
mov esi, dword [ebp - 0x14]
mov dword [esi + 0x4fc], ebx
jmp 0x470126
mov ecx, dword [esi + 0x504]
test ecx, ecx
jne 0x470086
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x470079
mov ecx, 4
jmp 0x470086
cmp ecx, 0x400
jle 0x470086
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebx, eax
jl 0x47008f
mov eax, ebx
mov dword [ebp - 0x18], eax
shl eax, 3
push eax
call fcn.005380a1
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 0x4700fc
add eax, 8
jmp 0x4700f0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x4f8]
push eax
call fcn.005380ca
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.004c1060
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