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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62d3c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x68930
call fcn.005e6510
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0xa6b]
mov dword [ebp - 0x40], esi
test al, al
mov dword [ebp - 0x14], ebx
je 0x5ab730
mov eax, dword [0x6cc708]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
push ebx
push ecx
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.005814e0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.005ac190
add esp, 8
test eax, eax
jne 0x5ab71c
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00602ad6
mov eax, dword [ebp - 0x14]
jmp 0x5ab739
mov eax, dword [esi + 0xa80]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x5ab7b5
test byte [eax + 0xc], 1
je 0x5ab7b5
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5ab7b5
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 0x5ab7b5
lea ecx, [ebp - 0x38]
push 0xffffffffffffffff
push ecx
lea ecx, [ebp - 0x24]
call fcn.005fba22
lea edx, [ebp - 0x3c]
push str._a___d__b__Y__H:_M:_S_GMT
push edx
lea ecx, [ebp - 0x24]
call fcn.005fbb53
mov ecx, dword [esi + 0x480]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 4], 1
call fcn.005c24d0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00602ad6
mov byte [esi + 0x33f], 1
mov eax, dword [esi + 0x8dc]
lea edi, [esi + 0x8dc]
cmp eax, ebx
je 0x5abaa6
push fcn.005aa7b0
push 0x5aa7e0
push 0x20
lea edx, [ebp - 0x68940]
push 0x3448
push edx
call fcn.005e6f4c
mov ebx, 2
push 0x860
mov dword [ebp - 4], ebx
call fcn.005feedc
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x5ab827
mov ecx, dword [esi]
lea edx, [esi + 0x4ac]
push ecx
push edx
lea ecx, [esi + 0x20]
lea edx, [ebp - 0x68940]
push ecx
push edx
push edi
mov ecx, eax
call fcn.00578a60
mov edi, eax
jmp 0x5ab829
xor edi, edi
mov eax, dword [esi + 4]
mov dword [esi + 0x8d0], 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 + 0xa60]
test eax, eax
mov byte [ebp - 4], bl
je 0x5ab89b
mov eax, dword [esi + 0xa64]
test eax, eax
je 0x5ab89b
mov eax, dword [esi + 0x48c]
mov ecx, dword [esi + 0x488]
test eax, eax
jl 0x5ab89b
jg 0x5ab88c
test ecx, ecx
jbe 0x5ab89b
push 1
push eax
push ecx
mov ecx, dword [esi + 0x8d0]
call fcn.005a8380
mov ecx, dword [esi + 0xa54]
mov edx, dword [esi + 0xa58]
mov eax, dword [esi + 0xa64]
push ecx
mov ecx, dword [esi + 0xa60]
push edx
push eax
mov al, byte [esi + 0xa50]
xor edx, edx
push ecx
test al, al
mov eax, dword [esi + 0x480]
mov ecx, edi
sete dl
push edx
push eax
call fcn.005a7cb0
test eax, eax
mov dword [esi + 0xa4c], eax
jne 0x5aba66
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 + 0xa4c], eax
jne 0x5ab96e
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8d0], ebx
je 0x5ab91a
mov ecx, edi
call fcn.00578b20
push edi
call fcn.005fef05
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa4c], ebx
cmp eax, ebx
je 0x5ab933
push eax
call fcn.005fef05
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005ab6b0
mov esi, eax
push fcn.005aa7b0
push 0x20
lea eax, [ebp - 0x68940]
push 0x3448
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.005e5d51
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 0x5ab9e5
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8d0], ebx
je 0x5ab991
mov ecx, edi
call fcn.00578b20
push edi
call fcn.005fef05
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa4c], ebx
cmp eax, ebx
je 0x5ab9aa
push eax
call fcn.005fef05
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005b1650
push fcn.005aa7b0
push 0x20
lea ecx, [ebp - 0x68940]
push 0x3448
push ecx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.005e5d51
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.005b3860
mov ecx, dword [esi + 0x8d0]
mov eax, dword [ecx + 0x1c0]
mov edx, dword [ecx + 0x1c4]
mov dword [esi + 0x490], eax
mov dword [esi + 0x494], edx
mov edx, dword [ecx + 0x1b8]
mov ebx, dword [ecx + 0x1bc]
mov eax, edx
or eax, ebx
je 0x5aba33
cmp dword [esi + 0x31c], 0x20
je 0x5aba33
mov eax, ebx
mov dword [esi + 0x488], edx
mov dword [esi + 0x48c], eax
mov eax, dword [esi + 0x31c]
test eax, eax
je 0x5aba55
mov edx, dword [ecx + 0x188]
mov eax, dword [ecx + 0x18c]
mov dword [esi + 0x498], edx
mov dword [esi + 0x49c], eax
mov eax, dword [esi + 0x4a4]
test eax, eax
jne 0x5aba66
push 1
call fcn.005a8000
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8d0], ebx
je 0x5aba82
mov ecx, edi
call fcn.00578b20
push edi
call fcn.005fef05
add esp, 4
push fcn.005aa7b0
push 0x20
lea ecx, [ebp - 0x68940]
push 0x3448
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.005e5d51
jmp 0x5abe03
push fcn.00563f30
push fcn.00563bd0
push 0x20
lea edx, [ebp - 0x68940]
push 0x3448
push edx
call fcn.005e6f4c
mov ebx, 4
push 0x860
mov dword [ebp - 4], ebx
call fcn.005feedc
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x5abb04
mov ecx, dword [esi]
lea edx, [esi + 0x4ac]
push ecx
push edx
lea ecx, [esi + 0x20]
lea edx, [ebp - 0x68940]
push ecx
push edx
push edi
mov ecx, eax
call fcn.00578a60
mov edi, eax
jmp 0x5abb06
xor edi, edi
mov eax, dword [esi + 4]
mov dword [esi + 0x8d0], 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 + 0xa60]
test eax, eax
mov byte [ebp - 4], bl
je 0x5abb78
mov eax, dword [esi + 0xa64]
test eax, eax
je 0x5abb78
mov eax, dword [esi + 0x48c]
mov ecx, dword [esi + 0x488]
test eax, eax
jl 0x5abb78
jg 0x5abb69
test ecx, ecx
jbe 0x5abb78
push 1
push eax
push ecx
mov ecx, dword [esi + 0x8d0]
call fcn.005a8380
mov ecx, dword [esi + 0xa54]
mov edx, dword [esi + 0xa58]
mov eax, dword [esi + 0xa64]
push ecx
mov ecx, dword [esi + 0xa60]
push edx
push eax
mov al, byte [esi + 0xa50]
xor edx, edx
push ecx
test al, al
mov eax, dword [esi + 0x480]
mov ecx, edi
sete dl
push edx
push eax
call fcn.005a7cb0
test eax, eax
mov dword [esi + 0xa4c], eax
jne 0x5abdc4
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 + 0xa4c], eax
jne 0x5abc4b
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8d0], ebx
je 0x5abbf7
mov ecx, edi
call fcn.00578b20
push edi
call fcn.005fef05
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa4c], ebx
cmp eax, ebx
je 0x5abc10
push eax
call fcn.005fef05
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005ab6b0
mov esi, eax
push fcn.00563f30
push 0x20
lea eax, [ebp - 0x68940]
push 0x3448
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.005e5d51
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 0x5abcc2
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8d0], ebx
je 0x5abc6e
mov ecx, edi
call fcn.00578b20
push edi
call fcn.005fef05
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa4c], ebx
cmp eax, ebx
je 0x5abc87
push eax
call fcn.005fef05
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005aa190
push fcn.00563f30
push 0x20
lea ecx, [ebp - 0x68940]
push 0x3448
push ecx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.005e5d51
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 0x5abd39
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8d0], ebx
je 0x5abce5
mov ecx, edi
call fcn.00578b20
push edi
call fcn.005fef05
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa4c], ebx
cmp eax, ebx
je 0x5abcfe
push eax
call fcn.005fef05
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005b1650
push fcn.00563f30
push 0x20
lea edx, [ebp - 0x68940]
push 0x3448
push edx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.005e5d51
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.005b3860
mov ecx, dword [esi + 0x8d0]
mov eax, dword [ecx + 0x1c0]
mov edx, dword [ecx + 0x1c4]
mov dword [esi + 0x490], eax
mov dword [esi + 0x494], edx
mov edx, dword [ecx + 0x1b8]
mov ebx, dword [ecx + 0x1bc]
mov eax, edx
or eax, ebx
je 0x5abd87
cmp dword [esi + 0x31c], 0x20
je 0x5abd87
mov eax, ebx
mov dword [esi + 0x488], edx
mov dword [esi + 0x48c], eax
mov eax, dword [esi + 0x31c]
test eax, eax
je 0x5abda9
mov eax, dword [ecx + 0x188]
mov edx, dword [ecx + 0x18c]
mov dword [esi + 0x498], eax
mov dword [esi + 0x49c], edx
mov eax, dword [esi + 0x480]
test eax, eax
je 0x5abdc4
mov eax, dword [esi + 0x4a4]
test eax, eax
jne 0x5abdc4
push 1
call fcn.005a8000
test edi, edi
mov dword [esi + 0x8d0], 0
je 0x5abde2
mov ecx, edi
call fcn.00578b20
push edi
call fcn.005fef05
add esp, 4
push fcn.00563f30
push 0x20
lea eax, [ebp - 0x68940]
push 0x3448
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.005e5d51
xor ebx, ebx
cmp dword [esi + 0xa5c], ebx
jne 0x5ac041
cmp dword [esi + 0xa4c], ebx
jne 0x5ac041
mov al, byte [esi + 0x337]
test al, al
je 0x5ac041
mov al, byte [esi + 0x338]
test al, al
jne 0x5ac041
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 0x5abf1e
mov edi, dword [esi + 0x54]
cmp edi, ebx
jne 0x5abe66
lea edi, [esi + 0x58]
cmp edi, ebx
je 0x5abecc
cmp eax, ebx
je 0x5abecc
push edi
call fcn.005e639f
add esp, 4
test eax, eax
je 0x5abecc
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x5abecc
push eax
call fcn.005e639f
mov ecx, dword [ebp - 0x20]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, edi
jb 0x5abecc
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00402410
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 7
cmp eax, ebx
jne 0x5abeb2
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402410
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x5abfd1
lea ecx, [ebp - 0x20]
call fcn.00401070
cmp edi, ebx
je 0x5abfd1
push edi
call fcn.005e639f
add esp, 4
test eax, eax
je 0x5abfd1
push edi
call fcn.005e639f
lea eax, [eax + eax + 2]
push eax
call fcn.005feedc
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x5abfd8
push edi
call fcn.005e639f
mov ecx, dword [ebp - 0x20]
push edi
mov dword [ebp - 0x18], eax
push ecx
jmp 0x5abfc9
mov edi, dword [esi + 0x50]
cmp edi, ebx
je 0x5abf88
cmp eax, ebx
je 0x5abf88
push edi
call fcn.005e639f
add esp, 4
test eax, eax
je 0x5abf88
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x5abf88
push eax
call fcn.005e639f
mov edx, dword [ebp - 0x20]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, edi
jb 0x5abf88
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00402410
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 8
cmp eax, ebx
jne 0x5abf71
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402410
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x5abfd1
lea ecx, [ebp - 0x20]
call fcn.00401070
cmp edi, ebx
je 0x5abfd1
push edi
call fcn.005e639f
add esp, 4
test eax, eax
je 0x5abfd1
push edi
call fcn.005e639f
lea ecx, [eax + eax + 2]
push ecx
call fcn.005feedc
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x5abfd8
push edi
call fcn.005e639f
mov edx, dword [ebp - 0x20]
push edi
mov dword [ebp - 0x18], eax
push edx
call fcn.005e6569
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5abfdb
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.005ac250
test al, al
jne 0x5ac032
mov byte [esi + 0x337], al
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [esi + 0x338], 1
je 0x5ac007
push eax
call fcn.005fef05
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005ab6b0
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 0x5ac164
cmp dword [esi + 0xa4c], 0x7573
jne 0x5ac133
cmp dword [esi + 0x48c], ebx
jg 0x5ac101
jl 0x5ac076
cmp dword [esi + 0x488], ebx
ja 0x5ac101
mov eax, dword [eax + 8]
push ebx
push ebx
push 3
push ebx
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5ac101
lea ecx, [ebp - 0x28]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x488], eax
mov dword [esi + 0x48c], ebx
cmp dword [esi + 0x488], 0xffffffff
jne 0x5ac0d1
mov eax, ebx
cmp eax, ebx
jne 0x5ac0d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x5ac0d1
mov dword [esi + 0x488], ebx
mov dword [esi + 0x48c], ebx
jmp 0x5ac0fa
mov edx, dword [ebp - 0x28]
push 1
push ebx
push ebx
push edx
call fcn.005e8c50
mov ecx, dword [esi + 0x488]
add ecx, eax
mov dword [esi + 0x488], ecx
mov eax, dword [esi + 0x48c]
adc eax, edx
mov dword [esi + 0x48c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x48]
cmp eax, ebx
je 0x5ac12a
push eax
call fcn.005e639f
add esp, 4
test eax, eax
je 0x5ac12a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x48]
lea ecx, [esi + 0x350]
push edx
call fcn.00602c86
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa4c], ebx
cmp eax, dword [esi + 0xa80]
je 0x5ac164
push eax
mov dword [ebp - 4], 9
call fcn.005fef05
add esp, 4
jmp 0x5ac156
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0
mov ecx, esi
call fcn.005af150
mov eax, dword [esi + 0xa4c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret