Function at 0x51fb60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4ced
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x6244f8]
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 ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test ebx, ebx
jne 0x51fb9d
lea eax, [ebx + 0xd]
jmp 0x51fde3
push 0x5be2c4
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
mov esi, 4
call fcn.0057ad52
mov eax, dword [ebp - 0x48]
add esp, 0xc
test eax, eax
je 0x51fde1
push eax
push 1
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.0057ee68
mov ax, word [ebp - 0x14]
add esp, 0x10
cmp al, 0xff
jne 0x51fdbb
cmp ah, 0xfe
jne 0x51fdbb
push 2
push 0
push dword [ebp - 0x48]
call fcn.0057f27e
push dword [ebp - 0x48]
call fcn.0057f8d1
push 0
push 2
push dword [ebp - 0x48]
lea edi, [eax - 2]
call fcn.0057f27e
push edi
call fcn.00538f33
push dword [ebp - 0x48]
mov esi, eax
push 1
push edi
push esi
call fcn.0057ee68
xor eax, eax
mov dword [ebp - 0x44], 0
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x44]
mov eax, edi
mov dword [ebp - 0x34], 0
cdq
add esp, 0x30
sub eax, edx
mov dword [ebp - 0x30], 7
sar eax, 1
push eax
push esi
call fcn.004049b3
push esi
mov dword [ebp - 4], 0
call fcn.00538f2e
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
call fcn.004515d0
add esp, 0xc
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
push 0x5e5860
call fcn.0051e3a0
push 0
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0043dc30
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00404cb3
cmp esi, 0xffffffff
je 0x51fd92
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x78]
push 0x5e5868
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
call fcn.0051e3a0
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x60]
push 0x5e5860
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.0051e3a0
cmp dword [ebp - 0x50], 0
mov byte [ebp - 4], 4
je 0x51fd7e
mov edi, dword [ebp - 0x68]
xor esi, esi
push esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0043dc30
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x51fd7e
cmp dword [ebp - 0x64], 0x10
lea eax, [ebp - 0x78]
push edi
cmovae eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x50]
push esi
call fcn.00521870
mov edi, dword [ebp - 0x68]
add esi, edi
jmp 0x51fd46
lea ecx, [ebp - 0x60]
call fcn.00404cb3
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.00404cb3
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.00449cc0
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00404cb3
lea ecx, [ebp - 0x44]
call fcn.00404885
jmp 0x51fdd6
push 0
push 0
push dword [ebp - 0x48]
call fcn.0057f27e
add esp, 0xc
mov ecx, ebx
push dword [ebp - 0x48]
call fcn.004497f0
mov esi, eax
push dword [ebp - 0x48]
call fcn.0057aebe
add esp, 4
mov eax, esi
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.0056e41f
mov esp, ebp
pop ebp
ret