Function at 0x524ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x657fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x755898]
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 0x681c1c
push eax
call fcn.0061ffcd
add esp, 8
mov edi, eax
test edi, edi
je 0x524b4f
push edi
call fcn.00624837
push eax
call fcn.006225fa
add esp, 8
mov dword [ebp - 0x14], eax
cmp eax, 0x38
jae 0x524b78
push edi
call fcn.0061fca7
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.0061d2ff
add ebp, 0x214
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.005f15c2
add esp, 4
mov esi, eax
mov dword [ebp - 0x18], esi
push edi
test esi, esi
je 0x524b47
mov eax, dword [ebp - 0x14]
push eax
push 1
push esi
call fcn.006222ec
mov dword [ebp - 0x1c], eax
push edi
call fcn.0061fca7
add esp, 0x14
mov ecx, dword [ebp - 0x14]
cmp dword [ebp - 0x1c], ecx
je 0x524bb3
push esi
call fcn.005f15b7
jmp 0x524b4c
mov ecx, 0xc
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x18]
lea esi, [eax + edx]
cmp eax, dword [ebp - 0x14]
jge 0x524c04
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x524bd0
sub eax, edx
je 0x524c04
push 6
push esi
push str.utf8
call fcn.0061ea5b
add esp, 0xc
lea ecx, [ebx + 0x14]
test eax, eax
jne 0x524bfc
add esi, 6
push 0xfde9
jmp 0x524bfe
push 0
push esi
call fcn.00401980
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x18]
lea esi, [edi + eax]
cmp edi, dword [ebp - 0x14]
jge 0x524c4c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x524c17
sub eax, edx
je 0x524c4c
push 6
push esi
push str.utf8
call fcn.0061ea5b
add esp, 0xc
test eax, eax
jne 0x524c41
push 0xfde9
lea ecx, [esi + 6]
push ecx
jmp 0x524c44
push 0
push esi
lea ecx, [ebx + 0x48]
call fcn.00401980
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x524c51
sub eax, edx
lea edx, [eax + edi + 1]
cmp dword [ebp - 0x14], edx
jbe 0x524ccc
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x524c68
sub eax, edx
add eax, edi
mov ecx, dword [ebp - 0x18]
lea eax, [eax + ecx + 1]
cmp byte [eax], 1
jne 0x524c83
mov byte [ebx + 0x44], 1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x524c88
sub eax, edx
lea edx, [eax + edi + 2]
cmp dword [ebp - 0x14], edx
jbe 0x524ccc
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x524ca0
sub eax, edx
add eax, edi
mov ecx, dword [ebp - 0x18]
lea eax, [eax + ecx + 2]
mov al, byte [eax]
cmp al, 0x10
jne 0x524cc1
mov dword [ebx + 0x58], 0x10
jmp 0x524ccc
cmp al, 0x20
jne 0x524ccc
mov dword [ebx + 0x58], 0x20
mov edx, dword [ebp - 0x18]
push edx
call fcn.005f15b7
add esp, 4
mov ecx, dword [ebp - 0x4c]
mov dword [ebx + 8], ecx
mov eax, dword [ebp - 0x38]
cdq
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], edx
mov eax, dword [ebp - 0x34]
cdq
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], edx
mov eax, dword [ebp - 0x30]
cdq
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x3c], eax
mov al, byte [ebp - 0x28]
mov byte [ebx + 4], al
movzx edx, byte [ebp - 0x27]
mov byte [ebx + 0xc], dl
movzx edx, byte [ebp - 0x26]
mov byte [ebx + 0x20], dl
movzx edx, byte [ebp - 0x25]
mov byte [ebx + 0x43], dl
movzx edx, byte [ebp - 0x24]
mov byte [ebx + 0x42], dl
movzx edx, byte [ebp - 0x23]
mov byte [ebx + 0x41], dl
movzx edx, byte [ebp - 0x22]
mov byte [ebx + 0x40], dl
movzx edx, byte [ebp - 0x21]
mov byte [ebx + 0x23], dl
movzx edx, byte [ebp - 0x20]
mov byte [ebx + 0x21], dl
movzx edx, byte [ebp - 0x1f]
mov byte [ebx + 0x22], dl
mov edx, dword [ebp - 0x48]
mov dword [ebx + 0x54], edx
mov edx, dword [ebp - 0x44]
mov dword [ebx + 0x10], edx
test ecx, ecx
jne 0x524d5e
test al, al
jne 0x524d5e
mov byte [ebx + 0xc], al
mov al, 1
jmp 0x524b51