Function at 0x515290
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x632828
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x210], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov eax, dword [ebp + 0x21c]
mov dword [ebp - 4], 0
push 0x65a7e0
push eax
call fcn.005fb2bd
add esp, 8
mov edi, eax
test edi, edi
je 0x51530f
push edi
call fcn.005ffb44
push eax
call fcn.005fdb1a
add esp, 8
mov dword [ebp - 0x14], eax
cmp eax, 0x2c
jae 0x515338
push edi
call fcn.005faf97
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x214
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.005cfaa6
add esp, 4
mov esi, eax
mov dword [ebp - 0x18], esi
push edi
test esi, esi
je 0x515307
mov eax, dword [ebp - 0x14]
push eax
push 1
push esi
call fcn.005fd808
mov dword [ebp - 0x1c], eax
push edi
call fcn.005faf97
add esp, 0x14
mov ecx, dword [ebp - 0x14]
cmp dword [ebp - 0x1c], ecx
je 0x515373
push esi
call fcn.005cfa9b
jmp 0x51530c
mov ecx, 0xb
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x40]
mov edx, dword [ebp - 0x18]
lea esi, [edi + edx]
cmp edi, dword [ebp - 0x14]
jge 0x5153c5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x515390
sub eax, edx
je 0x5153c5
push 6
push esi
push str.utf8
call fcn.005f9ccb
add esp, 0xc
lea ecx, [ebx + 0x10]
test eax, eax
jne 0x5153bd
push 0xfde9
lea eax, [esi + 6]
push eax
jmp 0x5153c0
push 0
push esi
call fcn.00401960
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5153d0
sub eax, edx
lea ecx, [eax + edi + 2]
cmp dword [ebp - 0x14], ecx
jbe 0x515413
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5153e7
sub eax, edx
add eax, edi
mov edx, dword [ebp - 0x18]
lea eax, [eax + edx + 2]
mov al, byte [eax]
cmp al, 0x10
jne 0x515408
mov dword [ebx + 0x50], 0x10
jmp 0x515413
cmp al, 0x20
jne 0x515413
mov dword [ebx + 0x50], 0x20
mov eax, dword [ebp - 0x18]
push eax
call fcn.005cfa9b
add esp, 4
mov ecx, dword [ebp - 0x48]
mov dword [ebx + 4], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebx + 0xc], edx
mov eax, dword [ebp - 0x3c]
cdq
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], edx
mov eax, dword [ebp - 0x38]
cdq
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], edx
mov eax, dword [ebp - 0x34]
cdq
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], edx
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x3c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x40], ecx
movzx edx, byte [ebp - 0x28]
mov byte [ebx + 8], dl
movzx eax, byte [ebp - 0x27]
mov byte [ebx + 9], al
movzx ecx, byte [ebp - 0x26]
mov byte [ebx + 0x1c], cl
movzx edx, byte [ebp - 0x25]
mov byte [ebx + 0x1d], dl
movzx eax, byte [ebp - 0x24]
mov byte [ebx + 0x1e], al
movzx ecx, byte [ebp - 0x23]
mov byte [ebx + 0x1f], cl
movzx edx, byte [ebp - 0x22]
mov byte [ebx + 0x20], dl
movzx eax, byte [ebp - 0x21]
mov byte [ebx + 0x21], al
movzx ecx, byte [ebp - 0x20]
mov byte [ebx + 0x22], cl
movzx edx, byte [ebp - 0x1f]
mov byte [ebx + 0x23], dl
mov al, 1
jmp 0x515311