Function at 0x479ba0
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8ec9
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], ecx
xor ecx, ecx
mov ebx, edx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], ecx
mov eax, dword [ebx + 0x10]
cmp eax, ecx
jbe 0x479d36
xor edx, edx
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ecx
mov word [ebp - 0x80], dx
mov dword [ebp - 4], ecx
push 0xffffffffffffffff
lea ecx, [eax - 3]
lea esi, [ebp - 0x48]
mov edx, ebx
call fcn.004070a0
mov edi, eax
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00409010
mov edi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], edi
jb 0x479c3c
mov eax, dword [ebp - 0x48]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
push 3
mov eax, 0x4e771c
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
call fcn.00403e70
mov byte [ebp - 4], 2
mov ecx, esi
lea edx, [ebp - 0x80]
mov dword [ebp - 0x88], 1
call fcn.0044c9e0
test al, al
jne 0x479cc1
xor edx, edx
push 3
mov eax, 0x4e7724
lea esi, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], dx
call fcn.00403e70
mov eax, 3
mov dword [ebp - 4], eax
mov ecx, esi
lea edx, [ebp - 0x80]
mov dword [ebp - 0x88], eax
call fcn.0044c9e0
mov byte [ebp - 0x81], 1
test al, al
je 0x479cc8
mov byte [ebp - 0x81], 0
test byte [ebp - 0x88], 2
je 0x479cfd
and dword [ebp - 0x88], 0xfffffffd
cmp dword [ebp - 0x50], edi
jb 0x479ce9
mov eax, dword [ebp - 0x64]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], cx
xor esi, esi
mov dword [ebp - 4], esi
test byte [ebp - 0x88], 1
je 0x479d1c
cmp dword [ebp - 0x34], edi
jb 0x479d1c
mov edx, dword [ebp - 0x48]
push edx
call fcn.00490a16
add esp, 4
cmp byte [ebp - 0x81], 0
je 0x479d3d
cmp dword [ebp - 0x6c], edi
jb 0x479d36
mov eax, dword [ebp - 0x80]
push eax
call fcn.00490a16
add esp, 4
xor eax, eax
jmp 0x479fe9
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
mov byte [ebp - 4], 4
cmp dword [ebx + 0x14], edi
jb 0x479d5a
mov eax, dword [ebx]
jmp 0x479d5c
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x479d76
shr eax, 4
not eax
and eax, 1
jne 0x479e7f
lea edx, [ebp - 0x64]
push edx
call fcn.0044f1d0
add esp, 4
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00409010
mov byte [ebp - 4], 4
cmp dword [ebp - 0x50], 8
jb 0x479da6
mov eax, dword [ebp - 0x64]
push eax
call fcn.00490a16
add esp, 4
mov eax, 0x4ddda0
lea ecx, [ebp - 0x48]
call fcn.00403fb0
lea ecx, [ebp - 0x48]
push ecx
sub esp, 0x1c
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x88], esp
xor esi, esi
push esi
mov edi, 7
xor edx, edx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], esi
push ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00404570
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 7
mov dword [ebp - 0x98], esp
xor eax, eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], esi
push esi
lea edx, [ebp - 0x2c]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00404570
mov byte [ebp - 4], 6
call fcn.004798b0
mov eax, dword [ebp - 0x38]
add esp, 0x3c
push 0x4ddda0
xor edi, edi
lea ecx, [ebp - 0x48]
call fcn.00408eb0
test eax, eax
jne 0x479e54
lea eax, [ebp - 0x2c]
push eax
mov edx, ebx
lea ecx, [ebp - 0x64]
call fcn.0044e150
add esp, 4
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00409010
lea ecx, [ebp - 0x64]
call fcn.00404690
jmp 0x479e64
push esi
lea ecx, [ebp - 0x48]
push ecx
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404570
mov byte [ebp - 4], 4
cmp dword [ebp - 0x34], 8
jb 0x479e7a
mov edx, dword [ebp - 0x48]
push edx
call fcn.00490a16
add esp, 4
mov edi, 8
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x479e8a
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x479ec0
shr eax, 4
not eax
and eax, 1
je 0x479ec0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x479eab
lea eax, [ebp - 0x2c]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
push eax
jmp 0x479eda
cmp dword [ebx + 0x14], edi
jb 0x479ec7
mov ebx, dword [ebx]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x479f33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x479f03
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x6c], esi
jb 0x479d36
mov edx, dword [ebp - 0x80]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
jmp 0x479fe9
push 0x200
call fcn.0048d7af
add esp, 4
mov esi, eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x94]
push eax
push 0x200
push esi
push edi
mov dword [ebp - 0x94], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x5c]
movzx eax, word [eax + esi + 0x14]
mov edx, 0xe0
cmp ax, dx
jne 0x479f8b
mov eax, dword [ebp - 0x8c]
mov dword [eax], 1
jmp 0x479f9d
mov edx, 0xf0
cmp ax, dx
jne 0x479f9d
mov eax, dword [ebp - 0x8c]
mov dword [eax], ebx
mov eax, dword [ebp - 0x90]
xor edx, edx
cmp ecx, 2
sete dl
mov esi, 8
mov dword [eax], edx
cmp dword [ebp - 0x18], esi
jb 0x479fc3
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x6c], esi
jb 0x479fe4
mov eax, dword [ebp - 0x80]
push eax
call fcn.00490a16
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret