Function at 0x559f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc989
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x61a654]
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 + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, 0x5f0de0
call fcn.005592f0
mov edi, eax
test edi, edi
je 0x55a1e6
call fcn.00559250
push 2
push 0
test eax, eax
je 0x559fe7
mov ecx, dword [0x658758]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push edi
call eax
jmp 0x559ff3
mov ecx, dword [edi + 8]
push ecx
call fcn.005a1f26
add esp, 0xc
call fcn.00559250
test eax, eax
je 0x55a00e
mov edx, dword [0x658758]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push edi
call edx
jmp 0x55a01a
mov eax, dword [edi + 8]
push eax
call fcn.005a2148
add esp, 4
mov ebx, eax
call fcn.00559250
push 0
push 0
test eax, eax
je 0x55a03b
mov ecx, dword [0x658758]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push edi
call eax
jmp 0x55a047
mov ecx, dword [edi + 8]
push ecx
call fcn.005a1f26
add esp, 0xc
lea eax, [ebx + 2]
call fcn.005a7080
mov esi, esp
test esi, esi
je 0x55a1e6
mov byte [ebx + esi], 0
mov byte [ebx + esi + 1], 0
call fcn.00559250
test eax, eax
je 0x55a081
mov edx, dword [0x658758]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push edi
push ebx
push 1
push esi
call edx
jmp 0x55a091
mov eax, dword [edi + 8]
push eax
push ebx
push 1
push esi
call fcn.005a2456
add esp, 0x10
call fcn.00559250
test eax, eax
je 0x55a0ac
mov ecx, dword [0x658758]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push edi
call eax
jmp 0x55a0be
mov ecx, dword [edi + 8]
push ecx
call fcn.005a1e20
push edi
call fcn.0059e6bb
add esp, 8
xor edi, edi
xor edx, edx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], dx
movzx ecx, word [esi]
mov eax, 0xfeff
mov dword [ebp - 4], edi
cmp cx, ax
je 0x55a172
mov edx, 0xfffe
cmp cx, dx
je 0x55a172
mov edx, 0xbbef
xor eax, eax
cmp cx, dx
jne 0x55a103
mov eax, 3
push 0
push 0
mov edi, ebx
sub edi, eax
push edi
lea ebx, [eax + esi]
push ebx
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
lea esi, [eax + 1]
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0059d93d
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x34]
inc eax
push eax
push esi
push edi
push ebx
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x34]
xor eax, eax
mov word [esi + ecx*2], ax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040bdf0
push esi
call fcn.005a2f45
add esp, 4
jmp 0x55a199
add esi, 2
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x55a180
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040bf20
mov esi, dword [ebp - 0x38]
mov edx, dword [esi]
mov eax, dword [edx + 0xfc]
push 0
push esi
call eax
mov eax, dword [ebp - 0x28]
mov edi, 8
cmp dword [ebp - 0x14], edi
jae 0x55a1b9
lea eax, [ebp - 0x28]
mov ecx, dword [esi]
lea edx, [ebp - 0x30]
push edx
push eax
mov eax, dword [ecx + 0x104]
push esi
call eax
cmp word [ebp - 0x30], 0
setne bl
cmp dword [ebp - 0x14], edi
jb 0x55a1e2
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0059e6bb
add esp, 4
mov al, bl
jmp 0x55a1e8
xor al, al
lea esp, [ebp - 0x48]
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.0059e619
mov esp, ebp
pop ebp
ret