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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609a50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x68830
call fcn.005c3080
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 0x58a310
mov eax, dword [0x6c826c]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
push ebx
push ecx
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.005622f0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.0058ad40
add esp, 8
test eax, eax
jne 0x58a2fc
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.005df266
mov eax, dword [ebp - 0x14]
jmp 0x58a319
mov eax, dword [esi + 0xa54]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x58a395
test byte [eax + 0xc], 1
je 0x58a395
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x58a395
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 0x58a395
lea ecx, [ebp - 0x38]
push 0xffffffffffffffff
push ecx
lea ecx, [ebp - 0x24]
call fcn.005d8602
lea edx, [ebp - 0x3c]
push str._a___d__b__Y__H:_M:_S_GMT
push edx
lea ecx, [ebp - 0x24]
call fcn.005d8733
mov ecx, dword [esi + 0x468]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 4], 1
call fcn.0059f690
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.005df266
mov byte [esi + 0x32a], 1
mov eax, dword [esi + 0x8c4]
lea edi, [esi + 0x8c4]
cmp eax, ebx
je 0x58a672
push 0x589450
push 0x589430
push 0x20
lea edx, [ebp - 0x68840]
push 0x3440
push edx
call fcn.005c37e1
mov ebx, 2
push 0x868
mov dword [ebp - 4], ebx
call fcn.005db66d
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x58a407
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.0055b0b0
mov edi, eax
jmp 0x58a409
xor edi, edi
lea eax, [esi + 0x10]
mov dword [esi + 0x8b8], edi
mov dword [edi + 0x10], eax
mov dword [edi + 0x120], eax
lea eax, [esi + 0x14]
lea ecx, [esi + 0x18]
mov dword [edi + 0x24c], esi
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
mov edx, dword [ebp - 0x14]
mov dword [edi + 0x180], edx
mov eax, dword [esi + 0xa38]
test eax, eax
mov byte [ebp - 4], bl
je 0x58a472
mov eax, dword [esi + 0xa3c]
test eax, eax
je 0x58a472
mov eax, dword [esi + 0x474]
mov ecx, dword [esi + 0x470]
test eax, eax
jl 0x58a472
jg 0x58a463
test ecx, ecx
jbe 0x58a472
push 1
push eax
push ecx
mov ecx, dword [esi + 0x8b8]
call fcn.00587020
mov eax, dword [esi + 0xa2c]
mov ecx, dword [esi + 0xa30]
mov edx, dword [esi + 0xa3c]
push eax
mov eax, dword [esi + 0xa38]
push ecx
push edx
mov dl, byte [esi + 0xa28]
xor ecx, ecx
push eax
test dl, dl
mov edx, dword [esi + 0x468]
sete cl
push ecx
push edx
mov ecx, edi
call fcn.00586af0
test eax, eax
mov dword [esi + 0xa24], eax
jne 0x58a632
mov eax, dword [esi + 8]
mov edx, dword [edi]
mov ecx, edi
mov dword [edi + 0x15c], eax
call dword [edx + 8]
cmp eax, 0x7583
mov dword [esi + 0xa24], eax
jne 0x58a545
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8b8], ebx
je 0x58a4f1
mov ecx, edi
call fcn.0055b170
push edi
call fcn.005db696
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa24], ebx
cmp eax, ebx
je 0x58a50a
push eax
call fcn.005db696
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.0058a290
mov esi, eax
push 0x589450
push 0x20
lea eax, [ebp - 0x68840]
push 0x3440
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.005c26c7
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 0x58a5bc
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8b8], ebx
je 0x58a568
mov ecx, edi
call fcn.0055b170
push edi
call fcn.005db696
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa24], ebx
cmp eax, ebx
je 0x58a581
push eax
call fcn.005db696
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.0058f950
push 0x589450
push 0x20
lea ecx, [ebp - 0x68840]
push 0x3440
push ecx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.005c26c7
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.00591ad0
mov ecx, dword [esi + 0x8b8]
mov eax, dword [ecx + 0x1c8]
mov edx, dword [ecx + 0x1cc]
mov dword [esi + 0x478], eax
mov dword [esi + 0x47c], edx
mov edx, dword [ecx + 0x1c0]
mov ebx, dword [ecx + 0x1c4]
mov eax, edx
or eax, ebx
je 0x58a601
mov eax, ebx
mov dword [esi + 0x470], edx
mov dword [esi + 0x474], eax
mov eax, dword [esi + 0x308]
test eax, eax
je 0x58a623
mov edx, dword [ecx + 0x1a0]
mov eax, dword [ecx + 0x1a4]
mov dword [esi + 0x480], edx
mov dword [esi + 0x484], eax
mov eax, dword [esi + 0x48c]
test eax, eax
jne 0x58a632
call fcn.00586da0
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8b8], ebx
je 0x58a64e
mov ecx, edi
call fcn.0055b170
push edi
call fcn.005db696
add esp, 4
push 0x589450
push 0x20
lea ecx, [ebp - 0x68840]
push 0x3440
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.005c26c7
jmp 0x58a9bb
push fcn.005493c0
push fcn.005490b0
push 0x20
lea edx, [ebp - 0x68840]
push 0x3440
push edx
call fcn.005c37e1
mov ebx, 4
push 0x868
mov dword [ebp - 4], ebx
call fcn.005db66d
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x58a6d0
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.0055b0b0
mov edi, eax
jmp 0x58a6d2
xor edi, edi
lea eax, [esi + 0x10]
mov dword [esi + 0x8b8], edi
mov dword [edi + 0x10], eax
mov dword [edi + 0x120], eax
lea eax, [esi + 0x14]
lea ecx, [esi + 0x18]
mov dword [edi + 0x24c], esi
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
mov edx, dword [ebp - 0x14]
mov dword [edi + 0x180], edx
mov eax, dword [esi + 0xa38]
test eax, eax
mov byte [ebp - 4], bl
je 0x58a73b
mov eax, dword [esi + 0xa3c]
test eax, eax
je 0x58a73b
mov eax, dword [esi + 0x474]
mov ecx, dword [esi + 0x470]
test eax, eax
jl 0x58a73b
jg 0x58a72c
test ecx, ecx
jbe 0x58a73b
push 1
push eax
push ecx
mov ecx, dword [esi + 0x8b8]
call fcn.00587020
mov eax, dword [esi + 0xa2c]
mov ecx, dword [esi + 0xa30]
mov edx, dword [esi + 0xa3c]
push eax
mov eax, dword [esi + 0xa38]
push ecx
push edx
mov dl, byte [esi + 0xa28]
xor ecx, ecx
push eax
test dl, dl
mov edx, dword [esi + 0x468]
sete cl
push ecx
push edx
mov ecx, edi
call fcn.00586af0
test eax, eax
mov dword [esi + 0xa24], eax
jne 0x58a97c
mov eax, dword [esi + 8]
mov edx, dword [edi]
mov ecx, edi
mov dword [edi + 0x15c], eax
call dword [edx + 8]
cmp eax, 0x7583
mov dword [esi + 0xa24], eax
jne 0x58a80e
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8b8], ebx
je 0x58a7ba
mov ecx, edi
call fcn.0055b170
push edi
call fcn.005db696
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa24], ebx
cmp eax, ebx
je 0x58a7d3
push eax
call fcn.005db696
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.0058a290
mov esi, eax
push fcn.005493c0
push 0x20
lea eax, [ebp - 0x68840]
push 0x3440
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.005c26c7
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 0x58a885
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8b8], ebx
je 0x58a831
mov ecx, edi
call fcn.0055b170
push edi
call fcn.005db696
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa24], ebx
cmp eax, ebx
je 0x58a84a
push eax
call fcn.005db696
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.00588e20
push fcn.005493c0
push 0x20
lea ecx, [ebp - 0x68840]
push 0x3440
push ecx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.005c26c7
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 0x58a8fc
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8b8], ebx
je 0x58a8a8
mov ecx, edi
call fcn.0055b170
push edi
call fcn.005db696
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa24], ebx
cmp eax, ebx
je 0x58a8c1
push eax
call fcn.005db696
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.0058f950
push fcn.005493c0
push 0x20
lea edx, [ebp - 0x68840]
push 0x3440
push edx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.005c26c7
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.00591ad0
mov ecx, dword [esi + 0x8b8]
mov eax, dword [ecx + 0x1c8]
mov edx, dword [ecx + 0x1cc]
mov dword [esi + 0x478], eax
mov dword [esi + 0x47c], edx
mov edx, dword [ecx + 0x1c0]
mov ebx, dword [ecx + 0x1c4]
mov eax, edx
or eax, ebx
je 0x58a941
mov eax, ebx
mov dword [esi + 0x470], edx
mov dword [esi + 0x474], eax
mov eax, dword [esi + 0x308]
test eax, eax
je 0x58a963
mov eax, dword [ecx + 0x1a0]
mov edx, dword [ecx + 0x1a4]
mov dword [esi + 0x480], eax
mov dword [esi + 0x484], edx
mov eax, dword [esi + 0x468]
test eax, eax
je 0x58a97c
mov eax, dword [esi + 0x48c]
test eax, eax
jne 0x58a97c
call fcn.00586da0
test edi, edi
mov dword [esi + 0x8b8], 0
je 0x58a99a
mov ecx, edi
call fcn.0055b170
push edi
call fcn.005db696
add esp, 4
push fcn.005493c0
push 0x20
lea eax, [ebp - 0x68840]
push 0x3440
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.005c26c7
xor ebx, ebx
cmp dword [esi + 0xa34], ebx
jne 0x58abf9
cmp dword [esi + 0xa24], ebx
jne 0x58abf9
mov al, byte [esi + 0x322]
test al, al
je 0x58abf9
mov al, byte [esi + 0x323]
test al, al
jne 0x58abf9
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 0x58aad6
mov edi, dword [esi + 0x54]
cmp edi, ebx
jne 0x58aa1e
lea edi, [esi + 0x58]
cmp edi, ebx
je 0x58aa84
cmp eax, ebx
je 0x58aa84
push edi
call fcn.005c2c42
add esp, 4
test eax, eax
je 0x58aa84
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x58aa84
push eax
call fcn.005c2c42
mov ecx, dword [ebp - 0x20]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, edi
jb 0x58aa84
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00401f50
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 7
cmp eax, ebx
jne 0x58aa6a
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f50
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x58ab89
lea ecx, [ebp - 0x20]
call fcn.00401070
cmp edi, ebx
je 0x58ab89
push edi
call fcn.005c2c42
add esp, 4
test eax, eax
je 0x58ab89
push edi
call fcn.005c2c42
lea eax, [eax + eax + 2]
push eax
call fcn.005db66d
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x58ab90
push edi
call fcn.005c2c42
mov ecx, dword [ebp - 0x20]
push edi
mov dword [ebp - 0x18], eax
push ecx
jmp 0x58ab81
mov edi, dword [esi + 0x50]
cmp edi, ebx
je 0x58ab40
cmp eax, ebx
je 0x58ab40
push edi
call fcn.005c2c42
add esp, 4
test eax, eax
je 0x58ab40
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x58ab40
push eax
call fcn.005c2c42
mov edx, dword [ebp - 0x20]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, edi
jb 0x58ab40
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00401f50
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 8
cmp eax, ebx
jne 0x58ab29
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f50
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x58ab89
lea ecx, [ebp - 0x20]
call fcn.00401070
cmp edi, ebx
je 0x58ab89
push edi
call fcn.005c2c42
add esp, 4
test eax, eax
je 0x58ab89
push edi
call fcn.005c2c42
lea ecx, [eax + eax + 2]
push ecx
call fcn.005db66d
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x58ab90
push edi
call fcn.005c2c42
mov edx, dword [ebp - 0x20]
push edi
mov dword [ebp - 0x18], eax
push edx
call fcn.005c2dda
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x58ab93
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0058ae00
test al, al
jne 0x58abea
mov byte [esi + 0x322], al
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [esi + 0x323], 1
je 0x58abbf
push eax
call fcn.005db696
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.0058a290
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 0x58ad1c
cmp dword [esi + 0xa24], 0x7573
jne 0x58aceb
cmp dword [esi + 0x474], ebx
jg 0x58acb9
jl 0x58ac2e
cmp dword [esi + 0x470], ebx
ja 0x58acb9
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 0x58acb9
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 0x58ac89
mov eax, ebx
cmp eax, ebx
jne 0x58ac89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x58ac89
mov dword [esi + 0x470], ebx
mov dword [esi + 0x474], ebx
jmp 0x58acb2
mov edx, dword [ebp - 0x28]
push 1
push ebx
push ebx
push edx
call fcn.005c5530
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 0x58ace2
push eax
call fcn.005c2c42
add esp, 4
test eax, eax
je 0x58ace2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x48]
lea ecx, [esi + 0x338]
push edx
call fcn.005df416
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa24], ebx
cmp eax, dword [esi + 0xa54]
je 0x58ad1c
push eax
mov dword [ebp - 4], 9
call fcn.005db696
add esp, 4
jmp 0x58ad0e
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0
mov ecx, esi
call fcn.0058db90
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