Function at 0x415520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47345b
mov eax, dword fs:[0]
push eax
mov eax, 0x2088
call fcn.004385f0
mov eax, dword [0x493018]
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 edx, ecx
test edx, edx
je 0x41578f
mov dword [ebp - 0x2084], 0
lea esi, [ecx + 1]
mov dword [ebp - 0x2080], 0xf
mov byte [ebp - 0x2094], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415580
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2094]
call fcn.00401f40
push 0x50
lea eax, [ebp - 0x207c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0044ede0
add esp, 0xc
lea ecx, [ebp - 0x207c]
call fcn.00417320
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2094]
cmp dword [ebp - 0x2080], 0x10
mov eax, dword [ebp - 0x2084]
cmovae ecx, dword [ebp - 0x2094]
add eax, ecx
push eax
push ecx
lea eax, [ebp - 0x202c]
push eax
lea ecx, [ebp - 0x207c]
call fcn.00419880
lea ecx, [ebp - 0x207c]
call fcn.00417260
mov edx, dword [ebp - 0x2080]
cmp edx, 0x10
jb 0x415634
mov ecx, dword [ebp - 0x2094]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41562a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415836
push edx
push ecx
call fcn.004373c7
add esp, 8
cmp dword [ebp - 0x2018], 8
lea eax, [ebp - 0x202c]
push 0x487ac0
cmovae eax, dword [ebp - 0x202c]
push eax
call fcn.004566c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x415670
push str.load_note:File_open_error_n
call fcn.004022b0
add esp, 4
xor bl, bl
jmp 0x415748
push 2
push 0
push esi
call fcn.00456102
push esi
call fcn.00452827
mov edi, eax
add esp, 0x10
cmp edi, 0x2000
jle 0x4156a7
push str.load_note:note_length_is_too_long.___8KB__n
call fcn.004022b0
push esi
call fcn.00452aa5
add esp, 8
xor bl, bl
jmp 0x415748
push 0x2001
lea eax, [ebp - 0x2014]
push 0
push eax
call fcn.0044ede0
push 0
push 0
push esi
call fcn.00456102
mov eax, 0x2000
cmp edi, eax
push esi
cmovl eax, edi
push eax
lea eax, [ebp - 0x2014]
push 1
push eax
call fcn.00456a95
push esi
call fcn.00452aa5
add esp, 0x2c
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x2014]
lea ecx, [ecx + 1]
mov byte [ecx + 0x4970ef], al
test al, al
jne 0x4156f0
cmp dword [0x4939ec], 0x10
mov edx, 0x4939d8
cmovae edx, dword [0x4939d8]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x415720
mov edi, 0x4970f0
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415730
mov ecx, edx
mov bl, 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x2018]
cmp edx, 8
jb 0x415788
mov ecx, dword [ebp - 0x202c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41577e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41583b
push edx
push ecx
call fcn.004373c7
add esp, 8
mov al, bl
jmp 0x41581a
mov ecx, dword [0x49e34c]
mov edx, ecx
lea esi, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4157a0
sub edx, esi
cmp edx, 0x2000
ja 0x41580b
mov edx, 0x4970f0
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4157c0
cmp dword [0x4939ec], 0x10
mov edx, 0x4939d8
cmovae edx, dword [0x4939d8]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4157e2
mov edi, 0x4970f0
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4157f1
mov ecx, edx
mov al, 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41581a
push str.load_note:default_note_length_is_too_long.___8KB__n
call fcn.004022b0
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 - 0x10]
xor ecx, ebp
call fcn.00437386
mov esp, ebp
pop ebp
ret
call fcn.0045214a
call fcn.0045214a
int3