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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x80
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x5726e0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
xor esi, esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x3c], edi
cmp esi, 4
ja 0x57185a
nop word [eax + eax]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x57162a
mov eax, dword [edi]
mov dword [ebp - 0x10], 0xffffffff
push eax
call dword [0x8342a0]
cmp eax, 0xffffffff
je 0x5718e9
mov dword [ebp - 0x48], eax
and eax, 0x410
cmp eax, 0x10
jne 0x57187d
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x38]
push eax
push 0
push 0x10
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.00576170
add esp, 0x14
mov eax, dword [ebp - 0x30]
test al, 1
je 0x571692
cmp eax, 1
jne 0x5717d0
cmp dword [ebp - 0x38], 0
jne 0x5717d0
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x28]
test ecx, ecx
mov ebx, dword [ebp - 0x2c]
je 0x571760
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x5716c1
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x28]
cmp ecx, esi
mov eax, dword [ebp - 0x20]
je 0x57176d
test ecx, ecx
je 0x5716cb
cmp dword [ecx + 0x34], 0
jne 0x5716d7
xor edi, edi
test esi, esi
je 0x57174f
cmp dword [esi + 0x34], 0
je 0x57174f
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
add ecx, 0xc
mov dword [ebp - 0x10], 1
mov edx, ebx
call fcn.005715c0
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
adc edx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x571714
mov eax, dword [ebx + 8]
test al, 1
je 0x571714
mov edi, 1
cmp eax, 1
jne 0x57174c
cmp dword [ebx], 0
jne 0x57174c
push ebx
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x24], edx
call fcn.005777a0
mov edx, dword [ebp - 0x24]
add esp, 8
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x5716b0
mov eax, dword [ebx + 8]
test al, 1
je 0x5716b0
mov edi, 1
cmp eax, 1
jne 0x57174c
cmp dword [ebx], 0
je 0x5716b0
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
test esi, esi
jne 0x571773
jmp 0x571790
mov dword [ebp - 0x20], 0
xor edx, edx
xor edi, edi
jmp 0x571790
xor edi, edi
test esi, esi
je 0x571790
lock dec dword [esi]
jne 0x571790
mov ecx, esi
mov dword [ebp - 0x24], edx
call fcn.00576080
push esi
call fcn.00576050
mov edx, dword [ebp - 0x24]
add esp, 4
nop
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x5717b2
lock dec dword [esi]
jne 0x5717b2
mov ecx, esi
mov dword [ebp - 0x24], edx
call fcn.00576080
push esi
call fcn.00576050
mov edx, dword [ebp - 0x24]
add esp, 4
cmp edi, 4
jne 0x571851
mov esi, dword [ebp - 0x4c]
inc esi
mov edi, dword [ebp - 0x3c]
cmp esi, 4
jbe 0x571620
jmp 0x57185a
mov dword [ebp - 0x44], 0x14
mov dword [ebp - 0x40], 0x853d60
lea eax, [ebp - 0x44]
push eax
lea esi, [ebp - 0x38]
push esi
call fcn.005719e0
add esp, 8
test al, al
mov ebx, dword [ebp - 0x2c]
jne 0x571814
mov dword [ebp - 0x54], 0x72
mov dword [ebp - 0x50], 0x853d60
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.005719e0
add esp, 8
test al, al
je 0x571827
mov dword [ebp - 0x20], 0
mov edi, 4
xor edx, edx
jmp 0x571790
test ebx, ebx
je 0x571959
mov eax, dword [ebp - 0x30]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x38]
movsd qword [ebx], xmm0
mov dword [ebp - 0x20], 0
mov edi, 1
xor edx, edx
jmp 0x571790
test edi, edi
mov edi, dword [ebp - 0x3c]
jne 0x571871
jmp 0x571886
test ebx, ebx
je 0x57191a
mov eax, dword [ebp - 0x30]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x38]
movsd qword [ebx], xmm0
mov eax, 0xffffffff
mov edx, 0xffffffff
jmp 0x5718be
mov dword [ebp - 0x20], 0
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
mov edx, dword [ebp - 0x48]
push ebx
call fcn.00570af0
add esp, 4
mov ecx, eax
test ebx, ebx
je 0x5718ae
mov esi, ebx
mov ebx, dword [ebx + 8]
test bl, 1
jne 0x5718d3
movzx eax, cl
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov edx, dword [ebp - 0x24]
adc edx, 0
mov eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0xffffffff
mov edx, 0xffffffff
cmp ebx, 1
jne 0x5718be
cmp dword [esi], 0
jne 0x5718be
jmp 0x5718ae
call dword [0x834078]
mov esi, eax
mov ecx, eax
call fcn.0056f6e0
mov ecx, eax
xor eax, eax
mov edx, 0
test cl, cl
jne 0x5718be
push 0x7d6f4c
push ebx
push edi
push esi
call fcn.00578f40
add esp, 0x10
jmp 0x571871
mov dword [ebp - 0x10], 0xffffffff
sub esp, 0x14
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x10], eax
movsd xmm0, qword [ebp - 0x38]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], edi
mov dword [esp], 0x7d6f6a
lea esi, [ebp - 0x8c]
mov ecx, esi
call fcn.00578260
push 0x829174
push esi
call fcn.0073147b
sub esp, 0x14
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x10], eax
movsd xmm0, qword [ebp - 0x38]
movsd qword [esp + 8], xmm0
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov dword [esp], 0x7d6f4c
lea ecx, [ebp - 0x70]
call fcn.00578260
push 0x829174
lea eax, [ebp - 0x70]
push eax
call fcn.0073147b
add esp, 8
nop word cs:[eax + eax]
push ebp
sub esp, 0x14
add ebp, 0xc
lea ecx, [ebp - 0x44]
call fcn.00547600
add esp, 0x14
pop ebp
ret