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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100849e6
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x100a5c90]
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 0x100551e6
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ecx
mov word [ebp - 0x64], dx
mov dword [ebp - 4], ecx
push 0xffffffffffffffff
lea ecx, [eax - 3]
lea esi, [ebp - 0x48]
mov edx, ebx
call fcn.10009bd0
mov edi, eax
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.100037e0
mov edi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], edi
jb 0x100550ec
mov eax, dword [ebp - 0x48]
push eax
call fcn.10066b10
add esp, 4
xor ecx, ecx
push 3
mov eax, 0x10097e50
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
call fcn.10003a30
mov byte [ebp - 4], 2
mov ecx, esi
lea edx, [ebp - 0x64]
mov dword [ebp - 0x88], 1
call fcn.100211d0
test al, al
jne 0x10055171
xor edx, edx
push 3
mov eax, 0x10097e58
lea esi, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], dx
call fcn.10003a30
mov eax, 3
mov dword [ebp - 4], eax
mov ecx, esi
lea edx, [ebp - 0x64]
mov dword [ebp - 0x88], eax
call fcn.100211d0
mov byte [ebp - 0x81], 1
test al, al
je 0x10055178
mov byte [ebp - 0x81], 0
test byte [ebp - 0x88], 2
je 0x100551ad
and dword [ebp - 0x88], 0xfffffffd
cmp dword [ebp - 0x6c], edi
jb 0x10055199
mov eax, dword [ebp - 0x80]
push eax
call fcn.10066b10
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], cx
xor esi, esi
mov dword [ebp - 4], esi
test byte [ebp - 0x88], 1
je 0x100551cc
cmp dword [ebp - 0x34], edi
jb 0x100551cc
mov edx, dword [ebp - 0x48]
push edx
call fcn.10066b10
add esp, 4
cmp byte [ebp - 0x81], 0
je 0x100551ed
cmp dword [ebp - 0x50], edi
jb 0x100551e6
mov eax, dword [ebp - 0x64]
push eax
call fcn.10066b10
add esp, 4
xor eax, eax
jmp 0x100553f6
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 0x1005520a
mov eax, dword [ebx]
jmp 0x1005520c
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10055222
shr eax, 4
not eax
and eax, 1
jne 0x1005528c
lea edx, [ebp - 0x48]
push edx
call fcn.10020230
add esp, 4
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.100037e0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x34], 8
jb 0x10055252
mov eax, dword [ebp - 0x48]
push eax
call fcn.10066b10
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
mov edx, ebx
lea ecx, [ebp - 0x48]
call fcn.1001fca0
add esp, 4
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.100037e0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x34], 8
jb 0x10055287
mov edx, dword [ebp - 0x48]
push edx
call fcn.10066b10
add esp, 4
mov edi, 8
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10055297
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100552cd
shr eax, 4
not eax
and eax, 1
je 0x100552cd
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x100552b8
lea eax, [ebp - 0x2c]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
push eax
jmp 0x100552e7
cmp dword [ebx + 0x14], edi
jb 0x100552d4
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 0x10055340
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x10055310
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10066b10
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x50], esi
jb 0x100551e6
mov edx, dword [ebp - 0x64]
push edx
call fcn.10066b10
add esp, 4
xor eax, eax
jmp 0x100553f6
push 0x200
call fcn.1005f071
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 0x10055398
mov eax, dword [ebp - 0x8c]
mov dword [eax], 1
jmp 0x100553aa
mov edx, 0xf0
cmp ax, dx
jne 0x100553aa
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 0x100553d0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10066b10
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x50], esi
jb 0x100553f1
mov eax, dword [ebp - 0x64]
push eax
call fcn.10066b10
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.10066b1b
mov esp, ebp
pop ebp
ret