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

Disassembly:
push ebp
lea ebp, [esp - 0x68e04]
mov eax, 0x68e04
call fcn.006197b0
push 0xffffffffffffffff
push 0x65ddf2
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x74f8a0]
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 + 0xadb], 0
je 0x5bdb89
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.0058ae10
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.005b07b0
add esp, 8
test eax, eax
jne 0x5bdb75
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402570
jmp 0x5bdb92
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402570
jmp 0x5bdb92
mov ebx, dword [esi + 0xb00]
mov dword [ebp - 0x18], ebx
cmp ebx, edi
je 0x5bdc0b
test byte [ebx + 0xc], 1
je 0x5bdc0b
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5bdc0b
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x5bdc0b
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
call fcn.005ae790
push str._a___d__b__Y__H:_M:_S_GMT
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00403170
mov dword [ebp - 4], 1
mov eax, dword [eax]
mov edx, dword [esi + 0x4e8]
push edx
push eax
lea ecx, [esi + 0x20]
call fcn.005c94f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [esi + 0x363], 1
lea edi, [esi + 0x94c]
cmp dword [edi], 0
je 0x5bdea6
push 0x5ae870
push 0x5aed30
push 0x20
push 0x3470
lea eax, [ebp]
push eax
call fcn.0061a779
mov dword [ebp - 4], 2
push 0x878
call fcn.005ec308
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x5bdc71
mov ecx, dword [esi]
push ecx
lea edx, [esi + 0x51c]
push edx
lea ecx, [esi + 0x20]
push ecx
lea edx, [ebp]
push edx
push edi
mov ecx, eax
call fcn.00589c60
mov edi, eax
jmp 0x5bdc73
xor edi, edi
mov byte [ebp - 4], 2
mov dword [esi + 0x940], 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 + 0xad0], 0
je 0x5bdce1
cmp dword [esi + 0xad4], 0
je 0x5bdce1
mov ecx, dword [esi + 0x4f0]
mov eax, dword [esi + 0x4f4]
test eax, eax
jl 0x5bdce1
jg 0x5bdcd2
test ecx, ecx
jbe 0x5bdce1
push 1
push eax
push ecx
mov ecx, dword [esi + 0x940]
call fcn.005ad4b0
mov eax, dword [esi + 0xac4]
push eax
mov ecx, dword [esi + 0xac8]
push ecx
mov edx, dword [esi + 0xad4]
push edx
mov eax, dword [esi + 0xad0]
push eax
xor ecx, ecx
cmp byte [esi + 0xac0], cl
sete cl
push ecx
mov edx, dword [esi + 0x4e8]
push edx
mov ecx, edi
call fcn.005ad1c0
mov dword [esi + 0xabc], eax
test eax, eax
jne 0x5bde7b
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 + 0xabc], eax
cmp eax, 0x7583
jne 0x5bdda1
mov dword [esi + 0x940], 0
mov ecx, edi
call fcn.00588850
push edi
call fcn.005ec337
add esp, 4
mov dword [esi + 0xabc], 0
test ebx, ebx
je 0x5bdd75
push ebx
call fcn.005ec337
add esp, 4
mov ecx, esi
call fcn.005bdae0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push 0x5ae870
push 0x20
push 0x3470
lea ecx, [ebp]
push ecx
call fcn.00618623
mov eax, esi
jmp 0x5be2c7
cmp eax, 0x7581
jne 0x5bde05
mov dword [esi + 0x940], 0
mov ecx, edi
call fcn.00588850
push edi
call fcn.005ec337
add esp, 4
mov dword [esi + 0xabc], 0
test ebx, ebx
je 0x5bddd9
push ebx
call fcn.005ec337
add esp, 4
mov ecx, esi
call fcn.005be2f0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push 0x5ae870
push 0x20
push 0x3470
lea edx, [ebp]
push edx
call fcn.00618623
mov eax, esi
jmp 0x5be2c7
mov ecx, esi
call fcn.005b6150
mov ecx, dword [esi + 0x940]
mov eax, dword [ecx + 0x1c0]
mov edx, dword [ecx + 0x1c4]
mov dword [esi + 0x4f8], eax
mov dword [esi + 0x4fc], edx
mov edx, dword [ecx + 0x1b8]
mov ebx, dword [ecx + 0x1bc]
mov eax, edx
or eax, ebx
je 0x5bde53
cmp dword [esi + 0x340], 0x20
je 0x5bde53
mov eax, ebx
mov dword [esi + 0x4f0], edx
mov dword [esi + 0x4f4], eax
cmp dword [esi + 0x340], 0
je 0x5bde68
fld qword [ecx + 0x188]
fstp qword [esi + 0x508]
cmp dword [esi + 0x514], 0
jne 0x5bde78
push 1
call fcn.005ac140
mov ebx, dword [ebp - 0x18]
mov dword [esi + 0x940], 0
mov ecx, edi
call fcn.00588850
push edi
call fcn.005ec337
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x5ae870
jmp 0x5be188
push fcn.005d3300
push fcn.005780e0
push 0x20
push 0x3470
lea ecx, [ebp]
push ecx
call fcn.0061a779
mov dword [ebp - 4], 4
push 0x878
call fcn.005ec308
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x5bdefd
mov edx, dword [esi]
push edx
lea ecx, [esi + 0x51c]
push ecx
lea edx, [esi + 0x20]
push edx
lea ecx, [ebp]
push ecx
push edi
mov ecx, eax
call fcn.00589c60
mov edi, eax
jmp 0x5bdeff
xor edi, edi
mov byte [ebp - 4], 4
mov dword [esi + 0x940], 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 + 0xad0], 0
je 0x5bdf6d
cmp dword [esi + 0xad4], 0
je 0x5bdf6d
mov ecx, dword [esi + 0x4f0]
mov eax, dword [esi + 0x4f4]
test eax, eax
jl 0x5bdf6d
jg 0x5bdf5e
test ecx, ecx
jbe 0x5bdf6d
push 1
push eax
push ecx
mov ecx, dword [esi + 0x940]
call fcn.005ad4b0
mov edx, dword [esi + 0xac4]
push edx
mov eax, dword [esi + 0xac8]
push eax
mov ecx, dword [esi + 0xad4]
push ecx
mov edx, dword [esi + 0xad0]
push edx
xor eax, eax
cmp byte [esi + 0xac0], al
sete al
push eax
mov ecx, dword [esi + 0x4e8]
push ecx
mov ecx, edi
call fcn.005ad1c0
mov dword [esi + 0xabc], eax
test eax, eax
jne 0x5be162
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 + 0xabc], eax
cmp eax, 0x7583
jne 0x5be02d
mov dword [esi + 0x940], 0
mov ecx, edi
call fcn.00588850
push edi
call fcn.005ec337
add esp, 4
mov dword [esi + 0xabc], 0
test ebx, ebx
je 0x5be001
push ebx
call fcn.005ec337
add esp, 4
mov ecx, esi
call fcn.005bdae0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push fcn.005d3300
push 0x20
push 0x3470
lea eax, [ebp]
push eax
call fcn.00618623
mov eax, esi
jmp 0x5be2c7
cmp eax, 0x7563
jne 0x5be07f
mov dword [esi + 0x940], 0
mov ecx, edi
call fcn.00588850
push edi
call fcn.005ec337
add esp, 4
mov dword [esi + 0xabc], 0
test ebx, ebx
je 0x5be065
push ebx
call fcn.005ec337
add esp, 4
mov ecx, esi
call fcn.005bcfa0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push fcn.005d3300
jmp 0x5bdd8a
cmp eax, 0x7581
jne 0x5be0e3
mov dword [esi + 0x940], 0
mov ecx, edi
call fcn.00588850
push edi
call fcn.005ec337
add esp, 4
mov dword [esi + 0xabc], 0
test ebx, ebx
je 0x5be0b7
push ebx
call fcn.005ec337
add esp, 4
mov ecx, esi
call fcn.005be2f0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push fcn.005d3300
push 0x20
push 0x3470
lea edx, [ebp]
push edx
call fcn.00618623
mov eax, esi
jmp 0x5be2c7
mov ecx, esi
call fcn.005b6150
mov ecx, dword [esi + 0x940]
mov eax, dword [ecx + 0x1c0]
mov edx, dword [ecx + 0x1c4]
mov dword [esi + 0x4f8], eax
mov dword [esi + 0x4fc], edx
mov edx, dword [ecx + 0x1b8]
mov ebx, dword [ecx + 0x1bc]
mov eax, edx
or eax, ebx
je 0x5be131
cmp dword [esi + 0x340], 0x20
je 0x5be131
mov eax, ebx
mov dword [esi + 0x4f0], edx
mov dword [esi + 0x4f4], eax
cmp dword [esi + 0x340], 0
je 0x5be146
fld qword [ecx + 0x188]
fstp qword [esi + 0x508]
cmp dword [esi + 0x4e8], 0
je 0x5be15f
cmp dword [esi + 0x514], 0
jne 0x5be15f
push 1
call fcn.005ac140
mov ebx, dword [ebp - 0x18]
mov dword [esi + 0x940], 0
mov ecx, edi
call fcn.00588850
push edi
call fcn.005ec337
add esp, 4
mov dword [ebp - 4], 0xffffffff
push fcn.005d3300
push 0x20
push 0x3470
lea eax, [ebp]
push eax
call fcn.00618623
test ebx, ebx
je 0x5be2ba
cmp dword [esi + 0xabc], 0x7573
jne 0x5be287
cmp dword [esi + 0x4f4], 0
jg 0x5be251
jl 0x5be1cc
cmp dword [esi + 0x4f0], 0
ja 0x5be251
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 0x5be251
lea edx, [ebp - 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x4f0], eax
mov dword [esi + 0x4f4], 0
cmp eax, 0xffffffff
jne 0x5be22f
cmp dword [esi + 0x4f4], 0
jne 0x5be22f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5be22f
xor eax, eax
mov dword [esi + 0x4f0], eax
mov dword [esi + 0x4f4], eax
jmp 0x5be24a
push 1
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.0061cd30
add dword [esi + 0x4f0], eax
adc dword [esi + 0x4f4], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x48], 0
je 0x5be27d
mov edx, dword [ebx + 0x48]
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5be260
sub eax, edi
sar eax, 1
je 0x5be27d
push edx
lea ecx, [esi + 0x37c]
call fcn.0040e410
mov dword [esi + 0xabc], 0
cmp ebx, dword [esi + 0xb00]
je 0x5be2ba
mov dword [ebp - 4], 6
wait
push ebx
call fcn.005ec337
add esp, 4
wait
mov dword [ebp - 4], 0xffffffff
jmp 0x5be2ba
mov ecx, esi
call fcn.005b8730
mov eax, dword [esi + 0xabc]
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.0061807e
add ebp, 0x68e04
mov esp, ebp
pop ebp
ret