Function at 0x415500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47351b
mov eax, dword fs:[0]
push eax
mov eax, 0x2088
call fcn.004385d0
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 0x41576f
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 0x415560
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2094]
call fcn.00401f60
push 0x50
lea eax, [ebp - 0x207c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0044edc0
add esp, 0xc
lea ecx, [ebp - 0x207c]
call fcn.00417300
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.00419860
lea ecx, [ebp - 0x207c]
call fcn.00417240
mov edx, dword [ebp - 0x2080]
cmp edx, 0x10
jb 0x415614
mov ecx, dword [ebp - 0x2094]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41560a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415816
push edx
push ecx
call fcn.004373a7
add esp, 8
cmp dword [ebp - 0x2018], 8
lea eax, [ebp - 0x202c]
push 0x487ef4
cmovae eax, dword [ebp - 0x202c]
push eax
call fcn.00452ac4
mov esi, eax
add esp, 8
test esi, esi
jne 0x415650
push str.load_note:File_open_error_n
call fcn.004022d0
add esp, 4
xor bl, bl
jmp 0x415728
push 2
push 0
push esi
call fcn.004561f6
push esi
call fcn.00452807
mov edi, eax
add esp, 0x10
cmp edi, 0x2000
jle 0x415687
push str.load_note:note_length_is_too_long.___8KB__n
call fcn.004022d0
push esi
call fcn.00452b99
add esp, 8
xor bl, bl
jmp 0x415728
push 0x2001
lea eax, [ebp - 0x2014]
push 0
push eax
call fcn.0044edc0
push 0
push 0
push esi
call fcn.004561f6
mov eax, 0x2000
cmp edi, eax
push esi
cmovl eax, edi
push eax
lea eax, [ebp - 0x2014]
push 1
push eax
call fcn.00456b44
push esi
call fcn.00452b99
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 0x4156d0
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 0x415700
mov edi, 0x4970f0
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415710
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 0x415768
mov ecx, dword [ebp - 0x202c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41575e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41581b
push edx
push ecx
call fcn.004373a7
add esp, 8
mov al, bl
jmp 0x4157fa
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 0x415780
sub edx, esi
cmp edx, 0x2000
ja 0x4157eb
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 0x4157a0
cmp dword [0x4939ec], 0x10
mov edx, 0x4939d8
cmovae edx, dword [0x4939d8]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4157c2
mov edi, 0x4970f0
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4157d1
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 0x4157fa
push str.load_note:default_note_length_is_too_long.___8KB__n
call fcn.004022d0
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.00437366
mov esp, ebp
pop ebp
ret
call fcn.0045212a
call fcn.0045212a
int3