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

Disassembly:
push ebp
lea ebp, [esp - 0x68e04]
mov eax, 0x68e04
call fcn.00614970
push 0xffffffffffffffff
push 0x658a22
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp + 0x68e00], 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 + 0xad3], 0
je 0x5b9899
lea ecx, [ebp - 0x14]
call fcn.00402500
mov dword [ebp - 4], edi
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x20]
call fcn.00587240
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.005ac780
add esp, 8
test eax, eax
jne 0x5b9885
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402570
jmp 0x5b98a2
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402570
jmp 0x5b98a2
mov ebx, dword [esi + 0xaf8]
mov dword [ebp - 0x18], ebx
cmp ebx, edi
je 0x5b991b
test byte [ebx + 0xc], 1
je 0x5b991b
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5b991b
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x5b991b
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
call fcn.005aa7d0
push str._a___d__b__Y__H:_M:_S_GMT
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00403180
mov dword [ebp - 4], 1
mov eax, dword [eax]
mov edx, dword [esi + 0x4e0]
push edx
push eax
lea ecx, [esi + 0x20]
call fcn.005c5190
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [esi + 0x363], 1
lea edi, [esi + 0x944]
cmp dword [edi], 0
je 0x5b9bb6
push 0x5aa840
push 0x5aad00
push 0x20
push 0x3470
lea eax, [ebp]
push eax
call fcn.00615939
mov dword [ebp - 4], 2
push 0x878
call fcn.005e7678
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x5b9981
mov ecx, dword [esi]
push ecx
lea edx, [esi + 0x514]
push edx
lea ecx, [esi + 0x20]
push ecx
lea edx, [ebp]
push edx
push edi
mov ecx, eax
call fcn.00586090
mov edi, eax
jmp 0x5b9983
xor edi, edi
mov byte [ebp - 4], 2
mov dword [esi + 0x938], edi
mov eax, dword [esi + 4]
mov dword [edi + 0x180], eax
mov dword [edi + 0x258], 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 + 0x160], ebx
cmp dword [esi + 0xac8], 0
je 0x5b99f1
cmp dword [esi + 0xacc], 0
je 0x5b99f1
mov ecx, dword [esi + 0x4e8]
mov eax, dword [esi + 0x4ec]
test eax, eax
jl 0x5b99f1
jg 0x5b99e2
test ecx, ecx
jbe 0x5b99f1
push 1
push eax
push ecx
mov ecx, dword [esi + 0x938]
call fcn.005a9480
mov eax, dword [esi + 0xabc]
push eax
mov ecx, dword [esi + 0xac0]
push ecx
mov edx, dword [esi + 0xacc]
push edx
mov eax, dword [esi + 0xac8]
push eax
xor ecx, ecx
cmp byte [esi + 0xab8], cl
sete cl
push ecx
mov edx, dword [esi + 0x4e0]
push edx
mov ecx, edi
call fcn.005a9190
mov dword [esi + 0xab4], eax
test eax, eax
jne 0x5b9b8b
mov eax, dword [esi + 8]
mov dword [edi + 0x13c], eax
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx + 8]
call eax
mov dword [esi + 0xab4], eax
cmp eax, 0x7583
jne 0x5b9ab1
mov dword [esi + 0x938], 0
mov ecx, edi
call fcn.00584c80
push edi
call fcn.005e76a7
add esp, 4
mov dword [esi + 0xab4], 0
test ebx, ebx
je 0x5b9a85
push ebx
call fcn.005e76a7
add esp, 4
mov ecx, esi
call fcn.005b97f0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push 0x5aa840
push 0x20
push 0x3470
lea ecx, [ebp]
push ecx
call fcn.006137c9
mov eax, esi
jmp 0x5b9fd7
cmp eax, 0x7581
jne 0x5b9b15
mov dword [esi + 0x938], 0
mov ecx, edi
call fcn.00584c80
push edi
call fcn.005e76a7
add esp, 4
mov dword [esi + 0xab4], 0
test ebx, ebx
je 0x5b9ae9
push ebx
call fcn.005e76a7
add esp, 4
mov ecx, esi
call fcn.005ba000
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push 0x5aa840
push 0x20
push 0x3470
lea edx, [ebp]
push edx
call fcn.006137c9
mov eax, esi
jmp 0x5b9fd7
mov ecx, esi
call fcn.005b2040
mov ecx, dword [esi + 0x938]
mov eax, dword [ecx + 0x1c0]
mov edx, dword [ecx + 0x1c4]
mov dword [esi + 0x4f0], eax
mov dword [esi + 0x4f4], edx
mov edx, dword [ecx + 0x1b8]
mov ebx, dword [ecx + 0x1bc]
mov eax, edx
or eax, ebx
je 0x5b9b63
cmp dword [esi + 0x340], 0x20
je 0x5b9b63
mov eax, ebx
mov dword [esi + 0x4e8], edx
mov dword [esi + 0x4ec], eax
cmp dword [esi + 0x340], 0
je 0x5b9b78
fld qword [ecx + 0x188]
fstp qword [esi + 0x500]
cmp dword [esi + 0x50c], 0
jne 0x5b9b88
push 1
call fcn.005a8110
mov ebx, dword [ebp - 0x18]
mov dword [esi + 0x938], 0
mov ecx, edi
call fcn.00584c80
push edi
call fcn.005e76a7
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x5aa840
jmp 0x5b9e98
push fcn.005cede0
push fcn.005745e0
push 0x20
push 0x3470
lea ecx, [ebp]
push ecx
call fcn.00615939
mov dword [ebp - 4], 4
push 0x878
call fcn.005e7678
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x5b9c0d
mov edx, dword [esi]
push edx
lea ecx, [esi + 0x514]
push ecx
lea edx, [esi + 0x20]
push edx
lea ecx, [ebp]
push ecx
push edi
mov ecx, eax
call fcn.00586090
mov edi, eax
jmp 0x5b9c0f
xor edi, edi
mov byte [ebp - 4], 4
mov dword [esi + 0x938], edi
mov edx, dword [esi + 4]
mov dword [edi + 0x180], edx
mov dword [edi + 0x258], 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 + 0x160], ebx
cmp dword [esi + 0xac8], 0
je 0x5b9c7d
cmp dword [esi + 0xacc], 0
je 0x5b9c7d
mov ecx, dword [esi + 0x4e8]
mov eax, dword [esi + 0x4ec]
test eax, eax
jl 0x5b9c7d
jg 0x5b9c6e
test ecx, ecx
jbe 0x5b9c7d
push 1
push eax
push ecx
mov ecx, dword [esi + 0x938]
call fcn.005a9480
mov edx, dword [esi + 0xabc]
push edx
mov eax, dword [esi + 0xac0]
push eax
mov ecx, dword [esi + 0xacc]
push ecx
mov edx, dword [esi + 0xac8]
push edx
xor eax, eax
cmp byte [esi + 0xab8], al
sete al
push eax
mov ecx, dword [esi + 0x4e0]
push ecx
mov ecx, edi
call fcn.005a9190
mov dword [esi + 0xab4], eax
test eax, eax
jne 0x5b9e72
mov edx, dword [esi + 8]
mov dword [edi + 0x13c], edx
mov eax, dword [edi]
mov ecx, edi
mov edx, dword [eax + 8]
call edx
mov dword [esi + 0xab4], eax
cmp eax, 0x7583
jne 0x5b9d3d
mov dword [esi + 0x938], 0
mov ecx, edi
call fcn.00584c80
push edi
call fcn.005e76a7
add esp, 4
mov dword [esi + 0xab4], 0
test ebx, ebx
je 0x5b9d11
push ebx
call fcn.005e76a7
add esp, 4
mov ecx, esi
call fcn.005b97f0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push fcn.005cede0
push 0x20
push 0x3470
lea eax, [ebp]
push eax
call fcn.006137c9
mov eax, esi
jmp 0x5b9fd7
cmp eax, 0x7563
jne 0x5b9d8f
mov dword [esi + 0x938], 0
mov ecx, edi
call fcn.00584c80
push edi
call fcn.005e76a7
add esp, 4
mov dword [esi + 0xab4], 0
test ebx, ebx
je 0x5b9d75
push ebx
call fcn.005e76a7
add esp, 4
mov ecx, esi
call fcn.005b8cb0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push fcn.005cede0
jmp 0x5b9a9a
cmp eax, 0x7581
jne 0x5b9df3
mov dword [esi + 0x938], 0
mov ecx, edi
call fcn.00584c80
push edi
call fcn.005e76a7
add esp, 4
mov dword [esi + 0xab4], 0
test ebx, ebx
je 0x5b9dc7
push ebx
call fcn.005e76a7
add esp, 4
mov ecx, esi
call fcn.005ba000
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push fcn.005cede0
push 0x20
push 0x3470
lea edx, [ebp]
push edx
call fcn.006137c9
mov eax, esi
jmp 0x5b9fd7
mov ecx, esi
call fcn.005b2040
mov ecx, dword [esi + 0x938]
mov eax, dword [ecx + 0x1c0]
mov edx, dword [ecx + 0x1c4]
mov dword [esi + 0x4f0], eax
mov dword [esi + 0x4f4], edx
mov edx, dword [ecx + 0x1b8]
mov ebx, dword [ecx + 0x1bc]
mov eax, edx
or eax, ebx
je 0x5b9e41
cmp dword [esi + 0x340], 0x20
je 0x5b9e41
mov eax, ebx
mov dword [esi + 0x4e8], edx
mov dword [esi + 0x4ec], eax
cmp dword [esi + 0x340], 0
je 0x5b9e56
fld qword [ecx + 0x188]
fstp qword [esi + 0x500]
cmp dword [esi + 0x4e0], 0
je 0x5b9e6f
cmp dword [esi + 0x50c], 0
jne 0x5b9e6f
push 1
call fcn.005a8110
mov ebx, dword [ebp - 0x18]
mov dword [esi + 0x938], 0
mov ecx, edi
call fcn.00584c80
push edi
call fcn.005e76a7
add esp, 4
mov dword [ebp - 4], 0xffffffff
push fcn.005cede0
push 0x20
push 0x3470
lea eax, [ebp]
push eax
call fcn.006137c9
test ebx, ebx
je 0x5b9fca
cmp dword [esi + 0xab4], 0x7573
jne 0x5b9f97
cmp dword [esi + 0x4ec], 0
jg 0x5b9f61
jl 0x5b9edc
cmp dword [esi + 0x4e8], 0
ja 0x5b9f61
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 0x5b9f61
lea edx, [ebp - 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x4e8], eax
mov dword [esi + 0x4ec], 0
cmp eax, 0xffffffff
jne 0x5b9f3f
cmp dword [esi + 0x4ec], 0
jne 0x5b9f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5b9f3f
xor eax, eax
mov dword [esi + 0x4e8], eax
mov dword [esi + 0x4ec], eax
jmp 0x5b9f5a
push 1
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00617ef0
add dword [esi + 0x4e8], eax
adc dword [esi + 0x4ec], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x48], 0
je 0x5b9f8d
mov edx, dword [ebx + 0x48]
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b9f70
sub eax, edi
sar eax, 1
je 0x5b9f8d
push edx
lea ecx, [esi + 0x37c]
call fcn.0040e430
mov dword [esi + 0xab4], 0
cmp ebx, dword [esi + 0xaf8]
je 0x5b9fca
mov dword [ebp - 4], 6
wait
push ebx
call fcn.005e76a7
add esp, 4
wait
mov dword [ebp - 4], 0xffffffff
jmp 0x5b9fca
mov ecx, esi
call fcn.005b4620
mov eax, dword [esi + 0xab4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68e00]
xor ecx, ebp
call fcn.00613241
add ebp, 0x68e04
mov esp, ebp
pop ebp
ret