Function at 0x415540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4734cb
mov eax, dword fs:[0]
push eax
mov eax, 0x2088
call fcn.00438640
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 0x4157af
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 0x4155a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2094]
call fcn.00401f50
push 0x50
lea eax, [ebp - 0x207c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0044ee30
add esp, 0xc
lea ecx, [ebp - 0x207c]
call fcn.00417340
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.004198a0
lea ecx, [ebp - 0x207c]
call fcn.00417280
mov edx, dword [ebp - 0x2080]
cmp edx, 0x10
jb 0x415654
mov ecx, dword [ebp - 0x2094]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41564a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415856
push edx
push ecx
call fcn.00437415
add esp, 8
cmp dword [ebp - 0x2018], 8
lea eax, [ebp - 0x202c]
push 0x487ac0
cmovae eax, dword [ebp - 0x202c]
push eax
call fcn.00456710
mov esi, eax
add esp, 8
test esi, esi
jne 0x415690
push str.load_note:File_open_error_n
call fcn.004022c0
add esp, 4
xor bl, bl
jmp 0x415768
push 2
push 0
push esi
call fcn.00456152
push esi
call fcn.00452877
mov edi, eax
add esp, 0x10
cmp edi, 0x2000
jle 0x4156c7
push str.load_note:note_length_is_too_long.___8KB__n
call fcn.004022c0
push esi
call fcn.00452af5
add esp, 8
xor bl, bl
jmp 0x415768
push 0x2001
lea eax, [ebp - 0x2014]
push 0
push eax
call fcn.0044ee30
push 0
push 0
push esi
call fcn.00456152
mov eax, 0x2000
cmp edi, eax
push esi
cmovl eax, edi
push eax
lea eax, [ebp - 0x2014]
push 1
push eax
call fcn.00456ae5
push esi
call fcn.00452af5
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 0x415710
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 0x415740
mov edi, 0x4970f0
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415750
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 0x4157a8
mov ecx, dword [ebp - 0x202c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41579e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41585b
push edx
push ecx
call fcn.00437415
add esp, 8
mov al, bl
jmp 0x41583a
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 0x4157c0
sub edx, esi
cmp edx, 0x2000
ja 0x41582b
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 0x4157e0
cmp dword [0x4939ec], 0x10
mov edx, 0x4939d8
cmovae edx, dword [0x4939d8]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x415802
mov edi, 0x4970f0
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415811
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 0x41583a
push str.load_note:default_note_length_is_too_long.___8KB__n
call fcn.004022c0
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.004373d4
mov esp, ebp
pop ebp
ret
call fcn.0045219a
call fcn.0045219a
int3