Function at 0x5c5ed0
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x69104]
mov eax, 0x69104
call fcn.006222c0
push 0xffffffffffffffff
push 0x666ae2
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x69100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 0x18], edi
cmp byte [esi + 0xaeb], 0
je 0x5c5f79
lea ecx, [ebp - 0x14]
call fcn.004024f0
mov dword [ebp - 4], edi
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x20]
call fcn.005928c0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.005b8b60
add esp, 8
test eax, eax
jne 0x5c5f65
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402560
jmp 0x5c5f82
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402560
jmp 0x5c5f82
mov ebx, dword [esi + 0xb10]
mov dword [ebp - 0x18], ebx
cmp ebx, edi
je 0x5c5ffb
test byte [ebx + 0xc], 1
je 0x5c5ffb
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5c5ffb
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x5c5ffb
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
call fcn.005b6b20
push str._a___d__b__Y__H:_M:_S_GMT
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00403160
mov dword [ebp - 4], 1
mov eax, dword [eax]
mov edx, dword [esi + 0x4f8]
push edx
push eax
lea ecx, [esi + 0x20]
call fcn.005d1dc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402560
mov byte [esi + 0x377], 1
lea edi, [esi + 0x95c]
cmp dword [edi], 0
je 0x5c6296
push 0x5b6c00
push 0x5b70c0
push 0x20
push 0x3488
lea eax, [ebp]
push eax
call fcn.00623289
mov dword [ebp - 4], 2
push 0x890
call fcn.005f4e18
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x5c6061
mov ecx, dword [esi]
push ecx
lea edx, [esi + 0x52c]
push edx
lea ecx, [esi + 0x20]
push ecx
lea edx, [ebp]
push edx
push edi
mov ecx, eax
call fcn.005917e0
mov edi, eax
jmp 0x5c6063
xor edi, edi
mov byte [ebp - 4], 2
mov dword [esi + 0x950], edi
mov eax, dword [esi + 4]
mov dword [edi + 0x188], eax
mov dword [edi + 0x260], esi
lea eax, [esi + 0x10]
mov dword [edi + 0x10], eax
mov dword [edi + 0x100], eax
lea ecx, [esi + 0x14]
mov dword [edi + 0x14], ecx
lea edx, [esi + 0x18]
mov dword [edi + 0x18], edx
mov dword [edi + 0x16c], ebx
cmp dword [esi + 0xae0], 0
je 0x5c60d1
cmp dword [esi + 0xae4], 0
je 0x5c60d1
mov ecx, dword [esi + 0x500]
mov eax, dword [esi + 0x504]
test eax, eax
jl 0x5c60d1
jg 0x5c60c2
test ecx, ecx
jbe 0x5c60d1
push 1
push eax
push ecx
mov ecx, dword [esi + 0x950]
call fcn.005b57e0
mov eax, dword [esi + 0xad4]
push eax
mov ecx, dword [esi + 0xad8]
push ecx
mov edx, dword [esi + 0xae4]
push edx
mov eax, dword [esi + 0xae0]
push eax
xor ecx, ecx
cmp byte [esi + 0xad0], cl
sete cl
push ecx
mov edx, dword [esi + 0x4f8]
push edx
mov ecx, edi
call fcn.005b54f0
mov dword [esi + 0xacc], eax
test eax, eax
jne 0x5c626b
mov eax, dword [esi + 8]
mov dword [edi + 0x148], eax
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx + 8]
call eax
mov dword [esi + 0xacc], eax
cmp eax, 0x7583
jne 0x5c6191
mov dword [esi + 0x950], 0
mov ecx, edi
call fcn.00590380
push edi
call fcn.005f4e52
add esp, 4
mov dword [esi + 0xacc], 0
test ebx, ebx
je 0x5c6165
push ebx
call fcn.005f4e52
add esp, 4
mov ecx, esi
call fcn.005c5ed0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push 0x5b6c00
push 0x20
push 0x3488
lea ecx, [ebp]
push ecx
call fcn.00621132
mov eax, esi
jmp 0x5c66b7
cmp eax, 0x7581
jne 0x5c61f5
mov dword [esi + 0x950], 0
mov ecx, edi
call fcn.00590380
push edi
call fcn.005f4e52
add esp, 4
mov dword [esi + 0xacc], 0
test ebx, ebx
je 0x5c61c9
push ebx
call fcn.005f4e52
add esp, 4
mov ecx, esi
call fcn.005c66e0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push 0x5b6c00
push 0x20
push 0x3488
lea edx, [ebp]
push edx
call fcn.00621132
mov eax, esi
jmp 0x5c66b7
mov ecx, esi
call fcn.005be520
mov ecx, dword [esi + 0x950]
mov eax, dword [ecx + 0x1c8]
mov edx, dword [ecx + 0x1cc]
mov dword [esi + 0x508], eax
mov dword [esi + 0x50c], edx
mov edx, dword [ecx + 0x1c0]
mov ebx, dword [ecx + 0x1c4]
mov eax, edx
or eax, ebx
je 0x5c6243
cmp dword [esi + 0x354], 0x20
je 0x5c6243
mov eax, ebx
mov dword [esi + 0x500], edx
mov dword [esi + 0x504], eax
cmp dword [esi + 0x354], 0
je 0x5c6258
fld qword [ecx + 0x190]
fstp qword [esi + 0x518]
cmp dword [esi + 0x524], 0
jne 0x5c6268
push 1
call fcn.005b44e0
mov ebx, dword [ebp - 0x18]
mov dword [esi + 0x950], 0
mov ecx, edi
call fcn.00590380
push edi
call fcn.005f4e52
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x5b6c00
jmp 0x5c6578
push fcn.005dbc90
push fcn.0057f130
push 0x20
push 0x3488
lea ecx, [ebp]
push ecx
call fcn.00623289
mov dword [ebp - 4], 4
push 0x890
call fcn.005f4e18
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x5c62ed
mov edx, dword [esi]
push edx
lea ecx, [esi + 0x52c]
push ecx
lea edx, [esi + 0x20]
push edx
lea ecx, [ebp]
push ecx
push edi
mov ecx, eax
call fcn.005917e0
mov edi, eax
jmp 0x5c62ef
xor edi, edi
mov byte [ebp - 4], 4
mov dword [esi + 0x950], edi
mov edx, dword [esi + 4]
mov dword [edi + 0x188], edx
mov dword [edi + 0x260], esi
lea eax, [esi + 0x10]
mov dword [edi + 0x10], eax
mov dword [edi + 0x100], eax
lea eax, [esi + 0x14]
mov dword [edi + 0x14], eax
lea ecx, [esi + 0x18]
mov dword [edi + 0x18], ecx
mov dword [edi + 0x16c], ebx
cmp dword [esi + 0xae0], 0
je 0x5c635d
cmp dword [esi + 0xae4], 0
je 0x5c635d
mov ecx, dword [esi + 0x500]
mov eax, dword [esi + 0x504]
test eax, eax
jl 0x5c635d
jg 0x5c634e
test ecx, ecx
jbe 0x5c635d
push 1
push eax
push ecx
mov ecx, dword [esi + 0x950]
call fcn.005b57e0
mov edx, dword [esi + 0xad4]
push edx
mov eax, dword [esi + 0xad8]
push eax
mov ecx, dword [esi + 0xae4]
push ecx
mov edx, dword [esi + 0xae0]
push edx
xor eax, eax
cmp byte [esi + 0xad0], al
sete al
push eax
mov ecx, dword [esi + 0x4f8]
push ecx
mov ecx, edi
call fcn.005b54f0
mov dword [esi + 0xacc], eax
test eax, eax
jne 0x5c6552
mov edx, dword [esi + 8]
mov dword [edi + 0x148], edx
mov eax, dword [edi]
mov ecx, edi
mov edx, dword [eax + 8]
call edx
mov dword [esi + 0xacc], eax
cmp eax, 0x7583
jne 0x5c641d
mov dword [esi + 0x950], 0
mov ecx, edi
call fcn.00590380
push edi
call fcn.005f4e52
add esp, 4
mov dword [esi + 0xacc], 0
test ebx, ebx
je 0x5c63f1
push ebx
call fcn.005f4e52
add esp, 4
mov ecx, esi
call fcn.005c5ed0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push fcn.005dbc90
push 0x20
push 0x3488
lea eax, [ebp]
push eax
call fcn.00621132
mov eax, esi
jmp 0x5c66b7
cmp eax, 0x7563
jne 0x5c646f
mov dword [esi + 0x950], 0
mov ecx, edi
call fcn.00590380
push edi
call fcn.005f4e52
add esp, 4
mov dword [esi + 0xacc], 0
test ebx, ebx
je 0x5c6455
push ebx
call fcn.005f4e52
add esp, 4
mov ecx, esi
call fcn.005c5390
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push fcn.005dbc90
jmp 0x5c617a
cmp eax, 0x7581
jne 0x5c64d3
mov dword [esi + 0x950], 0
mov ecx, edi
call fcn.00590380
push edi
call fcn.005f4e52
add esp, 4
mov dword [esi + 0xacc], 0
test ebx, ebx
je 0x5c64a7
push ebx
call fcn.005f4e52
add esp, 4
mov ecx, esi
call fcn.005c66e0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push fcn.005dbc90
push 0x20
push 0x3488
lea edx, [ebp]
push edx
call fcn.00621132
mov eax, esi
jmp 0x5c66b7
mov ecx, esi
call fcn.005be520
mov ecx, dword [esi + 0x950]
mov eax, dword [ecx + 0x1c8]
mov edx, dword [ecx + 0x1cc]
mov dword [esi + 0x508], eax
mov dword [esi + 0x50c], edx
mov edx, dword [ecx + 0x1c0]
mov ebx, dword [ecx + 0x1c4]
mov eax, edx
or eax, ebx
je 0x5c6521
cmp dword [esi + 0x354], 0x20
je 0x5c6521
mov eax, ebx
mov dword [esi + 0x500], edx
mov dword [esi + 0x504], eax
cmp dword [esi + 0x354], 0
je 0x5c6536
fld qword [ecx + 0x190]
fstp qword [esi + 0x518]
cmp dword [esi + 0x4f8], 0
je 0x5c654f
cmp dword [esi + 0x524], 0
jne 0x5c654f
push 1
call fcn.005b44e0
mov ebx, dword [ebp - 0x18]
mov dword [esi + 0x950], 0
mov ecx, edi
call fcn.00590380
push edi
call fcn.005f4e52
add esp, 4
mov dword [ebp - 4], 0xffffffff
push fcn.005dbc90
push 0x20
push 0x3488
lea eax, [ebp]
push eax
call fcn.00621132
test ebx, ebx
je 0x5c66aa
cmp dword [esi + 0xacc], 0x7573
jne 0x5c6677
cmp dword [esi + 0x504], 0
jg 0x5c6641
jl 0x5c65bc
cmp dword [esi + 0x500], 0
ja 0x5c6641
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5c6641
lea edx, [ebp - 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x500], eax
mov dword [esi + 0x504], 0
cmp eax, 0xffffffff
jne 0x5c661f
cmp dword [esi + 0x504], 0
jne 0x5c661f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5c661f
xor eax, eax
mov dword [esi + 0x500], eax
mov dword [esi + 0x504], eax
jmp 0x5c663a
push 1
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.006254d0
add dword [esi + 0x500], eax
adc dword [esi + 0x504], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x48], 0
je 0x5c666d
mov edx, dword [ebx + 0x48]
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5c6650
sub eax, edi
sar eax, 1
je 0x5c666d
push edx
lea ecx, [esi + 0x390]
call fcn.0040e500
mov dword [esi + 0xacc], 0
cmp ebx, dword [esi + 0xb10]
je 0x5c66aa
mov dword [ebp - 4], 6
wait
push ebx
call fcn.005f4e52
add esp, 4
wait
mov dword [ebp - 4], 0xffffffff
jmp 0x5c66aa
mov ecx, esi
call fcn.005c0b00
mov eax, dword [esi + 0xacc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x69100]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0x69104
mov esp, ebp
pop ebp
ret