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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545bcd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x577018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x3c], eax
mov edi, dword [ebx + 8]
sub esp, 0x18
mov ecx, dword [ebx + 0xc]
mov esi, dword [eax + 0x6c]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x38], ecx
mov ecx, esp
push 8
push str.temppath
mov dword [ebp - 0x58], 0
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
push dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.0041cef0
mov dword [ebp - 0x34], 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
jne 0x50c07a
mov ecx, edi
call fcn.004ee090
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x50c29d
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x50c06b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50c2bf
push ecx
push edx
call fcn.00517162
add esp, 8
jmp 0x50c29d
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x50c099
test al, 0x10
jne 0x50c278
lea ecx, [ebp - 0x54]
call fcn.004ee090
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x50c0d5
mov ecx, eax
call fcn.00408210
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x50c10f
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x50c105
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50c2c4
push ecx
push edx
call fcn.00517162
add esp, 8
cmp byte [ebx + 0x10], 0
je 0x50c161
lea ecx, [ebp - 0x54]
call fcn.004edef0
mov edx, eax
mov dword [ebp - 0x34], 6
mov ecx, edx
cmp dword [edx + 0x14], 8
jb 0x50c130
mov ecx, dword [edx]
cmp dword [ebp - 0x18], 8
lea esi, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae esi, dword [ebp - 0x2c]
cmp eax, dword [edx + 0x10]
jne 0x50c1a1
mov edx, eax
test edx, edx
je 0x50c161
sub esi, ecx
nop dword [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x50c1a1
add ecx, 2
sub edx, 1
jne 0x50c150
test byte [ebp - 0x34], 2
mov byte [ebp - 0x2d], 0
je 0x50c278
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x50c1b1
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x50c1a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50c2c9
jmp 0x50c1a7
mov byte [ebp - 0x2d], 1
jmp 0x50c16f
push ecx
push edx
call fcn.00517162
add esp, 8
cmp byte [ebp - 0x2d], 0
je 0x50c278
mov ecx, dword [ebp - 0x1c]
mov eax, bind
sub eax, ecx
cmp eax, 1
jb 0x50c2ce
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
push 1
push 0x55a22c
push ecx
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x54]
call fcn.004097f0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x34], esp
lea edx, [ebp - 0x54]
push 0x55a22c
call fcn.004175c0
sub esp, 0x14
mov byte [ebp - 4], 2
mov ecx, esp
push 8
push str.temppath
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
mov ecx, dword [ebp - 0x3c]
push dword [ebp - 0x38]
mov byte [ebp - 4], 1
mov ecx, dword [ecx + 0x6c]
call fcn.0041b1d0
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x50c278
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x50c26e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50c2d3
push ecx
push edx
call fcn.00517162
add esp, 8
movups xmm0, xmmword [ebp - 0x2c]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00517154
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
call fcn.00401640
call fcn.0051eb64
int3