Function at 0x515780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x77f48c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x80e8
call fcn.00723b70
mov eax, dword [0x88bba0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x80f4], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x802c]
mov edi, dword [ebp + 0xc]
push 0
push 0x799e88
mov dword [ebp - 0x80f0], esi
mov dword [ebp - 0x80f8], 0
mov dword [ebp - 0x8018], 0xf
mov dword [ebp - 0x801c], 0
mov byte [ebp - 0x802c], 0
call fcn.0042fb60
mov dword [ebp - 4], 0
test edi, edi
je 0x5159e0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x515813
sub ecx, edx
je 0x5159e0
push edi
lea ecx, [ebp - 0x8078]
mov byte [ebp - 4], 1
call fcn.006122b0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00613090
test al, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8078]
sete bl
call fcn.006124a0
test bl, bl
jne 0x51597b
push edi
lea ecx, [ebp - 0x8078]
call fcn.006122b0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.006131d0
lea ecx, [ebp - 0x8078]
mov dword [ebp - 0x80ec], edx
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.006124a0
or ebx, dword [ebp - 0x80ec]
je 0x5159c5
push 0x7b70f4
push edi
call fcn.00727ae3
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x5159c5
lea eax, [ebp - 0x80e8]
push eax
call fcn.0066da10
push ebx
push 0x8000
lea eax, [ebp - 0x8014]
push 1
push eax
call fcn.00727cbd
add esp, 0x14
test eax, eax
je 0x515901
push eax
lea eax, [ebp - 0x8014]
push eax
lea eax, [ebp - 0x80e8]
push eax
call fcn.0066da90
push ebx
push 0x8000
lea eax, [ebp - 0x8014]
push 1
push eax
call fcn.00727cbd
add esp, 0x1c
test eax, eax
jne 0x5158d2
lea eax, [ebp - 0x80e8]
push eax
lea eax, [ebp - 0x8064]
push eax
call fcn.0066d730
add esp, 8
xor edi, edi
lea esp, [esp]
cmp edi, 0x20
jge 0x515972
mov ecx, dword [ebp - 0x80f4]
movzx eax, byte [ebp + edi - 0x8064]
push eax
lea eax, [ebp - 0x8044]
mov edx, dword [ecx]
push eax
call dword [edx + 0x28]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x802c]
mov byte [ebp - 4], 4
call fcn.004072f0
cmp dword [ebp - 0x8030], 0x10
mov byte [ebp - 4], 1
jb 0x51596f
push dword [ebp - 0x8044]
call fcn.00489b60
add esp, 4
inc edi
jmp 0x515920
push ebx
call fcn.00723c86
add esp, 4
lea eax, [ebp - 0x802c]
mov ecx, esi
push eax
call fcn.00407050
cmp dword [ebp - 0x8018], 0x10
jb 0x515a32
push dword [ebp - 0x802c]
call fcn.00489b60
add esp, 4
jmp 0x515a32
lea eax, [ebp - 0x802c]
mov ecx, esi
push eax
call fcn.00407050
lea ecx, [ebp - 0x802c]
call fcn.00404fd0
jmp 0x515a32
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, dword [ebp - 0x8018]
cmp ecx, 0x10
jae 0x515a1e
mov eax, dword [ebp - 0x801c]
inc eax
je 0x515a26
push eax
lea eax, [ebp - 0x802c]
push eax
push esi
call fcn.00721770
mov ecx, dword [ebp - 0x8018]
add esp, 0xc
jmp 0x515a26
mov eax, dword [ebp - 0x802c]
mov dword [esi], eax
mov eax, dword [ebp - 0x801c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
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 - 0x14]
xor ecx, ebp
call fcn.00722035
mov esp, ebp
pop ebp
ret 8