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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652e30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x68a30
call fcn.00609d40
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0xa93]
mov dword [ebp - 0x40], esi
test al, al
mov dword [ebp - 0x14], ebx
je 0x5c88e0
mov eax, dword [0x6f7b78]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
push ebx
push ecx
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.0059de90
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.005c9340
add esp, 8
test eax, eax
jne 0x5c88cc
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00622d8a
mov eax, dword [ebp - 0x14]
jmp 0x5c88e9
mov eax, dword [esi + 0xab4]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x5c8965
test byte [eax + 0xc], 1
je 0x5c8965
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5c8965
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x38]
add eax, 0x20
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x5c8965
lea ecx, [ebp - 0x38]
push 0xffffffffffffffff
push ecx
lea ecx, [ebp - 0x24]
call fcn.0061fbf8
lea edx, [ebp - 0x3c]
push str._a___d__b__Y__H:_M:_S_GMT
push edx
lea ecx, [ebp - 0x24]
call fcn.0061fd29
mov ecx, dword [esi + 0x4a0]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 4], 1
call fcn.005e3400
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00622d8a
mov byte [esi + 0x33f], 1
mov eax, dword [esi + 0x904]
lea edi, [esi + 0x904]
cmp eax, ebx
je 0x5c8c56
push fcn.005c7960
push 0x5c7990
push 0x20
lea edx, [ebp - 0x68a40]
push 0x3450
push edx
call fcn.0060a72c
mov ebx, 2
push 0x860
mov dword [ebp - 4], ebx
call fcn.00622acb
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x5c89d7
mov ecx, dword [esi]
lea edx, [esi + 0x4d4]
push ecx
push edx
lea ecx, [esi + 0x20]
lea edx, [ebp - 0x68a40]
push ecx
push edx
push edi
mov ecx, eax
call fcn.00594960
mov edi, eax
jmp 0x5c89d9
xor edi, edi
mov eax, dword [esi + 4]
mov dword [esi + 0x8f8], edi
mov dword [edi + 0x180], eax
lea eax, [esi + 0x10]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [edi + 0x244], esi
mov dword [edi + 0x10], eax
mov dword [edi + 0x100], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], edx
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x160], eax
mov eax, dword [esi + 0xa88]
test eax, eax
mov byte [ebp - 4], bl
je 0x5c8a4b
mov eax, dword [esi + 0xa8c]
test eax, eax
je 0x5c8a4b
mov eax, dword [esi + 0x4ac]
mov ecx, dword [esi + 0x4a8]
test eax, eax
jl 0x5c8a4b
jg 0x5c8a3c
test ecx, ecx
jbe 0x5c8a4b
push 1
push eax
push ecx
mov ecx, dword [esi + 0x8f8]
call fcn.005c5470
mov ecx, dword [esi + 0xa7c]
mov edx, dword [esi + 0xa80]
mov eax, dword [esi + 0xa8c]
push ecx
mov ecx, dword [esi + 0xa88]
push edx
push eax
mov al, byte [esi + 0xa78]
xor edx, edx
push ecx
test al, al
mov eax, dword [esi + 0x4a0]
mov ecx, edi
sete dl
push edx
push eax
call fcn.005c4da0
test eax, eax
mov dword [esi + 0xa74], eax
jne 0x5c8c16
mov ecx, dword [esi + 8]
mov edx, dword [edi]
mov dword [edi + 0x13c], ecx
mov ecx, edi
call dword [edx + 8]
cmp eax, 0x7583
mov dword [esi + 0xa74], eax
jne 0x5c8b1e
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8f8], ebx
je 0x5c8aca
mov ecx, edi
call fcn.00594a30
push edi
call fcn.00622af4
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa74], ebx
cmp eax, ebx
je 0x5c8ae3
push eax
call fcn.00622af4
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005c8860
mov esi, eax
push fcn.005c7960
push 0x20
lea eax, [ebp - 0x68a40]
push 0x3450
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.00609529
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x7581
jne 0x5c8b95
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8f8], ebx
je 0x5c8b41
mov ecx, edi
call fcn.00594a30
push edi
call fcn.00622af4
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa74], ebx
cmp eax, ebx
je 0x5c8b5a
push eax
call fcn.00622af4
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005cfff0
push fcn.005c7960
push 0x20
lea ecx, [ebp - 0x68a40]
push 0x3450
push ecx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00609529
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.005d2280
mov ecx, dword [esi + 0x8f8]
mov eax, dword [ecx + 0x1c0]
mov edx, dword [ecx + 0x1c4]
mov dword [esi + 0x4b0], eax
mov dword [esi + 0x4b4], edx
mov edx, dword [ecx + 0x1b8]
mov ebx, dword [ecx + 0x1bc]
mov eax, edx
or eax, ebx
je 0x5c8be3
cmp dword [esi + 0x31c], 0x20
je 0x5c8be3
mov eax, ebx
mov dword [esi + 0x4a8], edx
mov dword [esi + 0x4ac], eax
mov eax, dword [esi + 0x31c]
test eax, eax
je 0x5c8c05
mov edx, dword [ecx + 0x188]
mov eax, dword [ecx + 0x18c]
mov dword [esi + 0x4c0], edx
mov dword [esi + 0x4c4], eax
mov eax, dword [esi + 0x4cc]
test eax, eax
jne 0x5c8c16
push 1
call fcn.005c50f0
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8f8], ebx
je 0x5c8c32
mov ecx, edi
call fcn.00594a30
push edi
call fcn.00622af4
add esp, 4
push fcn.005c7960
push 0x20
lea ecx, [ebp - 0x68a40]
push 0x3450
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.00609529
jmp 0x5c8fb3
push fcn.005ed570
push fcn.0057f400
push 0x20
lea edx, [ebp - 0x68a40]
push 0x3450
push edx
call fcn.0060a72c
mov ebx, 4
push 0x860
mov dword [ebp - 4], ebx
call fcn.00622acb
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x5c8cb4
mov ecx, dword [esi]
lea edx, [esi + 0x4d4]
push ecx
push edx
lea ecx, [esi + 0x20]
lea edx, [ebp - 0x68a40]
push ecx
push edx
push edi
mov ecx, eax
call fcn.00594960
mov edi, eax
jmp 0x5c8cb6
xor edi, edi
mov eax, dword [esi + 4]
mov dword [esi + 0x8f8], edi
mov dword [edi + 0x180], eax
lea eax, [esi + 0x10]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [edi + 0x244], esi
mov dword [edi + 0x10], eax
mov dword [edi + 0x100], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], edx
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x160], eax
mov eax, dword [esi + 0xa88]
test eax, eax
mov byte [ebp - 4], bl
je 0x5c8d28
mov eax, dword [esi + 0xa8c]
test eax, eax
je 0x5c8d28
mov eax, dword [esi + 0x4ac]
mov ecx, dword [esi + 0x4a8]
test eax, eax
jl 0x5c8d28
jg 0x5c8d19
test ecx, ecx
jbe 0x5c8d28
push 1
push eax
push ecx
mov ecx, dword [esi + 0x8f8]
call fcn.005c5470
mov ecx, dword [esi + 0xa7c]
mov edx, dword [esi + 0xa80]
mov eax, dword [esi + 0xa8c]
push ecx
mov ecx, dword [esi + 0xa88]
push edx
push eax
mov al, byte [esi + 0xa78]
xor edx, edx
push ecx
test al, al
mov eax, dword [esi + 0x4a0]
mov ecx, edi
sete dl
push edx
push eax
call fcn.005c4da0
test eax, eax
mov dword [esi + 0xa74], eax
jne 0x5c8f74
mov ecx, dword [esi + 8]
mov edx, dword [edi]
mov dword [edi + 0x13c], ecx
mov ecx, edi
call dword [edx + 8]
cmp eax, 0x7583
mov dword [esi + 0xa74], eax
jne 0x5c8dfb
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8f8], ebx
je 0x5c8da7
mov ecx, edi
call fcn.00594a30
push edi
call fcn.00622af4
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa74], ebx
cmp eax, ebx
je 0x5c8dc0
push eax
call fcn.00622af4
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005c8860
mov esi, eax
push fcn.005ed570
push 0x20
lea eax, [ebp - 0x68a40]
push 0x3450
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.00609529
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x7563
jne 0x5c8e72
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8f8], ebx
je 0x5c8e1e
mov ecx, edi
call fcn.00594a30
push edi
call fcn.00622af4
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa74], ebx
cmp eax, ebx
je 0x5c8e37
push eax
call fcn.00622af4
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005c7340
push fcn.005ed570
push 0x20
lea ecx, [ebp - 0x68a40]
push 0x3450
push ecx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00609529
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x7581
jne 0x5c8ee9
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8f8], ebx
je 0x5c8e95
mov ecx, edi
call fcn.00594a30
push edi
call fcn.00622af4
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa74], ebx
cmp eax, ebx
je 0x5c8eae
push eax
call fcn.00622af4
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005cfff0
push fcn.005ed570
push 0x20
lea edx, [ebp - 0x68a40]
push 0x3450
push edx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00609529
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.005d2280
mov ecx, dword [esi + 0x8f8]
mov eax, dword [ecx + 0x1c0]
mov edx, dword [ecx + 0x1c4]
mov dword [esi + 0x4b0], eax
mov dword [esi + 0x4b4], edx
mov edx, dword [ecx + 0x1b8]
mov ebx, dword [ecx + 0x1bc]
mov eax, edx
or eax, ebx
je 0x5c8f37
cmp dword [esi + 0x31c], 0x20
je 0x5c8f37
mov eax, ebx
mov dword [esi + 0x4a8], edx
mov dword [esi + 0x4ac], eax
mov eax, dword [esi + 0x31c]
test eax, eax
je 0x5c8f59
mov eax, dword [ecx + 0x188]
mov edx, dword [ecx + 0x18c]
mov dword [esi + 0x4c0], eax
mov dword [esi + 0x4c4], edx
mov eax, dword [esi + 0x4a0]
test eax, eax
je 0x5c8f74
mov eax, dword [esi + 0x4cc]
test eax, eax
jne 0x5c8f74
push 1
call fcn.005c50f0
test edi, edi
mov dword [esi + 0x8f8], 0
je 0x5c8f92
mov ecx, edi
call fcn.00594a30
push edi
call fcn.00622af4
add esp, 4
push fcn.005ed570
push 0x20
lea eax, [ebp - 0x68a40]
push 0x3450
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.00609529
xor ebx, ebx
cmp dword [esi + 0xa84], ebx
jne 0x5c91f1
cmp dword [esi + 0xa74], ebx
jne 0x5c91f1
mov al, byte [esi + 0x337]
test al, al
je 0x5c91f1
mov al, byte [esi + 0x338]
test al, al
jne 0x5c91f1
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], bx
mov ecx, dword [esi + 0xcc]
mov dword [ebp - 4], 6
cmp ecx, ebx
je 0x5c90ce
mov edi, dword [esi + 0x54]
cmp edi, ebx
jne 0x5c9016
lea edi, [esi + 0x58]
cmp edi, ebx
je 0x5c907c
cmp eax, ebx
je 0x5c907c
push edi
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5c907c
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x5c907c
push eax
call fcn.00609a4e
mov ecx, dword [ebp - 0x20]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, edi
jb 0x5c907c
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00401f20
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 7
cmp eax, ebx
jne 0x5c9062
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f20
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x5c9181
lea ecx, [ebp - 0x20]
call fcn.00401070
cmp edi, ebx
je 0x5c9181
push edi
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5c9181
push edi
call fcn.00609a4e
lea eax, [eax + eax + 2]
push eax
call fcn.00622acb
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x5c9188
push edi
call fcn.00609a4e
mov ecx, dword [ebp - 0x20]
push edi
mov dword [ebp - 0x18], eax
push ecx
jmp 0x5c9179
mov edi, dword [esi + 0x50]
cmp edi, ebx
je 0x5c9138
cmp eax, ebx
je 0x5c9138
push edi
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5c9138
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x5c9138
push eax
call fcn.00609a4e
mov edx, dword [ebp - 0x20]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, edi
jb 0x5c9138
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00401f20
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 8
cmp eax, ebx
jne 0x5c9121
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f20
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x5c9181
lea ecx, [ebp - 0x20]
call fcn.00401070
cmp edi, ebx
je 0x5c9181
push edi
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5c9181
push edi
call fcn.00609a4e
lea ecx, [eax + eax + 2]
push ecx
call fcn.00622acb
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x5c9188
push edi
call fcn.00609a4e
mov edx, dword [ebp - 0x20]
push edi
mov dword [ebp - 0x18], eax
push edx
call fcn.00609a95
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5c918b
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.005c9400
test al, al
jne 0x5c91e2
mov byte [esi + 0x337], al
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [esi + 0x338], 1
je 0x5c91b7
push eax
call fcn.00622af4
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005c8860
lea ecx, [ebp - 0x20]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00401070
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00401070
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x5c9314
cmp dword [esi + 0xa74], 0x7573
jne 0x5c92e3
cmp dword [esi + 0x4ac], ebx
jg 0x5c92b1
jl 0x5c9226
cmp dword [esi + 0x4a8], ebx
ja 0x5c92b1
mov eax, dword [eax + 8]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5c92b1
lea ecx, [ebp - 0x28]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x4a8], eax
mov dword [esi + 0x4ac], ebx
cmp dword [esi + 0x4a8], 0xffffffff
jne 0x5c9281
mov eax, ebx
cmp eax, ebx
jne 0x5c9281
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x5c9281
mov dword [esi + 0x4a8], ebx
mov dword [esi + 0x4ac], ebx
jmp 0x5c92aa
mov edx, dword [ebp - 0x28]
push 1
push ebx
push ebx
push edx
call fcn.0060c730
mov ecx, dword [esi + 0x4a8]
add ecx, eax
mov dword [esi + 0x4a8], ecx
mov eax, dword [esi + 0x4ac]
adc eax, edx
mov dword [esi + 0x4ac], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x48]
cmp eax, ebx
je 0x5c92da
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5c92da
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x48]
lea ecx, [esi + 0x354]
push edx
call fcn.00622f3a
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa74], ebx
cmp eax, dword [esi + 0xab4]
je 0x5c9314
push eax
mov dword [ebp - 4], 9
call fcn.00622af4
add esp, 4
jmp 0x5c9306
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0
mov ecx, esi
call fcn.005cd3e0
mov eax, dword [esi + 0xa74]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret