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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x617312
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x7f206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
xor esi, esi
mov ecx, dword [edi + 0x44]
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jle 0x5d860f
nop dword [eax]
mov ecx, dword [edi + 0x44]
lea edx, [ebp - 0x14]
push esi
push edx
mov eax, dword [ecx]
call dword [eax + 8]
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00418480
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 1
test al, 0x10
je 0x5d8459
cmp eax, 0xffffffff
je 0x5d8459
test byte [edi + 0x20], 8
je 0x5d8583
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x5d84ad
mov eax, dword [ecx]
mov eax, dword [eax + 8]
jmp 0x5d849f
test byte [edi + 0x20], 4
je 0x5d8583
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
je 0x5d8583
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00418480
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 1
cmp eax, 0xffffffff
je 0x5d8583
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x5d84ad
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x14]
push edx
call eax
test al, al
je 0x5d8583
cmp byte [ebp - 0xd], 0
je 0x5d84df
lea ecx, [edi + 0x28]
call fcn.00403a20
cmp dword [edi + 0x2c], 0
je 0x5d84d3
push dword [edi + 0x28]
call fcn.004c2bdc
add esp, 4
mov dword [edi + 0x28], 0
xor al, al
mov dword [edi + 0x2c], 0
mov byte [ebp - 0xd], al
mov ecx, dword [edi + 0x30]
lea edx, [ecx + 1]
cmp edx, dword [edi + 0x2c]
jle 0x5d8509
mov eax, edx
test eax, eax
jns 0x5d84f3
add eax, 1
sar eax, 1
add edx, 8
lea ecx, [edi + 0x28]
add eax, edx
and eax, 0xfffffff8
push eax
call fcn.0041acc0
mov ecx, dword [edi + 0x30]
lea eax, [ecx + 1]
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x28]
lea ecx, [eax + ecx*4]
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d8531
mov eax, 1
lock xadd dword [ecx], eax
lea eax, [edi + 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.005223a0
lea ecx, [ebx + 1]
cmp ecx, dword [ebp - 0x2c]
jle 0x5d8568
mov eax, ecx
test eax, eax
jns 0x5d8552
add eax, 1
sar eax, 1
add ecx, 8
add eax, ecx
lea ecx, [ebp - 0x30]
and eax, 0xfffffff8
push eax
call fcn.0041acc0
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
lea ecx, [ebx]
mov eax, dword [ebp - 0x18]
lea ebx, [ecx + 1]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [edx + ecx*4], eax
mov dword [ebp - 0x18], 0x7a135c
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d85a9
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d85a9
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [edi + 0x44]
inc esi
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, eax
jl 0x5d8410
test ebx, ebx
jle 0x5d860f
sub esp, 0xc
lea ecx, [ebp - 0x30]
mov eax, esp
mov dword [eax], 0x7a7188
lea eax, [ebp - 0x1c]
push eax
call fcn.00514430
push 0
push eax
lea ecx, [edi + 0x168]
mov byte [ebp - 4], 4
call fcn.0059af30
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff8
cmp eax, 0x7a1354
je 0x5d860f
or ecx, 0xffffffff
lock xadd dword [eax], ecx
test ecx, ecx
jne 0x5d860f
push eax
call fcn.004a8172
add esp, 4
lea ecx, [edi - 0x88]
call fcn.005d8640
lea ecx, [ebp - 0x30]
call fcn.00403a20
push dword [ebp - 0x30]
call fcn.004c2bdc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret