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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ba10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x68830
call fcn.005c4f90
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0xa43]
mov dword [ebp - 0x40], esi
test al, al
mov dword [ebp - 0x14], ebx
je 0x58c230
mov eax, dword [0x6ca27c]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
push ebx
push ecx
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.00564270
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.0058cc70
add esp, 8
test eax, eax
jne 0x58c21c
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.005e118c
mov eax, dword [ebp - 0x14]
jmp 0x58c239
mov eax, dword [esi + 0xa54]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x58c2b5
test byte [eax + 0xc], 1
je 0x58c2b5
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x58c2b5
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 0x58c2b5
lea ecx, [ebp - 0x38]
push 0xffffffffffffffff
push ecx
lea ecx, [ebp - 0x24]
call fcn.005da522
lea edx, [ebp - 0x3c]
push str._a___d__b__Y__H:_M:_S_GMT
push edx
lea ecx, [ebp - 0x24]
call fcn.005da653
mov ecx, dword [esi + 0x468]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 4], 1
call fcn.005a15c0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.005e118c
mov byte [esi + 0x32a], 1
mov eax, dword [esi + 0x8c4]
lea edi, [esi + 0x8c4]
cmp eax, ebx
je 0x58c59b
push 0x58b370
push 0x58b350
push 0x20
lea edx, [ebp - 0x68840]
push 0x3440
push edx
call fcn.005c56f1
mov ebx, 2
push 0x870
mov dword [ebp - 4], ebx
call fcn.005dd58d
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x58c327
mov ecx, dword [esi]
lea edx, [esi + 0x494]
push ecx
push edx
lea ecx, [esi + 0x20]
lea edx, [ebp - 0x68840]
push ecx
push edx
push edi
mov ecx, eax
call fcn.0055cf20
mov edi, eax
jmp 0x58c329
xor edi, edi
mov eax, dword [esi + 4]
mov dword [esi + 0x8b8], edi
mov dword [edi + 0x1a0], eax
lea eax, [esi + 0x10]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [edi + 0x254], esi
mov dword [edi + 0x10], eax
mov dword [edi + 0x120], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], edx
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x180], eax
mov eax, dword [esi + 0xa38]
test eax, eax
mov byte [ebp - 4], bl
je 0x58c39b
mov eax, dword [esi + 0xa3c]
test eax, eax
je 0x58c39b
mov eax, dword [esi + 0x474]
mov ecx, dword [esi + 0x470]
test eax, eax
jl 0x58c39b
jg 0x58c38c
test ecx, ecx
jbe 0x58c39b
push 1
push eax
push ecx
mov ecx, dword [esi + 0x8b8]
call fcn.00588f40
mov ecx, dword [esi + 0xa2c]
mov edx, dword [esi + 0xa30]
mov eax, dword [esi + 0xa3c]
push ecx
mov ecx, dword [esi + 0xa38]
push edx
push eax
mov al, byte [esi + 0xa28]
xor edx, edx
push ecx
test al, al
mov eax, dword [esi + 0x468]
mov ecx, edi
sete dl
push edx
push eax
call fcn.00588a10
test eax, eax
mov dword [esi + 0xa24], eax
jne 0x58c55b
mov ecx, dword [esi + 8]
mov edx, dword [edi]
mov dword [edi + 0x15c], ecx
mov ecx, edi
call dword [edx + 8]
cmp eax, 0x7583
mov dword [esi + 0xa24], eax
jne 0x58c46e
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8b8], ebx
je 0x58c41a
mov ecx, edi
call fcn.0055cfe0
push edi
call fcn.005dd5b6
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa24], ebx
cmp eax, ebx
je 0x58c433
push eax
call fcn.005dd5b6
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.0058c1b0
mov esi, eax
push 0x58b370
push 0x20
lea eax, [ebp - 0x68840]
push 0x3440
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.005c45e7
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 0x58c4e5
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8b8], ebx
je 0x58c491
mov ecx, edi
call fcn.0055cfe0
push edi
call fcn.005dd5b6
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa24], ebx
cmp eax, ebx
je 0x58c4aa
push eax
call fcn.005dd5b6
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.00591880
push 0x58b370
push 0x20
lea ecx, [ebp - 0x68840]
push 0x3440
push ecx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.005c45e7
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.00593a00
mov ecx, dword [esi + 0x8b8]
mov eax, dword [ecx + 0x1d0]
mov edx, dword [ecx + 0x1d4]
mov dword [esi + 0x478], eax
mov dword [esi + 0x47c], edx
mov edx, dword [ecx + 0x1c8]
mov ebx, dword [ecx + 0x1cc]
mov eax, edx
or eax, ebx
je 0x58c52a
mov eax, ebx
mov dword [esi + 0x470], edx
mov dword [esi + 0x474], eax
mov eax, dword [esi + 0x308]
test eax, eax
je 0x58c54c
mov edx, dword [ecx + 0x1a8]
mov eax, dword [ecx + 0x1ac]
mov dword [esi + 0x480], edx
mov dword [esi + 0x484], eax
mov eax, dword [esi + 0x48c]
test eax, eax
jne 0x58c55b
call fcn.00588cc0
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8b8], ebx
je 0x58c577
mov ecx, edi
call fcn.0055cfe0
push edi
call fcn.005dd5b6
add esp, 4
push 0x58b370
push 0x20
lea ecx, [ebp - 0x68840]
push 0x3440
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.005c45e7
jmp 0x58c8ed
push fcn.0054b1b0
push fcn.0054ae80
push 0x20
lea edx, [ebp - 0x68840]
push 0x3440
push edx
call fcn.005c56f1
mov ebx, 4
push 0x870
mov dword [ebp - 4], ebx
call fcn.005dd58d
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x58c5f9
mov ecx, dword [esi]
lea edx, [esi + 0x494]
push ecx
push edx
lea ecx, [esi + 0x20]
lea edx, [ebp - 0x68840]
push ecx
push edx
push edi
mov ecx, eax
call fcn.0055cf20
mov edi, eax
jmp 0x58c5fb
xor edi, edi
mov eax, dword [esi + 4]
mov dword [esi + 0x8b8], edi
mov dword [edi + 0x1a0], eax
lea eax, [esi + 0x10]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [edi + 0x254], esi
mov dword [edi + 0x10], eax
mov dword [edi + 0x120], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], edx
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x180], eax
mov eax, dword [esi + 0xa38]
test eax, eax
mov byte [ebp - 4], bl
je 0x58c66d
mov eax, dword [esi + 0xa3c]
test eax, eax
je 0x58c66d
mov eax, dword [esi + 0x474]
mov ecx, dword [esi + 0x470]
test eax, eax
jl 0x58c66d
jg 0x58c65e
test ecx, ecx
jbe 0x58c66d
push 1
push eax
push ecx
mov ecx, dword [esi + 0x8b8]
call fcn.00588f40
mov ecx, dword [esi + 0xa2c]
mov edx, dword [esi + 0xa30]
mov eax, dword [esi + 0xa3c]
push ecx
mov ecx, dword [esi + 0xa38]
push edx
push eax
mov al, byte [esi + 0xa28]
xor edx, edx
push ecx
test al, al
mov eax, dword [esi + 0x468]
mov ecx, edi
sete dl
push edx
push eax
call fcn.00588a10
test eax, eax
mov dword [esi + 0xa24], eax
jne 0x58c8ae
mov ecx, dword [esi + 8]
mov edx, dword [edi]
mov dword [edi + 0x15c], ecx
mov ecx, edi
call dword [edx + 8]
cmp eax, 0x7583
mov dword [esi + 0xa24], eax
jne 0x58c740
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8b8], ebx
je 0x58c6ec
mov ecx, edi
call fcn.0055cfe0
push edi
call fcn.005dd5b6
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa24], ebx
cmp eax, ebx
je 0x58c705
push eax
call fcn.005dd5b6
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.0058c1b0
mov esi, eax
push fcn.0054b1b0
push 0x20
lea eax, [ebp - 0x68840]
push 0x3440
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.005c45e7
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 0x58c7b7
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8b8], ebx
je 0x58c763
mov ecx, edi
call fcn.0055cfe0
push edi
call fcn.005dd5b6
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa24], ebx
cmp eax, ebx
je 0x58c77c
push eax
call fcn.005dd5b6
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.0058ad40
push fcn.0054b1b0
push 0x20
lea ecx, [ebp - 0x68840]
push 0x3440
push ecx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.005c45e7
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 0x58c82e
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8b8], ebx
je 0x58c7da
mov ecx, edi
call fcn.0055cfe0
push edi
call fcn.005dd5b6
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa24], ebx
cmp eax, ebx
je 0x58c7f3
push eax
call fcn.005dd5b6
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.00591880
push fcn.0054b1b0
push 0x20
lea edx, [ebp - 0x68840]
push 0x3440
push edx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.005c45e7
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.00593a00
mov ecx, dword [esi + 0x8b8]
mov eax, dword [ecx + 0x1d0]
mov edx, dword [ecx + 0x1d4]
mov dword [esi + 0x478], eax
mov dword [esi + 0x47c], edx
mov edx, dword [ecx + 0x1c8]
mov ebx, dword [ecx + 0x1cc]
mov eax, edx
or eax, ebx
je 0x58c873
mov eax, ebx
mov dword [esi + 0x470], edx
mov dword [esi + 0x474], eax
mov eax, dword [esi + 0x308]
test eax, eax
je 0x58c895
mov eax, dword [ecx + 0x1a8]
mov edx, dword [ecx + 0x1ac]
mov dword [esi + 0x480], eax
mov dword [esi + 0x484], edx
mov eax, dword [esi + 0x468]
test eax, eax
je 0x58c8ae
mov eax, dword [esi + 0x48c]
test eax, eax
jne 0x58c8ae
call fcn.00588cc0
test edi, edi
mov dword [esi + 0x8b8], 0
je 0x58c8cc
mov ecx, edi
call fcn.0055cfe0
push edi
call fcn.005dd5b6
add esp, 4
push fcn.0054b1b0
push 0x20
lea eax, [ebp - 0x68840]
push 0x3440
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.005c45e7
xor ebx, ebx
cmp dword [esi + 0xa34], ebx
jne 0x58cb2b
cmp dword [esi + 0xa24], ebx
jne 0x58cb2b
mov al, byte [esi + 0x322]
test al, al
je 0x58cb2b
mov al, byte [esi + 0x323]
test al, al
jne 0x58cb2b
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 0x58ca08
mov edi, dword [esi + 0x54]
cmp edi, ebx
jne 0x58c950
lea edi, [esi + 0x58]
cmp edi, ebx
je 0x58c9b6
cmp eax, ebx
je 0x58c9b6
push edi
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x58c9b6
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x58c9b6
push eax
call fcn.005c4b4a
mov ecx, dword [ebp - 0x20]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, edi
jb 0x58c9b6
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00401f60
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 7
cmp eax, ebx
jne 0x58c99c
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f60
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x58cabb
lea ecx, [ebp - 0x20]
call fcn.00401070
cmp edi, ebx
je 0x58cabb
push edi
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x58cabb
push edi
call fcn.005c4b4a
lea eax, [eax + eax + 2]
push eax
call fcn.005dd58d
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x58cac2
push edi
call fcn.005c4b4a
mov ecx, dword [ebp - 0x20]
push edi
mov dword [ebp - 0x18], eax
push ecx
jmp 0x58cab3
mov edi, dword [esi + 0x50]
cmp edi, ebx
je 0x58ca72
cmp eax, ebx
je 0x58ca72
push edi
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x58ca72
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x58ca72
push eax
call fcn.005c4b4a
mov edx, dword [ebp - 0x20]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, edi
jb 0x58ca72
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00401f60
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 8
cmp eax, ebx
jne 0x58ca5b
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f60
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x58cabb
lea ecx, [ebp - 0x20]
call fcn.00401070
cmp edi, ebx
je 0x58cabb
push edi
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x58cabb
push edi
call fcn.005c4b4a
lea ecx, [eax + eax + 2]
push ecx
call fcn.005dd58d
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x58cac2
push edi
call fcn.005c4b4a
mov edx, dword [ebp - 0x20]
push edi
mov dword [ebp - 0x18], eax
push edx
call fcn.005c4cea
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x58cac5
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0058cd30
test al, al
jne 0x58cb1c
mov byte [esi + 0x322], al
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [esi + 0x323], 1
je 0x58caf1
push eax
call fcn.005dd5b6
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.0058c1b0
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 0x58cc4e
cmp dword [esi + 0xa24], 0x7573
jne 0x58cc1d
cmp dword [esi + 0x474], ebx
jg 0x58cbeb
jl 0x58cb60
cmp dword [esi + 0x470], ebx
ja 0x58cbeb
mov eax, dword [eax + 8]
push ebx
push ebx
push 3
push ebx
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x58cbeb
lea ecx, [ebp - 0x28]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x470], eax
mov dword [esi + 0x474], ebx
cmp dword [esi + 0x470], 0xffffffff
jne 0x58cbbb
mov eax, ebx
cmp eax, ebx
jne 0x58cbbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x58cbbb
mov dword [esi + 0x470], ebx
mov dword [esi + 0x474], ebx
jmp 0x58cbe4
mov edx, dword [ebp - 0x28]
push 1
push ebx
push ebx
push edx
call fcn.005c7440
mov ecx, dword [esi + 0x470]
add ecx, eax
mov dword [esi + 0x470], ecx
mov eax, dword [esi + 0x474]
adc eax, edx
mov dword [esi + 0x474], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x48]
cmp eax, ebx
je 0x58cc14
push eax
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x58cc14
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x48]
lea ecx, [esi + 0x338]
push edx
call fcn.005e133c
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa24], ebx
cmp eax, dword [esi + 0xa54]
je 0x58cc4e
push eax
mov dword [ebp - 4], 9
call fcn.005dd5b6
add esp, 4
jmp 0x58cc40
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0
mov ecx, esi
call fcn.0058fac0
mov eax, dword [esi + 0xa24]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret