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

Disassembly:
push ebp
lea ebp, [esp - 0x68b10]
mov eax, 0x68b10
call fcn.005f9ca0
push 0xffffffffffffffff
push 0x63d23d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x68b0c], 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 - 0x14], edi
cmp byte [esi + 0xab3], 0
je 0x5a8df9
lea ecx, [ebp - 0x18]
call fcn.004024e0
mov dword [ebp - 4], edi
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0x20]
call fcn.0057a620
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0059c700
add esp, 8
test eax, eax
jne 0x5a8de5
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402550
jmp 0x5a8e02
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402550
jmp 0x5a8e02
mov ebx, dword [esi + 0xad4]
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x5a8e81
test byte [ebx + 0xc], 1
je 0x5a8e81
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5a8e81
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x5a8e81
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x68b04]
call fcn.0059a6e0
push str._a___d__b__Y__H:_M:_S_GMT
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp + 0x68b04]
call fcn.004031a0
mov dword [ebp - 4], 1
mov eax, dword [eax]
mov edx, dword [esi + 0x4c0]
push edx
push eax
lea ecx, [esi + 0x20]
call fcn.005b4270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402550
mov byte [esi + 0x353], 1
lea edi, [esi + 0x924]
cmp dword [edi], 0
je 0x5a9120
push 0x59a750
push 0x59ac10
push 0x20
push 0x3458
lea eax, [ebp]
push eax
call fcn.005face9
mov dword [ebp - 4], 2
push 0x878
call fcn.005cfa6c
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x5a8ee7
mov ecx, dword [esi]
push ecx
lea edx, [esi + 0x4f4]
push edx
lea ecx, [esi + 0x20]
push ecx
lea edx, [ebp]
push edx
push edi
mov ecx, eax
call fcn.005793b0
mov edi, eax
jmp 0x5a8ee9
xor edi, edi
mov byte [ebp - 4], 2
mov dword [esi + 0x918], 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 + 0xaa8], 0
je 0x5a8f57
cmp dword [esi + 0xaac], 0
je 0x5a8f57
mov ecx, dword [esi + 0x4c8]
mov eax, dword [esi + 0x4cc]
test eax, eax
jl 0x5a8f57
jg 0x5a8f48
test ecx, ecx
jbe 0x5a8f57
push 1
push eax
push ecx
mov ecx, dword [esi + 0x918]
call fcn.00599560
mov eax, dword [esi + 0xa9c]
push eax
mov ecx, dword [esi + 0xaa0]
push ecx
mov edx, dword [esi + 0xaac]
push edx
mov eax, dword [esi + 0xaa8]
push eax
xor ecx, ecx
cmp byte [esi + 0xa98], cl
sete cl
push ecx
mov edx, dword [esi + 0x4c0]
push edx
mov ecx, edi
call fcn.00599270
mov dword [esi + 0xa94], eax
test eax, eax
jne 0x5a90e8
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 + 0xa94], eax
cmp eax, 0x7583
jne 0x5a9014
xor ebx, ebx
mov dword [esi + 0x918], ebx
mov ecx, edi
call fcn.00577fc0
push edi
call fcn.005cfa9b
add esp, 4
mov dword [esi + 0xa94], ebx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x5a8fe8
push eax
call fcn.005cfa9b
add esp, 4
mov ecx, esi
call fcn.005a8d50
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push 0x59a750
push 0x20
push 0x3458
lea ecx, [ebp]
push ecx
call fcn.005f8b6f
mov eax, esi
jmp 0x5a9617
cmp eax, 0x7581
jne 0x5a9075
xor ebx, ebx
mov dword [esi + 0x918], ebx
mov ecx, edi
call fcn.00577fc0
push edi
call fcn.005cfa9b
add esp, 4
mov dword [esi + 0xa94], ebx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x5a9049
push eax
call fcn.005cfa9b
add esp, 4
mov ecx, esi
call fcn.005a9640
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push 0x59a750
push 0x20
push 0x3458
lea edx, [ebp]
push edx
call fcn.005f8b6f
mov eax, esi
jmp 0x5a9617
mov ecx, esi
call fcn.005a1650
mov ecx, dword [esi + 0x918]
mov eax, dword [ecx + 0x1c0]
mov edx, dword [ecx + 0x1c4]
mov dword [esi + 0x4d0], eax
mov dword [esi + 0x4d4], edx
mov edx, dword [ecx + 0x1b8]
mov ebx, dword [ecx + 0x1bc]
mov eax, edx
or eax, ebx
je 0x5a90c3
cmp dword [esi + 0x330], 0x20
je 0x5a90c3
mov eax, ebx
mov dword [esi + 0x4c8], edx
mov dword [esi + 0x4cc], eax
cmp dword [esi + 0x330], 0
je 0x5a90d8
fld qword [ecx + 0x188]
fstp qword [esi + 0x4e0]
cmp dword [esi + 0x4ec], 0
jne 0x5a90e8
push 1
call fcn.005981f0
xor ebx, ebx
mov dword [esi + 0x918], ebx
mov ecx, edi
call fcn.00577fc0
push edi
call fcn.005cfa9b
add esp, 4
or edi, 0xffffffff
mov dword [ebp - 4], edi
push 0x59a750
push 0x20
push 0x3458
lea eax, [ebp]
push eax
call fcn.005f8b6f
jmp 0x5a940e
push fcn.005bdc40
push fcn.00568340
push 0x20
push 0x3458
lea ecx, [ebp]
push ecx
call fcn.005face9
mov ebx, 4
mov dword [ebp - 4], ebx
push 0x878
call fcn.005cfa6c
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x5a9178
mov edx, dword [esi]
push edx
lea ecx, [esi + 0x4f4]
push ecx
lea edx, [esi + 0x20]
push edx
lea ecx, [ebp]
push ecx
push edi
mov ecx, eax
call fcn.005793b0
mov edi, eax
jmp 0x5a917a
xor edi, edi
mov byte [ebp - 4], bl
mov dword [esi + 0x918], 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 edx, dword [ebp - 0x14]
mov dword [edi + 0x160], edx
cmp dword [esi + 0xaa8], 0
je 0x5a91ea
cmp dword [esi + 0xaac], 0
je 0x5a91ea
mov ecx, dword [esi + 0x4c8]
mov eax, dword [esi + 0x4cc]
test eax, eax
jl 0x5a91ea
jg 0x5a91db
test ecx, ecx
jbe 0x5a91ea
push 1
push eax
push ecx
mov ecx, dword [esi + 0x918]
call fcn.00599560
mov eax, dword [esi + 0xa9c]
push eax
mov ecx, dword [esi + 0xaa0]
push ecx
mov edx, dword [esi + 0xaac]
push edx
mov eax, dword [esi + 0xaa8]
push eax
xor ecx, ecx
cmp byte [esi + 0xa98], cl
sete cl
push ecx
mov edx, dword [esi + 0x4c0]
push edx
mov ecx, edi
call fcn.00599270
mov dword [esi + 0xa94], eax
test eax, eax
jne 0x5a93d3
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 + 0xa94], eax
cmp eax, 0x7583
jne 0x5a9295
xor ebx, ebx
mov dword [esi + 0x918], ebx
mov ecx, edi
call fcn.00577fc0
push edi
call fcn.005cfa9b
add esp, 4
mov dword [esi + 0xa94], ebx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x5a927b
push eax
call fcn.005cfa9b
add esp, 4
mov ecx, esi
call fcn.005a8d50
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push fcn.005bdc40
jmp 0x5a8ffd
cmp eax, 0x7563
jne 0x5a92f6
xor ebx, ebx
mov dword [esi + 0x918], ebx
mov ecx, edi
call fcn.00577fc0
push edi
call fcn.005cfa9b
add esp, 4
mov dword [esi + 0xa94], ebx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x5a92ca
push eax
call fcn.005cfa9b
add esp, 4
mov ecx, esi
call fcn.005a8210
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push fcn.005bdc40
push 0x20
push 0x3458
lea edx, [ebp]
push edx
call fcn.005f8b6f
mov eax, esi
jmp 0x5a9617
cmp eax, 0x7581
jne 0x5a9357
xor ebx, ebx
mov dword [esi + 0x918], ebx
mov ecx, edi
call fcn.00577fc0
push edi
call fcn.005cfa9b
add esp, 4
mov dword [esi + 0xa94], ebx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x5a932b
push eax
call fcn.005cfa9b
add esp, 4
mov ecx, esi
call fcn.005a9640
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push fcn.005bdc40
push 0x20
push 0x3458
lea eax, [ebp]
push eax
call fcn.005f8b6f
mov eax, esi
jmp 0x5a9617
mov ecx, esi
call fcn.005a1650
mov ecx, dword [esi + 0x918]
mov eax, dword [ecx + 0x1c0]
mov edx, dword [ecx + 0x1c4]
mov dword [esi + 0x4d0], eax
mov dword [esi + 0x4d4], edx
mov edx, dword [ecx + 0x1b8]
mov ebx, dword [ecx + 0x1bc]
mov eax, edx
or eax, ebx
je 0x5a93a5
cmp dword [esi + 0x330], 0x20
je 0x5a93a5
mov eax, ebx
mov dword [esi + 0x4c8], edx
mov dword [esi + 0x4cc], eax
cmp dword [esi + 0x330], 0
je 0x5a93ba
fld qword [ecx + 0x188]
fstp qword [esi + 0x4e0]
cmp dword [esi + 0x4c0], 0
je 0x5a93d3
cmp dword [esi + 0x4ec], 0
jne 0x5a93d3
push 1
call fcn.005981f0
mov dword [esi + 0x918], 0
mov ecx, edi
call fcn.00577fc0
push edi
call fcn.005cfa9b
add esp, 4
mov dword [ebp - 4], 0xffffffff
push fcn.005bdc40
push 0x20
push 0x3458
lea ecx, [ebp]
push ecx
call fcn.005f8b6f
xor ebx, ebx
or edi, 0xffffffff
cmp dword [esi + 0xaa4], ebx
jne 0x5a94e4
cmp dword [esi + 0xa94], ebx
jne 0x5a94e4
cmp byte [esi + 0x34b], 0
je 0x5a94e4
cmp byte [esi + 0x34c], 0
jne 0x5a94e4
mov dword [ebp + 0x68b00], ebx
mov dword [ebp + 0x68b08], ebx
xor edx, edx
mov word [ebp + 0x68b04], dx
mov dword [ebp - 4], 6
cmp dword [esi + 0xcc], ebx
je 0x5a9470
mov eax, dword [esi + 0x54]
cmp eax, ebx
jne 0x5a9473
lea eax, [esi + 0x58]
jmp 0x5a9473
mov eax, dword [esi + 0x50]
push eax
lea ecx, [ebp + 0x68b00]
call fcn.004017d0
mov eax, dword [ebp + 0x68b00]
cmp eax, ebx
jne 0x5a948f
lea eax, [ebp + 0x68b04]
push eax
mov ecx, esi
call fcn.0059d970
test al, al
jne 0x5a94d6
mov byte [esi + 0x34b], al
mov byte [esi + 0x34c], 1
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x5a94b8
push eax
call fcn.005cfa9b
add esp, 4
mov ecx, esi
call fcn.005a8d50
mov esi, eax
mov dword [ebp - 4], edi
lea ecx, [ebp + 0x68b00]
call fcn.004011f0
mov eax, esi
jmp 0x5a9617
mov dword [ebp - 4], edi
lea ecx, [ebp + 0x68b00]
call fcn.004011f0
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x5a960a
cmp dword [esi + 0xa94], 0x7573
jne 0x5a95d7
cmp dword [esi + 0x4cc], 0
jg 0x5a95a0
jl 0x5a951b
cmp dword [esi + 0x4c8], 0
ja 0x5a95a0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5a95a0
lea ecx, [ebp - 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x4c8], eax
mov dword [esi + 0x4cc], 0
cmp eax, 0xffffffff
jne 0x5a957e
cmp dword [esi + 0x4cc], 0
jne 0x5a957e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5a957e
xor eax, eax
mov dword [esi + 0x4c8], eax
mov dword [esi + 0x4cc], eax
jmp 0x5a9599
push 1
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.005fd4d0
add dword [esi + 0x4c8], eax
adc dword [esi + 0x4cc], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x48], 0
je 0x5a95cd
mov edx, dword [ebx + 0x48]
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5a95b0
sub eax, edi
sar eax, 1
je 0x5a95cd
push edx
lea ecx, [esi + 0x368]
call fcn.0040e2d0
mov dword [esi + 0xa94], 0
cmp ebx, dword [esi + 0xad4]
je 0x5a960a
mov dword [ebp - 4], 7
wait
push ebx
call fcn.005cfa9b
add esp, 4
wait
mov dword [ebp - 4], 0xffffffff
jmp 0x5a960a
mov ecx, esi
call fcn.005a3b70
mov eax, dword [esi + 0xa94]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68b0c]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x68b10
mov esp, ebp
pop ebp
ret