Function at 0x4597e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov edi, ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
movzx ebx, byte [ebp + 0x11]
lea ecx, [ebx + 1]
mov eax, dword [ebp + 0xc]
xor edx, edx
cmp ecx, eax
sbb edx, edx
jae 0x45986e
lea esi, [ebp + 8]
mov ecx, dword [esi]
cmp byte [ecx + eax - 1], 0
je 0x45991e
mov dword [esp + 0x44], str.the_note_is_not_NUL_terminated
mov word [esp + 0x54], 0x103
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
call fcn.0054a58e
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 3
sub esp, 0xc
movq xmm0, qword [esp + 0x3c]
jmp 0x4598fc
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x64], str.the_note_of_size_0x
lea eax, [esp + 0x10]
mov dword [esp + 0x6c], eax
mov word [esp + 0x74], 0xf03
lea eax, [esp + 0x64]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], str._is_too_short__expected_at_least_0x
mov word [esp + 0x40], 0x302
add ebx, ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x44], eax
lea eax, [esp + 8]
mov dword [esp + 0x4c], eax
mov word [esp + 0x54], 0xf02
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
call fcn.0054a58e
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], 3
sub esp, 0xc
movq xmm0, qword [esp + 0x9c]
movq qword [esp + 4], xmm0
lea eax, [esp + 0x50]
mov dword [esp], eax
mov ecx, esi
call fcn.0054a3a8
or byte [edi + 0x18], 1
mov dword [edi], esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
lea eax, [esp + 0x20]
mov ecx, esi
push 0
push ebx
push eax
call fcn.0054a6fc
mov edi, eax
mov eax, esi
mov esi, edx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xb8], edi
mov ecx, eax
movzx eax, byte [eax + 9]
push 0
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0054a6fc
mov dword [esp + 0x2c], eax
mov dword [esp + 0xac], edx
mov eax, ebx
mov dword [esp + 0xa8], edi
mul edi
imul esi, ebx
add edx, esi
lea esi, [edx + edx*2]
mov edx, 3
mul edx
lea ecx, [ebp + 8]
movzx ecx, byte [ecx + 9]
mov ebx, eax
mov dword [esp + 0xa4], ecx
add ebx, ecx
lea ecx, [edx + esi]
adc edx, esi
mov edi, ebx
add edi, 0xffffffff
mov esi, edx
adc esi, 0xffffffff
cmp ebx, eax
sbb edx, ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x78], ecx
lea ecx, [ebp + 8]
mov ecx, dword [ecx + 4]
jb 0x459b03
cmp edi, ecx
sbb esi, 0
jae 0x459b03
add eax, dword [esp + 0x20]
cmp ecx, eax
cmovb eax, ecx
sub ecx, eax
lea edx, [ebp + 8]
add eax, dword [edx]
cmp byte [edx + 8], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
setne byte [esp + 0x18]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0xa4]
mov byte [esp + 0x19], al
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x459bc3
lea ecx, [esp + 0x80]
push eax
call fcn.0045ba10
mov ebx, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
cmp ebx, edi
mov edx, dword [esp + 4]
je 0x459bcd
mov esi, 1
mov dword [esp + 0x2c], edi
nop word [eax + eax]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov edx, ecx
and edx, eax
cmp edx, 0xffffffff
je 0x459bfb
cmp ecx, dword [esp + 0x14]
sbb eax, 0
jae 0x459bfb
lea edi, [ebp + 8]
movzx eax, byte [edi + 9]
mov ecx, edi
push 0
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0054a6fc
mov dword [ebx + 4], edx
mov dword [ebx], eax
movzx eax, byte [edi + 9]
mov ecx, edi
push 0
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0054a6fc
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
movzx eax, byte [edi + 9]
mov ecx, edi
mov edi, dword [esp + 0x2c]
push 0
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0054a6fc
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x10], eax
lea ecx, [esp + 0x10]
push 0
lea eax, [esp + 0x5c]
push eax
call fcn.0054a6f0
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x18], eax
inc esi
add ebx, 0x20
cmp ebx, edi
jne 0x459a60
movq xmm0, qword [esp + 0x80]
jmp 0x459bc7
mov dword [esp + 0x90], str.unable_to_read_file_mappings__found
lea eax, [esp + 0xb8]
mov dword [esp + 0x98], eax
mov word [esp + 0xa0], 0xd03
lea eax, [esp + 0x90]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], str._:_the_note_of_size_0x
mov word [esp + 0x74], 0x302
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
lea eax, [esp + 0x64]
mov dword [esp + 0x30], eax
lea eax, [esp + 8]
mov dword [esp + 0x38], eax
mov word [esp + 0x40], 0xf02
lea eax, [esp + 0x30]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], str._is_too_short
mov word [esp + 0x54], 0x302
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
call fcn.0054a58e
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 3
sub esp, 0xc
movq xmm0, qword [esp + 0x1c]
movq qword [esp + 4], xmm0
lea eax, [esp + 0x50]
mov dword [esp], eax
mov ecx, esi
call fcn.0054a3a8
mov eax, dword [esp + 4]
or byte [eax + 0x18], 1
mov dword [eax], esi
jmp 0x459916
pxor xmm0, xmm0
mov edx, dword [esp + 4]
jmp 0x459bd6
movd xmm0, edi
pshufd xmm0, xmm0, 0x50
and byte [edx + 0x18], 0xfe
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [edx], eax
mov dword [edx + 4], ecx
movq qword [edx + 8], xmm0
mov eax, dword [esp + 0x88]
mov dword [edx + 0x10], eax
jmp 0x459916
mov dword [esp + 0x90], str.unable_to_read_the_file_name_for_the_mapping_with_index
mov dword [esp + 0x98], esi
mov word [esp + 0xa0], 0x903
lea eax, [esp + 0x90]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], str.:_the_note_of_size_0x
mov word [esp + 0x74], 0x302
lea eax, [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], 0
lea eax, [esp + 0x64]
mov dword [esp + 0x30], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x38], eax
mov word [esp + 0x40], 0xf02
lea eax, [esp + 0x30]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], str._is_truncated
mov word [esp + 0x54], 0x302
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
call fcn.0054a58e
mov dword [esp + 0xc], eax
mov dword [esp + 8], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x14]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x50]
mov dword [esp], eax
mov ecx, esi
call fcn.0054a3a8
mov eax, dword [esp + 4]
or byte [eax + 0x18], 1
mov dword [eax], esi
mov eax, dword [esp + 0x80]
test eax, eax
je 0x459916
mov dword [esp + 0x84], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x459916