Function at 0x5b05e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x716991
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x7e6410]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0
call fcn.004290f0
test eax, eax
je 0x5b063a
push 0x790eb0
mov ecx, edi
call fcn.00428840
jmp 0x5b083c
mov ecx, esi
call fcn.00429100
push eax
call fcn.005b6cc0
add esp, 4
test eax, eax
jne 0x5b065f
push 0x790eb0
mov ecx, edi
call fcn.00428840
jmp 0x5b083c
push 0x786b50
mov ecx, esi
call fcn.00429100
push eax
call fcn.006b57a3
mov esi, eax
add esp, 8
mov dword [ebp - 0x30], esi
test esi, esi
je 0x5b064e
push 2
push 0
push esi
call fcn.006b724c
push esi
call fcn.006b765f
push 0
mov ebx, eax
push 0
push esi
mov dword [ebp - 0x34], ebx
call fcn.006b724c
add esp, 0x1c
test ebx, ebx
js 0x5b064e
lea eax, [ebx + 2]
push 1
push eax
mov dword [ebp - 0x38], eax
call fcn.006b917c
push esi
push dword [ebp - 0x34]
mov ebx, eax
push 1
push ebx
mov dword [ebp - 0x40], ebx
call fcn.006b6232
push dword [ebp - 0x30]
mov esi, eax
call fcn.006b5369
add esp, 0x1c
cmp esi, dword [ebp - 0x34]
jne 0x5b064e
lea ecx, [ebp - 0x2c]
call fcn.00429050
mov al, byte [ebx]
mov dword [ebp - 4], 1
cmp al, 0xef
jne 0x5b0712
cmp byte [ebx + 1], 0xbb
jne 0x5b0712
cmp byte [ebx + 2], 0xbf
jne 0x5b0712
lea eax, [ebx + 3]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005b9f60
add esp, 8
mov byte [ebp - 4], 2
jmp 0x5b07b5
cmp al, 0xff
jne 0x5b0724
cmp byte [ebx + 1], 0xfe
jne 0x5b0724
lea eax, [ebx + 2]
jmp 0x5b080c
cmp al, 0xfe
jne 0x5b0797
cmp byte [ebx + 1], 0xff
jne 0x5b0797
push 1
push dword [ebp - 0x38]
lea esi, [ebx + 2]
call fcn.006b917c
mov edx, dword [ebp - 0x34]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x30], eax
test edx, edx
jle 0x5b0780
sub eax, esi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x38]
inc eax
mov ebx, eax
jmp 0x5b0760
mov al, byte [esi + 1]
lea esi, [esi + 2]
mov byte [edi + esi - 2], al
mov al, byte [esi - 2]
mov byte [ebx + ecx], al
add ecx, 2
cmp ecx, edx
jl 0x5b0760
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00428a30
mov eax, dword [ebp - 0x30]
push eax
call fcn.006b31f8
add esp, 4
jmp 0x5b0815
push ebx
call fcn.005bbf00
add esp, 4
test al, al
je 0x5b07d4
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.005b9f60
add esp, 8
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x5b07bd
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00428a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004246d0
jmp 0x5b0815
mov ecx, ebx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5b07e0
sub ecx, edx
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x5b07f8
xor eax, eax
jmp 0x5b080c
lea eax, [esi + esi]
call fcn.006b5940
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0052fcd0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00428a30
push ebx
call fcn.006b31f8
add esp, 4
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00428690
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], 0
call fcn.00428810
mov eax, edi
lea esp, [ebp - 0x58]
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.006b3266
mov esp, ebp
pop ebp
ret